sysvects.h
来自「MSP430电能测量程序,用的是电力线载波通讯.即PLC」· C头文件 代码 · 共 62 行
H
62 行
// comment out one of these two lines
#undef DEBUG_TEST // Keep this line for release code
// #define DEBUG_TEST // Keep this line for debugging
// define user vector addresses
#define USER_VECTS 0x8000 // MUST match the INTVEC address in the linker memory management files
#define USER_0 (USER_VECTS+0x00)
#define USER_1 (USER_VECTS+0x02)
#define USER_2 (USER_VECTS+0x04)
#define USER_3 (USER_VECTS+0x06)
#define USER_4 (USER_VECTS+0x08)
#define USER_5 (USER_VECTS+0x0A)
#define USER_6 (USER_VECTS+0x0C)
#define USER_7 (USER_VECTS+0x0E)
#define USER_8 (USER_VECTS+0x10)
#define USER_9 (USER_VECTS+0x12)
#define USER_A (USER_VECTS+0x14)
#define USER_B (USER_VECTS+0x16)
#define USER_C (USER_VECTS+0x18)
#define USER_D (USER_VECTS+0x1A)
#define USER_E (USER_VECTS+0x1C)
#define USER_F (USER_VECTS+0x1E) // user reset vector
// define loader vector addresses
#define LOAD_VECTS 0xFDE0
#define LOAD_0 (LOAD_VECTS+0x00)
#define LOAD_1 (LOAD_VECTS+0x02)
#define LOAD_2 (LOAD_VECTS+0x04)
#define LOAD_3 (LOAD_VECTS+0x06)
#define LOAD_4 (LOAD_VECTS+0x08)
#define LOAD_5 (LOAD_VECTS+0x0A)
#define LOAD_6 (LOAD_VECTS+0x0C)
#define LOAD_7 (LOAD_VECTS+0x0E)
#define LOAD_8 (LOAD_VECTS+0x10)
#define LOAD_9 (LOAD_VECTS+0x12)
#define LOAD_A (LOAD_VECTS+0x14)
#define LOAD_B (LOAD_VECTS+0x16)
#define LOAD_C (LOAD_VECTS+0x18)
#define LOAD_D (LOAD_VECTS+0x1A)
#define LOAD_E (LOAD_VECTS+0x1C)
#define LOAD_F (LOAD_VECTS+0x1E) // loader reset vector
#define LOAD_TAG 0x1248
#define RUN_TAG (~LOAD_TAG)
#define FLASH_TAG_ADDR 0xFDDE
#ifndef _def_SysVects // Ignore this when being included into assembly file
void HardReset(void);
#ifdef DEBUG_TEST
extern const volatile FlashTag;
#else
#define FlashTag (*((const volatile int*)FLASH_TAG_ADDR))
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?