Add support new target: ST Nucleo-L152RE Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.

Fork of mbed-rtos by mbed official

Files at this revision

API Documentation at this revision

Comitter:
stanly88
Date:
Tue Mar 11 23:03:06 2014 +0000
Parent:
17:771275db0efe
Commit message:
Add support new target: ST Nucleo-L152RE

Changed in this revision

rtx/RTX_CM_lib.h Show annotated file Show diff for this revision Revisions of this file
rtx/RTX_Conf_CM.c Show annotated file Show diff for this revision Revisions of this file
diff -r 771275db0efe -r 2305dcd0c72e rtx/RTX_CM_lib.h
--- a/rtx/RTX_CM_lib.h	Mon Mar 10 11:45:09 2014 +0000
+++ b/rtx/RTX_CM_lib.h	Tue Mar 11 23:03:06 2014 +0000
@@ -223,6 +223,9 @@
 #elif defined(TARGET_LPC1347)
 #define INITIAL_SP            (0x10002000UL)
 
+#elif defined(TARGET_NUCLEO_L152RE)
+#define INITIAL_SP            (0x10002000UL)
+
 #endif
 
 #ifdef __CC_ARM
diff -r 771275db0efe -r 2305dcd0c72e rtx/RTX_Conf_CM.c
--- a/rtx/RTX_Conf_CM.c	Mon Mar 10 11:45:09 2014 +0000
+++ b/rtx/RTX_Conf_CM.c	Tue Mar 11 23:03:06 2014 +0000
@@ -51,7 +51,7 @@
 #ifndef OS_TASKCNT
 #  if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC1347)
 #    define OS_TASKCNT         14
-#  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z)
+#  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z) || defined(TARGET_NUCLEO_L152RE)
 #    define OS_TASKCNT         6
 #  endif
 #endif
@@ -60,7 +60,7 @@
 #ifndef OS_SCHEDULERSTKSIZE
 #  if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC1347)
 #      define OS_SCHEDULERSTKSIZE    256
-#  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z)
+#  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z) || defined(TARGET_NUCLEO_L152RE)
 #      define OS_SCHEDULERSTKSIZE    128
 #  endif
 #endif
@@ -115,6 +115,9 @@
 #
 #  elif defined(TARGET_LPC4088)
 #    define OS_CLOCK       120000000
+#
+#  elif defined(TARGET_NUCLEO_L152RE)
+#    define OS_CLOCK        32000000
 #  endif
 #endif