소스 검색

修改sem中的value成员变量和赋值参数类型相同

shaojinchun 6 년 전
부모
커밋
fa697a763f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/rtdef.h

+ 1 - 1
include/rtdef.h

@@ -655,7 +655,7 @@ struct rt_semaphore
 {
     struct rt_ipc_object parent;                        /**< inherit from ipc_object */
 
-    rt_uint16_t          value;                         /**< value of semaphore. */
+    rt_uint32_t          value;                         /**< value of semaphore. */
 };
 typedef struct rt_semaphore *rt_sem_t;
 #endif