mbed library sources. Supersedes mbed-src.

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Revision:
168:9672193075cf
Parent:
166:c97ed07ec1a8
diff -r e84263d55307 -r 9672193075cf cmsis/TOOLCHAIN_IAR/cmain.S
--- a/cmsis/TOOLCHAIN_IAR/cmain.S	Wed Jun 21 17:46:44 2017 +0100
+++ b/cmsis/TOOLCHAIN_IAR/cmain.S	Thu Jul 06 15:42:05 2017 +0100
@@ -46,6 +46,7 @@
         EXTERN  exit
         EXTERN  __iar_dynamic_initialization
         EXTERN mbed_sdk_init
+        EXTERN mbed_main
         EXTERN SystemInit
         
         THUMB
@@ -87,6 +88,10 @@
           FUNCALL __cmain, __iar_argc_argv
         BL      __iar_argc_argv   ; Maybe setup command line
 
+        MOVS    r0,#0             ;  No parameters  
+          FUNCALL __cmain, mbed_main
+        BL      mbed_main
+
           FUNCALL __cmain, main
         BL      main
 _main: