mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
12 lines
484 B
INI
12 lines
484 B
INI
|
|
FUNC void Setup (unsigned int region) {
|
|
region &= 0xFFFF0000;
|
|
SP = _RDWORD(region); // Setup Stack Pointer
|
|
PC = _RDWORD(region + 4); // Setup Program Counter
|
|
_WDWORD(0xE000ED08, region); // Setup Vector Table Offset Register
|
|
}
|
|
|
|
//LOAD "Board NGX4330\\host_os_none.axf" INCREMENTAL
|
|
LOAD %L INCREMENTAL
|
|
Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main
|