We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d76c17 commit e992ff4Copy full SHA for e992ff4
src/osal/osal_rtthread.h
@@ -63,8 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_wait(osal_semaphore_t se
63
}
64
65
TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) {
66
- rt_ubase_t value = 0;
67
- rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, &value);
+ rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, 0);
68
69
70
//--------------------------------------------------------------------+
0 commit comments