mynewt: Change main to mynewt_main
mynewt system for some time now uses mynewt_main() as starting point called from startup code. This changes function name main to mynewt_main but provides backup main function that will be linked if pre 1.12 mynewt-core is used with mcuboot Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
parent
93c3f78b85
commit
23d4f12169
|
@ -214,7 +214,7 @@ int flash_device_base(uint8_t fd_id, uintptr_t *ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(void)
|
mynewt_main(void)
|
||||||
{
|
{
|
||||||
struct boot_rsp rsp;
|
struct boot_rsp rsp;
|
||||||
uintptr_t flash_base;
|
uintptr_t flash_base;
|
||||||
|
@ -265,3 +265,14 @@ main(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mynewt startup code jump to mynewt_main()
|
||||||
|
* This function is here for compatibility with
|
||||||
|
* pre 1.12. mynewt-core that still wanted main()
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
main(void)
|
||||||
|
{
|
||||||
|
mynewt_main();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue