Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
8763d8b7
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8763d8b7
编写于
3月 29, 2022
作者:
G
guozhanxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp/imxrt] fix compile warnings.
上级
71841b8d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
10 deletion
+10
-10
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction.h
...raries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction.h
+1
-1
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_config.h
...MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_config.h
+1
-1
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.c
...MXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.c
+5
-5
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.h
...MXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.h
+1
-1
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.c
...rt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.c
+1
-1
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.h
...rt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.h
+1
-1
未找到文件。
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction.h
浏览文件 @
8763d8b7
...
@@ -809,4 +809,4 @@ void OSA_InstallIntHandler(uint32_t IRQNumber, void (*handler)(void));
...
@@ -809,4 +809,4 @@ void OSA_InstallIntHandler(uint32_t IRQNumber, void (*handler)(void));
}
}
#endif
#endif
/*! @}*/
/*! @}*/
#endif
#endif
\ No newline at end of file
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_config.h
浏览文件 @
8763d8b7
...
@@ -33,4 +33,4 @@
...
@@ -33,4 +33,4 @@
#define FSL_OSA_TASK_ENABLE 1U
#define FSL_OSA_TASK_ENABLE 1U
#endif
/* OSA_USED */
#endif
/* OSA_USED */
#endif
/* _FSL_OS_ABSTRACTION_CONFIG_H_ */
#endif
/* _FSL_OS_ABSTRACTION_CONFIG_H_ */
\ No newline at end of file
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.c
浏览文件 @
8763d8b7
...
@@ -379,7 +379,7 @@ osa_status_t OSA_SemaphoreDestroy(osa_semaphore_handle_t semaphoreHandle)
...
@@ -379,7 +379,7 @@ osa_status_t OSA_SemaphoreDestroy(osa_semaphore_handle_t semaphoreHandle)
*END**************************************************************************/
*END**************************************************************************/
osa_status_t
OSA_SemaphoreWait
(
osa_semaphore_handle_t
semaphoreHandle
,
uint32_t
millisec
)
osa_status_t
OSA_SemaphoreWait
(
osa_semaphore_handle_t
semaphoreHandle
,
uint32_t
millisec
)
{
{
u
int32_t
timeoutTicks
;
int32_t
timeoutTicks
;
assert
(
semaphoreHandle
);
assert
(
semaphoreHandle
);
rt_sem_t
sem
=
(
rt_sem_t
)(
void
*
)(
uint32_t
*
)(
*
(
uint32_t
*
)
semaphoreHandle
);
rt_sem_t
sem
=
(
rt_sem_t
)(
void
*
)(
uint32_t
*
)(
*
(
uint32_t
*
)
semaphoreHandle
);
...
@@ -460,7 +460,7 @@ osa_status_t OSA_MutexCreate(osa_mutex_handle_t mutexHandle)
...
@@ -460,7 +460,7 @@ osa_status_t OSA_MutexCreate(osa_mutex_handle_t mutexHandle)
osa_status_t
OSA_MutexLock
(
osa_mutex_handle_t
mutexHandle
,
uint32_t
millisec
)
osa_status_t
OSA_MutexLock
(
osa_mutex_handle_t
mutexHandle
,
uint32_t
millisec
)
{
{
assert
(
mutexHandle
);
assert
(
mutexHandle
);
u
int32_t
timeoutTicks
;
int32_t
timeoutTicks
;
rt_mutex_t
mutex
=
(
rt_mutex_t
)(
void
*
)(
uint32_t
*
)(
*
(
uint32_t
*
)
mutexHandle
);
rt_mutex_t
mutex
=
(
rt_mutex_t
)(
void
*
)(
uint32_t
*
)(
*
(
uint32_t
*
)
mutexHandle
);
/* Convert timeout from millisecond to tick. */
/* Convert timeout from millisecond to tick. */
...
@@ -642,7 +642,7 @@ osa_status_t OSA_EventWait(osa_event_handle_t eventHandle,
...
@@ -642,7 +642,7 @@ osa_status_t OSA_EventWait(osa_event_handle_t eventHandle,
{
{
assert
(
eventHandle
);
assert
(
eventHandle
);
rt_uint8_t
option
=
0
;
rt_uint8_t
option
=
0
;
rt_
u
int32_t
timeoutTicks
;
rt_int32_t
timeoutTicks
;
rt_uint32_t
flagsSave
;
rt_uint32_t
flagsSave
;
osa_event_struct_t
*
pEventStruct
=
(
osa_event_struct_t
*
)
eventHandle
;
osa_event_struct_t
*
pEventStruct
=
(
osa_event_struct_t
*
)
eventHandle
;
...
@@ -778,7 +778,7 @@ osa_status_t OSA_MsgQGet(osa_msgq_handle_t msgqHandle, osa_msg_handle_t pMessage
...
@@ -778,7 +778,7 @@ osa_status_t OSA_MsgQGet(osa_msgq_handle_t msgqHandle, osa_msg_handle_t pMessage
assert
(
msgqHandle
);
assert
(
msgqHandle
);
rt_mq_t
handler
=
(
rt_mq_t
)(
void
*
)(
uint32_t
*
)(
*
(
uint32_t
*
)
msgqHandle
);
rt_mq_t
handler
=
(
rt_mq_t
)(
void
*
)(
uint32_t
*
)(
*
(
uint32_t
*
)
msgqHandle
);
u
int32_t
timeoutTicks
;
int32_t
timeoutTicks
;
if
(
millisec
==
osaWaitForever_c
)
if
(
millisec
==
osaWaitForever_c
)
{
{
...
@@ -914,4 +914,4 @@ int main(void)
...
@@ -914,4 +914,4 @@ int main(void)
vTaskStartScheduler
();
vTaskStartScheduler
();
return
0
;
return
0
;
}
}
#endif
/* FSL_OSA_TASK_ENABLE */
#endif
/* FSL_OSA_TASK_ENABLE */
\ No newline at end of file
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction_rtthread.h
浏览文件 @
8763d8b7
...
@@ -127,4 +127,4 @@ extern void DefaultISR(void);
...
@@ -127,4 +127,4 @@ extern void DefaultISR(void);
/*! @}*/
/*! @}*/
/*! @}*/
/*! @}*/
#endif // __FSL_OS_ABSTRACTION_RTTHREAD_H__
#endif // __FSL_OS_ABSTRACTION_RTTHREAD_H__
\ No newline at end of file
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.c
浏览文件 @
8763d8b7
...
@@ -472,4 +472,4 @@ uint32_t LIST_GetSize(list_handle_t list)
...
@@ -472,4 +472,4 @@ uint32_t LIST_GetSize(list_handle_t list)
uint32_t
LIST_GetAvailableSize
(
list_handle_t
list
)
uint32_t
LIST_GetAvailableSize
(
list_handle_t
list
)
{
{
return
((
uint32_t
)
list
->
max
-
(
uint32_t
)
list
->
size
);
/*Gets the number of free places in the list*/
return
((
uint32_t
)
list
->
max
-
(
uint32_t
)
list
->
size
);
/*Gets the number of free places in the list*/
}
}
\ No newline at end of file
bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/generic_list.h
浏览文件 @
8763d8b7
...
@@ -200,4 +200,4 @@ uint32_t LIST_GetAvailableSize(list_handle_t list);
...
@@ -200,4 +200,4 @@ uint32_t LIST_GetAvailableSize(list_handle_t list);
}
}
#endif
#endif
/*! @}*/
/*! @}*/
#endif
/*_GENERIC_LIST_H_*/
#endif
/*_GENERIC_LIST_H_*/
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录