diff options
| author | geniusgogo <[email protected]> | 2023-12-21 10:31:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-21 10:31:27 +0800 |
| commit | 3dfafcd1d982c09b1718f36c956263fd1ef507db (patch) | |
| tree | 276b33e3376cc061f13190bac1d5de6a178df88a /include/rtdef.h | |
| parent | 0541b39d61d4db7577037d51be70eb09d0a609e2 (diff) | |
add semaphore max value control. (#8390)
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 4c24cb0ae9..a1d858182e 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -1038,6 +1038,7 @@ typedef struct rt_thread *rt_thread_t; #define RT_IPC_CMD_UNKNOWN 0x00 /**< unknown IPC command */ #define RT_IPC_CMD_RESET 0x01 /**< reset IPC object */ #define RT_IPC_CMD_GET_STATE 0x02 /**< get the state of IPC object */ +#define RT_IPC_CMD_SET_VLIMIT 0x03 /**< set max limit value of IPC value */ #define RT_WAITING_FOREVER -1 /**< Block forever until get resource. */ #define RT_WAITING_NO 0 /**< Non-block. */ @@ -1061,7 +1062,7 @@ struct rt_semaphore struct rt_ipc_object parent; /**< inherit from ipc_object */ rt_uint16_t value; /**< value of semaphore. */ - rt_uint16_t reserved; /**< reserved field */ + rt_uint16_t max_value; struct rt_spinlock spinlock; }; typedef struct rt_semaphore *rt_sem_t; |
