Skip to content

Commit 93773ba

Browse files
committed
Calling mbed_main when using RTX and compiling with IAR
1 parent f864b84 commit 93773ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,8 @@ extern __weak void __iar_init_core( void );
713713
extern __weak void __iar_init_vfp( void );
714714
extern void __iar_dynamic_initialization(void);
715715
extern void mbed_sdk_init(void);
716+
extern void mbed_main(void);
717+
extern int main(void);
716718
extern void exit(int arg);
717719

718720
static uint8_t low_level_init_needed;
@@ -721,6 +723,7 @@ void pre_main(void) {
721723
if (low_level_init_needed) {
722724
__iar_dynamic_initialization();
723725
}
726+
mbed_main();
724727
main();
725728
}
726729

0 commit comments

Comments
 (0)