Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard. Adaption for NUCLEO-L152RE

Dependents:   Polytech_tours

Fork of mbed-rtos by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mullercamille
Date:
Tue Apr 21 18:09:15 2015 +0000
Parent:
73:34292fba723c
Commit message:
First

Changed in this revision

rtx/TARGET_CORTEX_M/RTX_CM_lib.h Show annotated file Show diff for this revision Revisions of this file
rtx/TARGET_CORTEX_M/RTX_Conf_CM.c Show annotated file Show diff for this revision Revisions of this file
diff -r 34292fba723c -r 6aaed77b9971 rtx/TARGET_CORTEX_M/RTX_CM_lib.h
--- a/rtx/TARGET_CORTEX_M/RTX_CM_lib.h	Thu Apr 16 11:45:43 2015 +0100
+++ b/rtx/TARGET_CORTEX_M/RTX_CM_lib.h	Tue Apr 21 18:09:15 2015 +0000
@@ -286,6 +286,9 @@
 #elif defined(TARGET_STM32F429ZI)
 #define INITIAL_SP            (0x20030000UL)
 
+#elif defined(TARGET_NUCLEO_L152RE)
+#define INITIAL_SP            (0x20004000UL)
+
 #elif defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8)
 #define INITIAL_SP            (0x20002000UL)
 
diff -r 34292fba723c -r 6aaed77b9971 rtx/TARGET_CORTEX_M/RTX_Conf_CM.c
--- a/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c	Thu Apr 16 11:45:43 2015 +0100
+++ b/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c	Tue Apr 21 18:09:15 2015 +0000
@@ -56,7 +56,7 @@
 #  elif defined(TARGET_LPC11U24) || defined(TARGET_STM32F303RE) || defined(TARGET_LPC11U35_401)  || defined(TARGET_LPC11U35_501) || defined(TARGET_LPCCAPPUCCINO) || defined(TARGET_LPC1114) \
    || defined(TARGET_LPC812)   || defined(TARGET_KL25Z)         || defined(TARGET_KL05Z)        || defined(TARGET_STM32F100RB)  || defined(TARGET_STM32F051R8) \
    || defined(TARGET_STM32F103RB) || defined(TARGET_LPC824) || defined(TARGET_STM32F302R8) || defined(TARGET_STM32F334R8) || defined(TARGET_STM32F334C8) \
-   || defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8) || defined(TARGET_STM32F072RB) || defined(TARGET_STM32F091RC)
+   || defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8) || defined(TARGET_STM32F072RB) || defined(TARGET_STM32F091RC)  || defined(TARGET_NUCLEO_L152RE)
 #    define OS_TASKCNT         6
 #  else
 #    error "no target defined"
@@ -71,7 +71,7 @@
 #      define OS_SCHEDULERSTKSIZE    256
 #  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401)  || defined(TARGET_LPC11U35_501) || defined(TARGET_LPCCAPPUCCINO)  || defined(TARGET_LPC1114) \
    || defined(TARGET_LPC812)   || defined(TARGET_KL25Z)         || defined(TARGET_KL05Z)        || defined(TARGET_STM32F100RB)  || defined(TARGET_STM32F051R8) \
-   || defined(TARGET_STM32F103RB) || defined(TARGET_LPC824) || defined(TARGET_STM32F302R8) || defined(TARGET_STM32F072RB) || defined(TARGET_STM32F091RC)
+   || defined(TARGET_STM32F103RB) || defined(TARGET_LPC824) || defined(TARGET_STM32F302R8) || defined(TARGET_STM32F072RB) || defined(TARGET_STM32F091RC)  || defined(TARGET_NUCLEO_L152RE)
 #      define OS_SCHEDULERSTKSIZE    128
 #  elif defined(TARGET_STM32F334R8) || defined(TARGET_STM32F303RE) ||  defined(TARGET_STM32F334C8) || defined(TARGET_STM32L053R8) || defined(TARGET_STM32L053C8)
 #      define OS_SCHEDULERSTKSIZE    112
@@ -171,6 +171,9 @@
 #elif defined(TARGET_MAX32610) || defined(TARGET_MAX32600)
 #    define OS_CLOCK       24000000
 
+#  elif defined(TARGET_NUCLEO_L152RE)
+#    define OS_CLOCK        32000000
+
 #  else
 #    error "no target defined"
 #  endif