File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 22
22
"value" : 3 ,
23
23
"macro_name" : " MAX_BOOT_RETRIES"
24
24
},
25
+ "nonstandard-entrypoint" : {
26
+ "help" : " Set to 1 to turn the Mbed Bootloader application into a library that can be ported to other platforms." ,
27
+ "value" : null ,
28
+ "macro_name" : " MBED_BOOTLOADER_NONSTANDARD_ENTRYPOINT"
29
+ },
25
30
"show-serial-output" : {
26
31
"help" : " Show boot status and progress on serial output. Disable output to save space on headless devices." ,
27
32
"value" : 1 ,
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ const arm_uc_installer_details_t bootloader = {
40
40
.layout = BOOTLOADER_STORAGE_LAYOUT
41
41
};
42
42
43
+ #if defined(MBED_BOOTLOADER_NONSTANDARD_ENTRYPOINT)
44
+ extern " C"
45
+ int mbed_bootloader_entrypoint (void )
46
+ #else
43
47
int main (void )
48
+ #endif
44
49
{
45
50
// this forces the linker to keep bootloader object now that it's not
46
51
// printed anymore
You can’t perform that action at this time.
0 commit comments