Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-rtos by
Revision 56:2b2a7cc13e28, committed 2014-12-15
- Comitter:
- mbed_official
- Date:
- Mon Dec 15 09:00:24 2014 +0000
- Parent:
- 55:5f5ceea4fc8a
- Child:
- 57:430de2831ec7
- Commit message:
- Synchronized with git revision f3acd0e7aa3cbba2a6b264dc2e9f596891dea133
Full URL: https://github.com/mbedmicro/mbed/commit/f3acd0e7aa3cbba2a6b264dc2e9f596891dea133/
Tools: changed device name from nRF51822_xxAA -> nRF51xxx on all Nordic boards
Changed in this revision
rtx/TARGET_CORTEX_M/RTX_CM_lib.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/rtx/TARGET_CORTEX_M/RTX_CM_lib.h Wed Dec 03 13:15:24 2014 +0000 +++ b/rtx/TARGET_CORTEX_M/RTX_CM_lib.h Mon Dec 15 09:00:24 2014 +0000 @@ -436,21 +436,34 @@ #elif defined (__ICCARM__) +extern void* __vector_table; extern int __low_level_init(void); extern void __iar_data_init3(void); +extern __weak void __iar_init_core( void ); +extern __weak void __iar_init_vfp( void ); +extern void __iar_dynamic_initialization(void); +extern void mbed_sdk_init(void); extern void exit(int arg); -__noreturn __stackless void __cmain(void) { +#pragma required=__vector_table +void __iar_program_start( void ) +{ + __iar_init_core(); + __iar_init_vfp(); + int a; if (__low_level_init() != 0) { __iar_data_init3(); - } + mbed_sdk_init(); + __iar_dynamic_initialization(); + } osKernelInitialize(); set_main_stack(); osThreadCreate(&os_thread_def_main, NULL); a = osKernelStart(); - exit(a); + exit(a); + } #endif