mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
12 lines
408 B
INI
12 lines
408 B
INI
FUNC void Setup (unsigned int region) {
|
|
region &= 0xFF000000;
|
|
_WDWORD(0x40043100, region); // Set the shadow pointer
|
|
_WDWORD(0xE000ED08, 0); // Set the vector table offset to 0
|
|
SP = _RDWORD(0); // Setup Stack Pointer
|
|
PC = _RDWORD(4); // Setup Program Counter
|
|
}
|
|
|
|
LOAD %L INCREMENTAL
|
|
Setup(0x1a000000); Get ready to execute image in Internal FLASH
|
|
g,main
|