diff options
| author | shaojinchun <[email protected]> | 2019-04-24 09:14:00 +0800 |
|---|---|---|
| committer | shaojinchun <[email protected]> | 2019-04-24 09:14:00 +0800 |
| commit | 7bcee9bcb14f337efb6fcacecc1501d01624c0a3 (patch) | |
| tree | a16bd01b9a3b2596ff64e7b464f559a5feb36e8d /include/rtdef.h | |
| parent | fa697a763f5cbece6b886cf2eca54b2dd28f718d (diff) | |
semaphore结构中value仍改为uint16_t,加入对其设置范围的检测,加入对齐变量
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 8c7e6e8c43..743b91d959 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -655,7 +655,8 @@ struct rt_semaphore { struct rt_ipc_object parent; /**< inherit from ipc_object */ - rt_uint32_t value; /**< value of semaphore. */ + rt_uint16_t value; /**< value of semaphore. */ + rt_uint16_t reserved; /**< reserved field */ }; typedef struct rt_semaphore *rt_sem_t; #endif |
