cpu.h
来自「《嵌入式固件开发》一书的源码」· C头文件 代码 · 共 62 行
H
62 行
/* cpu.h: General notice: This code is part of a boot-monitor package developed as a generic base platform for embedded system designs. As such, it is likely to be distributed to various projects beyond the control of the original author. Please notify the author of any enhancements made or bugs found so that all may benefit from the changes. In addition, notification back to the author will allow the new user to pick up changes that may have been made by other users after this version of the code was distributed. Author: Ed Sutter email: esutter@lucent.com (home: lesutter@worldnet.att.net) phone: 908-582-2351 (home: 908-889-5161)*/#ifndef LANGUAGE# ifdef __ASSEMBLY__# define LANGUAGE Assembly# else# define LANGUAGE C# endif#endif#define MONARGV0 "monarm"#undef USE_SA1100#define USE_SA1110 1#define VECTOR(v) (*(ulong *)(getvbr()+((v)*4)))#define JUMPTOSTART() coldstart()/* Standard restart (warmstart) definitions used by monitor... */#define EXCEPTION (1<<4)#define BREAKPOINT (2<<4)#define INITIALIZE (3<<4)#define SSTEP (4<<4)#define APPLICATION (5<<4)#define MORESTART (6<<4)#define BAILOUT (7<<4)#define MISC (8<<4)#define APP_EXIT (9<<4)#define MONITOR_STATUS 0x0000001f/* This size is dependent on the amount of memory on the board... */#define APPLICATION_STACK 0x107fff0#define APPSTACK_SIZE 4096#ifndef __ASSEMBLY__ extern void delayInit(void);extern void cpu_reset(void);#endif#define RESET (cpu_reset)#define RESETFUNC() ((void(*)())RESET)/* TRAP stuff used by at.c: */#define TRAPNUM 32 #define TRAPU 0xc3#define TRAPL TRAPNUM#define ATVECTOR 32
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?