📄 system.h
字号:
/**************************************************************************************************
EDL RTOS Kernel
(c) Copyright 2005, Wu Jun
All Rights Reserved
For further information, please visit http://www.enjoydigitallife.com
* Description: None
* History:
Date Remarks
2005-01-06 Created initial version
2005-12-12 Finished the version 2.01
**************************************************************************************************/
#ifndef SYSTEM_H
#define SYSTEM_H
#include "task.h"
#define ARM_USR_MODE 0x00000010L
#define ARM_SYS_MODE 0x0000001FL
#define ARM_SVC_MODE 0x00000013L
#define NO_INT 0xC0
/**************************************************************************************************
* function definition
**************************************************************************************************/
void sys_init( void );
U32 sys_enableInterrupt( void );
U32 sys_disableInterrupt( void );
void sys_restoreCpuFlags( U32 flags );
void sys_unlockKernel( void );
void sys_lockKernel( void );
void sys_schedule( void );
void sys_enterInterrupt( void );
void sys_leaveInterrupt( void );
void sys_initContext( TCB *tcb, void (*tskProc)(void *),void *pdata, void (*exit)( void ), U32 mode_flags );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -