本帖最后由 CC2530 于 2011-6-23 15:16 编辑
- define region Option = [from 0x4800 to 0x48FF];
- place in Option { ro section .option.rodata,
- ro section .option.text };
IAR STM8,STM8L101F3,OPTION
- #define OPT1_OFFSET 0
- #define OPT2_OFFSET 2
- #define OPT3_OFFSET 3
- #define OPT4_OFFSET 8
- __root const unsigned char Optbytes[] @".option.text"=
- {
- [OPT1_OFFSET]=0x00, //OPT1
- [OPT2_OFFSET]=0x00, //OPT2
- [OPT3_OFFSET]=0x00, //OPT3
- [OPT4_OFFSET]=0x00, //OPT4
- };
|