You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "TimJTi (via GitHub)" <gi...@apache.org> on 2023/08/31 13:36:21 UTC

[GitHub] [nuttx] TimJTi commented on pull request #10457: APDS9922 - add compiler warning if spinlock not enabled

TimJTi commented on PR #10457:
URL: https://github.com/apache/nuttx/pull/10457#issuecomment-1701054880

   
   
   
   > Shouldn't if be:
   > 
   > ```
   > #if defined(CONFIG_SMP) && !defined(CONFIG_SPINLOCK)
   > ```
   
   This is not to do with SMP - it is to do with one device on a single I2C bus performing two different functions with 2 different registered drivers (/dev/als0 and /dev/ps0). My configs certainly don't have CONFIG_SMP set, so maybe I shouldn't have used a spinlock to protect the I2C read/writes when I wrote this driver?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org