Refine
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
extern volatile void* g_os_port_switch_from_sp;
|
||||
extern volatile void* g_os_port_switch_to_sp;
|
||||
extern volatile os_bool_t g_os_port_context_switch_flag;
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
@@ -56,6 +57,14 @@ void os_port_clear_context_switch_request(void);
|
||||
*/
|
||||
void os_port_on_switch_success(void);
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* 初始化和启动 */
|
||||
|
||||
void os_port_init(void);
|
||||
|
||||
void os_port_startup(void);
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* 中断管理 */
|
||||
|
||||
@@ -91,11 +100,5 @@ void os_port_on_switch_success(void);
|
||||
#define os_port_restore_irq_in_isr
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* 初始化和启动 */
|
||||
|
||||
void os_port_init(void);
|
||||
|
||||
void os_port_startup(void);
|
||||
|
||||
#endif /*INCLUDED_OS_PORT_H*/
|
||||
|
||||
@@ -70,7 +70,7 @@ void os_task_yield(void);
|
||||
void os_task_join(os_task_t* self);
|
||||
|
||||
OS_STATIC_FORCE_INLINE
|
||||
void os_tick_sleep_ms(os_size_t ms){
|
||||
void os_task_sleep_ms(os_size_t ms){
|
||||
os_task_sleep(os_tick_from_ms(ms));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user