📄 init243.gel
字号:
/* This GEL file is loaded on the command line of Code Composer
* The StartUp() function is called every time you start
* Code Composer. You can customize this function to
* initialize wait states or to perform other initialization.
*/
StartUp()
{
GEL_MapOn();
GEL_MapReset();
GEL_MapAdd(0x0000,1,0x005F,1,1); /* MMRs */
GEL_MapAdd(0x0060,1,0x0020,1,1); /* On-Chip RAM B2 */
GEL_MapAdd(0x0200,1,0x0100,1,1); /* On-Chip RAM B0 if CNF=0 */
GEL_MapAdd(0x0300,1,0x0100,1,1); /* On-Chip RAM B1 */
GEL_MapAdd(0x8000,1,0x8000,1,1); /* External memory */
GEL_MapAdd(0x7010,1,0x000F,1,1); /* Peripheral - System Config & Control */
GEL_MapAdd(0x7020,1,0x0010,1,1); /* Peripheral - WDT / RTI */
GEL_MapAdd(0x7030,1,0x0010,1,1); /* Peripheral - ADC */
GEL_MapAdd(0x7040,1,0x0010,1,1); /* Peripheral - SPI */
GEL_MapAdd(0x7050,1,0x0010,1,1); /* Peripheral - SCI */
GEL_MapAdd(0x7070,1,0x0010,1,1); /* Peripheral - Ext Ints */
GEL_MapAdd(0x7090,1,0x0010,1,1); /* Peripheral - Digital I/O */
GEL_MapAdd(0x7400,1,0x001D,1,1); /* Peripheral - Event Mgr */
GEL_MapAdd(0x7420,1,0x0006,1,1); /* Peripheral - Event Mgr Capture & QEP */
GEL_MapAdd(0x742C,1,0x0009,1,1); /* Peripheral - Event Mgr Int cntl */
GEL_MapAdd(0x0000,0,0x4000,1,1); /* Internal Program memory - Flash */
GEL_MapAdd(0x4000,0,0xBE00,1,1); /* External Program memory */
GEL_MapAdd(0xFE00,0,0x0100,1,1); /* Available if CNF=1 i.e. B0 */
GEL_MapAdd(0x0000,2,0x0008,0,1); /* I/O Memory Mapped DAC Registers */
GEL_MapAdd(0x0008,2,0x0004,1,0); /* I/O Memory Mapped DIP Switches */
GEL_MapAdd(0x000C,2,0x0004,0,1); /* I/O Memory Mapped LEDs */
GEL_MapAdd(0xFFFF,2,0x0001,1,1); /* Wait-state Generator Register */
GEL_Reset();
GEL_ProjectBuild();
GEL_WatchReset();
GEL_WatchAdd("*(int *)0x7018@data,x ; SCSR");
GEL_WatchAdd("*(int *)0x7403@data ; T1PR");
GEL_WatchAdd("*(int *)0x7417@data ; CMPR1");
GEL_WatchAdd("*(int *)0x7404@data,x ; T1CON");
GEL_WatchAdd("*(int *)0x7411@data,x ; COMCON");
GEL_WatchAdd("*(int *)0x742F@data,x ; EVIFRA");
GEL_WatchAdd("*(int *)0x742C@data,x ; EVIMRA");
GEL_Go(main);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -