bsp.h
来自「嵌入式软件开发.rar」· C头文件 代码 · 共 48 行
H
48 行
/**********************************************************************
*
* Filename: bsp.h
*
* Description: Hardware and project-specific operating system details.
*
* Notes:
*
*
* Copyright (c) 1998 by Michael Barr. This software is placed into
* the public domain and may be used for any purpose. However, this
* notice must not be changed or removed and no warranty is either
* expressed or implied by its publication or distribution.
**********************************************************************/
#ifndef _BSP_H
#define _BSP_H
struct Context
{
int IP;
int CS;
int Flags;
int SP;
int SS;
int SI;
int DS;
};
#include "task.h"
#define enterCS() asm { pushf; cli }
#define exitCS() asm { popf }
extern "C"
{
void contextInit(Context *, void (*run)(Task *), Task *, int * pStackTop);
void contextSwitch(Context * pOldContext, Context * pNewContext);
void idle();
};
#endif /* _BSP_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?