TaiJuWu commented on code in PR #10776: URL: https://github.com/apache/nuttx/pull/10776#discussion_r1343916842
########## include/nuttx/spinlock.h: ########## @@ -449,4 +454,120 @@ void spin_unlock_irqrestore_wo_note(FAR spinlock_t *lock, irqstate_t flags); # define spin_unlock_irqrestore_wo_note(l, f) up_irq_restore(f) #endif +#if defined(CONFIG_RW_SPINLOCK) + +/**************************************************************************** + * Name: check_bit + * + * Description: + * Check offset is set or not. + * + * Input Parameters: + * lock - A lock instance. + * offset - from right to left. + * + * Returned Value: + * bool + * + * Assumptions: + * No. + ****************************************************************************/ + +inline bool check_bit(spinlock_t lock, uint8_t offset) Review Comment: This function is not needed so I deleted it. -- 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