mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2120 from TomoYamanaka/master
Modify the timing at which mbed_main() is called in IAR compiler.pull/2128/head
commit
57c28a9fdf
|
@ -523,12 +523,15 @@ extern __weak void __iar_init_core( void );
|
||||||
extern __weak void __iar_init_vfp( void );
|
extern __weak void __iar_init_vfp( void );
|
||||||
extern void __iar_dynamic_initialization(void);
|
extern void __iar_dynamic_initialization(void);
|
||||||
extern void mbed_sdk_init(void);
|
extern void mbed_sdk_init(void);
|
||||||
|
extern void mbed_main(void);
|
||||||
|
extern int main(void);
|
||||||
static uint8_t low_level_init_needed;
|
static uint8_t low_level_init_needed;
|
||||||
|
|
||||||
void pre_main(void) {
|
void pre_main(void) {
|
||||||
if (low_level_init_needed) {
|
if (low_level_init_needed) {
|
||||||
__iar_dynamic_initialization();
|
__iar_dynamic_initialization();
|
||||||
}
|
}
|
||||||
|
mbed_main();
|
||||||
main();
|
main();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue