pussuw commented on code in PR #16165: URL: https://github.com/apache/nuttx/pull/16165#discussion_r2035125770
########## include/nuttx/spinlock_type.h: ########## @@ -50,10 +50,20 @@ typedef atomic_t rwlock_t; #endif #ifndef CONFIG_SPINLOCK -# define SP_UNLOCKED 0 /* The Un-locked state */ -# define SP_LOCKED 1 /* The Locked state */ +# define SP_UNLOCKED SP_INIT(0) /* The Un-locked state */ +# define SP_LOCKED SP_INIT(1) /* The Locked state */ -typedef uint8_t spinlock_t; +# define SP_INIT(_val) \ Review Comment: Done -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org