PORT按CPU型号更简单
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#ifndef INCLUDED_OS_PORT_H
|
||||
#define INCLUDED_OS_PORT_H
|
||||
|
||||
#ifndef INCLUDED_CPU_H
|
||||
#include <cpu.h>
|
||||
#endif /*INCLUDED_CPU_H*/
|
||||
|
||||
#ifndef INCLUDED_OS_TYPES_H
|
||||
#include <os_types.h>
|
||||
#endif /*INCLUDED_OS_TYPES_H*/
|
||||
@@ -9,7 +13,6 @@
|
||||
#include <os_task.h>
|
||||
#endif /*INCLUDED_OS_TASK_H*/
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
@@ -56,17 +59,37 @@ void os_port_on_switch_success(void);
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* 中断管理 */
|
||||
|
||||
void os_port_disable_irq(void);
|
||||
|
||||
void os_port_enable_irq(void);
|
||||
//void os_port_disable_irq(void);
|
||||
//void os_port_enable_irq(void);
|
||||
//os_uint_t os_port_save_disable_irq(void);
|
||||
//void os_port_restore_irq(os_uint_t level);
|
||||
//os_uint_t os_port_save_disable_irq_in_isr(void);
|
||||
//void os_port_restore_irq_in_isr(os_uint_t level);
|
||||
|
||||
os_uint_t os_port_save_disable_irq(void);
|
||||
#ifndef os_port_disable_irq
|
||||
#define os_port_disable_irq
|
||||
#endif
|
||||
|
||||
void os_port_restore_irq(os_uint_t level);
|
||||
#ifndef os_port_enable_irq
|
||||
#define os_port_enable_irq
|
||||
#endif
|
||||
|
||||
os_uint_t os_port_save_disable_irq_in_isr(void);
|
||||
#ifndef os_port_save_disable_irq
|
||||
#define os_port_save_disable_irq
|
||||
#endif
|
||||
|
||||
void os_port_restore_irq_in_isr(os_uint_t level);
|
||||
#ifndef os_port_restore_irq
|
||||
#define os_port_restore_irq
|
||||
#endif
|
||||
|
||||
#ifndef os_port_save_disable_irq_in_isr
|
||||
#define os_port_save_disable_irq_in_isr
|
||||
#endif
|
||||
|
||||
#ifndef os_port_restore_irq_in_isr
|
||||
#define os_port_restore_irq_in_isr
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* 初始化和启动 */
|
||||
|
||||
Reference in New Issue
Block a user