Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard. Adaption for NUCLEO-L152RE
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_A/RTX_CM_lib.h
- Revision:
- 67:63988a2238f7
- Parent:
- 49:77c8e4604045
- Child:
- 68:d3d0e710b443
--- a/rtx/TARGET_CORTEX_A/RTX_CM_lib.h Mon Feb 23 18:30:08 2015 +0000
+++ b/rtx/TARGET_CORTEX_A/RTX_CM_lib.h Fri Feb 27 10:00:40 2015 +0000
@@ -258,40 +258,6 @@
#pragma pop
#endif
#else
-#if 0
-//#ifdef __MBED_CMSIS_RTOS_CA9
-__asm void __rt_entry (void) {
-
- IMPORT __user_setup_stackheap
- IMPORT __rt_lib_init
- IMPORT os_thread_def_main
- IMPORT osKernelInitialize
- IMPORT osKernelStart
- IMPORT osThreadCreate
- IMPORT InterruptHandlerRegister
- IMPORT PendSV_Handler
- IMPORT OS_Tick_Handler
- IMPORT exit
-
- BL __user_setup_stackheap
- MOV R1,R2
- BL __rt_lib_init
- BL osKernelInitialize
- LDR R0,=os_thread_def_main
- MOVS R1,#0
- BL osThreadCreate
- BL osKernelStart
- MOVS R0,#0
- LDR R1,=PendSV_Handler
- BL InterruptHandlerRegister
- MOVS R0,#134
- LDR R1,=OS_Tick_Handler
- BL InterruptHandlerRegister
- BL exit
-
- ALIGN
-}
-#else
__asm void __rt_entry (void) {
IMPORT __user_setup_stackheap
@@ -315,7 +281,6 @@
ALIGN
}
#endif
-#endif
#elif defined (__GNUC__)
@@ -375,7 +340,7 @@
__attribute__((naked)) void software_init_hook (void) {
__asm (
".syntax unified\n"
- ".thumb\n"
+ ".arm\n"
"movs r0,#0\n"
"movs r1,#0\n"
"mov r4,r0\n"
