File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -520,6 +520,7 @@ void pre_main(void)
520
520
if (low_level_init_needed ) {
521
521
__iar_dynamic_initialization ();
522
522
}
523
+ mbed_main ();
523
524
main ();
524
525
}
525
526
@@ -547,16 +548,6 @@ void __iar_program_start( void )
547
548
mbed_start_main ();
548
549
}
549
550
550
- /* IAR doesn't have the $Super/$Sub mechanism of armcc, nor something equivalent
551
- * to ld's --wrap. It does have a --redirect, but that doesn't help, since redirecting
552
- * 'main' to another symbol looses the original 'main' symbol. However, its startup
553
- * code will call a function to setup argc and argv (__iar_argc_argv) if it is defined.
554
- * Since mbed doesn't use argc/argv, we use this function to call our mbed_main.
555
- */
556
- void __iar_argc_argv () {
557
- mbed_main ();
558
- }
559
-
560
551
/* Thread safety */
561
552
static osMutexId_t std_mutex_id_sys [_MAX_LOCK ] = {0 };
562
553
static os_mutex_t std_mutex_sys [_MAX_LOCK ] = {0 };
You can’t perform that action at this time.
0 commit comments