Skip to content

Commit 301b6af

Browse files
authored
Merge pull request hathach#1801 from tyustli/tyustli_sem_reset
[add] semaphore reset support for rt-thread
2 parents 4b58806 + e992ff4 commit 301b6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osal/osal_rtthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_wait(osal_semaphore_t se
6363
}
6464

6565
TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) {
66-
// TODO: implement
66+
rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, 0);
6767
}
6868

6969
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)