📄 init.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()
{
/* Uncomment one of the following lines to configure */
/* the memory map for your specific target system. */
/* C240_memory_map(); */
F243_memory_map();
/* F240x_memory_map(); */
}
menuitem "Memory Maps";
/************************************************************/
/* The entire C240 address space is mapped as RAM except */
/* for the following illegal data memory sections: */
/* */
/* 0x0800 - 0x700f */
/* 0x7060 - 0x706f */
/* 0x7080 - 0x708f */
/* 0x70a0 - 0x73ff */
/* 0x7800 - 0x7fff */
/************************************************************/
hotmenu C240_memory_map()
{
GEL_MapReset();
GEL_MapOn();
/* Program Memory Maps */
GEL_MapAdd(0x000000,0,0x10000,1,1); /* Entire address space */
/* Data Memory Maps */
GEL_MapAdd(0x0000,1,0x0800,1,1);
GEL_MapAdd(0x7010,1,0x0050,1,1);
GEL_MapAdd(0x7070,1,0x0010,1,1);
GEL_MapAdd(0x7090,1,0x0010,1,1);
GEL_MapAdd(0x7400,1,0x0400,1,1);
GEL_MapAdd(0x8000,1,0x8000,1,1);
/* I/O Memory Maps */
GEL_MapAdd(0x000000,2,0x10000,1,1); /* Entire address space */
}
/************************************************************/
/* The entire F243 address space is mapped as RAM except */
/* for the following illegal data memory sections: */
/* */
/* 0x0800 - 0x700f */
/* 0x7060 - 0x706f */
/* 0x7080 - 0x708f */
/* 0x70a0 - 0x70ff */
/* 0x7230 - 0x73ff */
/* 0x7800 - 0x7fff */
/************************************************************/
hotmenu F243_memory_map()
{
GEL_MapReset();
GEL_MapOn();
/* Program Memory Maps */
GEL_MapAdd(0x0000,0,0x10000,1,1); /* Entire address space */
/* Data Memory Maps */
GEL_MapAdd(0x0000,1,0x0800,1,1);
GEL_MapAdd(0x7010,1,0x0050,1,1);
GEL_MapAdd(0x7070,1,0x0010,1,1);
GEL_MapAdd(0x7090,1,0x0010,1,1);
GEL_MapAdd(0x7100,1,0x0130,1,1);
GEL_MapAdd(0x7400,1,0x0400,1,1);
GEL_MapAdd(0x8000,1,0x8000,1,1);
/* I/O Memory Maps */
GEL_MapAdd(0x000000,2,0x10000,1,1); /* Entire address space */
}
/************************************************************/
/* The entire LF240x/LC240x address space is mapped as RAM */
/* except for the following illegal data memory sections: */
/* */
/* 0x0800 - 0x700f */
/* 0x7030 - 0x703f */
/* 0x7060 - 0x706f */
/* 0x7080 - 0x708f */
/* 0x70c0 - 0x70ff */
/* 0x7230 - 0x73ff */
/* 0x7440 - 0x74ff */
/* 0x7540 - 0x7fff */
/************************************************************/
hotmenu F240x_memory_map()
{
GEL_MapReset();
GEL_MapOn();
/* Program Memory Maps */
GEL_MapAdd(0x0000,0,0x10000,1,1); /* Entire address space */
/* Data Memory Maps */
GEL_MapAdd(0x0000,1,0x0800,1,1);
GEL_MapAdd(0x7010,1,0x0020,1,1);
GEL_MapAdd(0x7040,1,0x0020,1,1);
GEL_MapAdd(0x7070,1,0x0010,1,1);
GEL_MapAdd(0x7090,1,0x0030,1,1);
GEL_MapAdd(0x7100,1,0x0130,1,1);
GEL_MapAdd(0x7400,1,0x0040,1,1);
GEL_MapAdd(0x7500,1,0x0040,1,1);
GEL_MapAdd(0x8000,1,0x8000,1,1);
/* I/O Memory Maps */
GEL_MapAdd(0x000000,2,0x10000,1,1); /* Entire address space */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -