os_cpu.h
来自「ucos在所有cpu下的移植范例」· C头文件 代码 · 共 38 行
H
38 行
/*
*********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
*
* 6808 Specific code
*
* File : OS_CPU.H
* By : Kerby Suhre
*********************************************************************************************************
*/
/*
DATA TYPES
*/
#ifndef _TYPES
typedef unsigned char BOOLEAN;
typedef unsigned char INT8U;
typedef signed char INT8S;
typedef unsigned short INT16U;
typedef signed short INT16S;
typedef unsigned long INT32U;
typedef signed long INT32S;
#define _TYPES
#endif
#define OS_STK_GROWTH 1 /* Stack grows from HIGH to LOW memory on 6808 */
#define OS_STK INT8U
/* The following macros are for entering and exiting critical sections of
code that cannot be interrupted */
#define OS_ENTER_CRITICAL() _asm("sei\n")
#define OS_EXIT_CRITICAL() _asm("cli\n")
#define OS_TASK_SW() _asm("swi\n")
void OSStartHardware(void);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?