summaryrefslogtreecommitdiff
path: root/examples/kernel/semaphore_static.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-07-18 12:52:04 +0800
committerMeco Man <[email protected]>2021-07-18 12:52:04 +0800
commit98c72007d2f15f4e4314f7c820d2d58e625c0d5d (patch)
tree37479e022047992ce3732e0e3d7670461222e8fc /examples/kernel/semaphore_static.c
parent6c5546cc9c2103439dbe2e641f9f862868d2c9ab (diff)
[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO
Diffstat (limited to 'examples/kernel/semaphore_static.c')
-rw-r--r--examples/kernel/semaphore_static.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/semaphore_static.c b/examples/kernel/semaphore_static.c
index 641b0bc7c9..16b043db9c 100644
--- a/examples/kernel/semaphore_static.c
+++ b/examples/kernel/semaphore_static.c
@@ -81,7 +81,7 @@ int semaphore_static_init(void)
rt_err_t result;
/* 初始化信号量,初始值是0 */
- result = rt_sem_init(&sem, "sem", 0, RT_IPC_FLAG_FIFO);
+ result = rt_sem_init(&sem, "sem", 0, RT_IPC_FLAG_PRIO);
if (result != RT_EOK)
{
tc_stat(TC_STAT_END | TC_STAT_FAILED);