提交 71297d15 编写于 作者: wuyangyong's avatar wuyangyong

fix spelling error by ziyi897, this commit fixes #74.

上级 77591fd6
...@@ -63,7 +63,7 @@ static void thread_entry(void* parameter) ...@@ -63,7 +63,7 @@ static void thread_entry(void* parameter)
rt_sem_detach(&sem); rt_sem_detach(&sem);
} }
int semaphore_static_init() int semaphore_static_init(void)
{ {
rt_err_t result; rt_err_t result;
...@@ -89,7 +89,7 @@ int semaphore_static_init() ...@@ -89,7 +89,7 @@ int semaphore_static_init()
} }
#ifdef RT_USING_TC #ifdef RT_USING_TC
static void _tc_cleanup() static void _tc_cleanup(void)
{ {
/* 调度器上锁,上锁后,将不再切换到其他线程,仅响应中断 */ /* 调度器上锁,上锁后,将不再切换到其他线程,仅响应中断 */
rt_enter_critical(); rt_enter_critical();
...@@ -110,11 +110,11 @@ static void _tc_cleanup() ...@@ -110,11 +110,11 @@ static void _tc_cleanup()
tc_done(TC_STAT_PASSED); tc_done(TC_STAT_PASSED);
} }
int _tc_semaphore_static() int _tc_semaphore_static(void)
{ {
/* 设置TestCase清理回调函数 */ /* 设置TestCase清理回调函数 */
tc_cleanup(_tc_cleanup); tc_cleanup(_tc_cleanup);
semaphore_static_init(); semaphore_static_init(void);
/* 返回TestCase运行的最长时间 */ /* 返回TestCase运行的最长时间 */
return 100; return 100;
...@@ -123,9 +123,9 @@ int _tc_semaphore_static() ...@@ -123,9 +123,9 @@ int _tc_semaphore_static()
FINSH_FUNCTION_EXPORT(_tc_semaphore_static, a static semaphore example); FINSH_FUNCTION_EXPORT(_tc_semaphore_static, a static semaphore example);
#else #else
/* 用户应用入口 */ /* 用户应用入口 */
int rt_application_init() int rt_application_init(void)
{ {
thread_static_init(); semaphore_static_init(void);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册