with Nucleo STM32F302R8 support (until merged)

Dependents:   m2x-demo-all-cc3000

Fork of mbed-rtos by mbed official

Files at this revision

API Documentation at this revision

Comitter:
lwrnc
Date:
Fri Oct 24 22:07:37 2014 +0000
Parent:
44:e2da1b20a6d5
Commit message:
add RTOS support for Nucleo STM32F302R8

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
--- a/rtx/RTX_CM_lib.h	Thu Oct 23 09:45:24 2014 +0100
+++ b/rtx/RTX_CM_lib.h	Fri Oct 24 22:07:37 2014 +0000
@@ -268,6 +268,9 @@
 #elif defined(TARGET_STM32F103RB)
 #define INITIAL_SP            (0x20005000UL)
 
+#elif defined(TARGET_STM32F302R8)
+#define INITIAL_SP            (0x20004000UL)
+
 #else
 #error "no target defined"
 
--- a/rtx/RTX_Conf_CM.c	Thu Oct 23 09:45:24 2014 +0100
+++ b/rtx/RTX_Conf_CM.c	Fri Oct 24 22:07:37 2014 +0000
@@ -54,7 +54,7 @@
 #    define OS_TASKCNT         14
 #  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_STM32F103RB) || defined(TARGET_LPC824) || defined(TARGET_STM32F302R8)
 #    define OS_TASKCNT         6
 #  else
 #    error "no target defined"
@@ -68,7 +68,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_STM32F103RB) || defined(TARGET_LPC824) || defined(TARGET_STM32F302R8)
 #      define OS_SCHEDULERSTKSIZE    128
 #  else
 #    error "no target defined"
@@ -114,7 +114,7 @@
 #  if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
 #    define OS_CLOCK       96000000
 
-#  elif defined(TARGET_LPC1347) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549)
+#  elif defined(TARGET_LPC1347) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549) || defined(TARGET_STM32F302R8)
 #    define OS_CLOCK       72000000
 
 #  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401)  || defined(TARGET_LPC11U35_501) || defined(TARGET_LPCCAPPUCCINO)  || defined(TARGET_LPC1114) || defined(TARGET_KL25Z) || defined(TARGET_KL05Z) || defined(TARGET_KL46Z) || defined(TARGET_KL43Z) || defined(TARGET_STM32F051R8) || defined(TARGET_LPC11U68)