Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard. Support for nucleo F401RE

Dependents:   rtos_basic_stm32_F401

Fork of mbed-rtos by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Mar 20 15:45:22 2014 +0000
Parent:
20:991c4c00af93
Child:
22:da8c5ccc2f9c
Commit message:
Synchronized with git revision a92bf178f6078fd735da2bc64b66dec70accc7c8

Full URL: https://github.com/mbedmicro/mbed/commit/a92bf178f6078fd735da2bc64b66dec70accc7c8/

add errors in case some target defines were not set properly

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	Wed Mar 19 16:00:29 2014 +0000
+++ b/rtx/RTX_CM_lib.h	Thu Mar 20 15:45:22 2014 +0000
@@ -229,6 +229,9 @@
 #elif defined(TARGET_STM32F100RB)
 #define INITIAL_SP            (0x20002000UL)
 
+#else
+#error "no target defined"
+
 #endif
 
 #ifdef __CC_ARM
--- a/rtx/RTX_Conf_CM.c	Wed Mar 19 16:00:29 2014 +0000
+++ b/rtx/RTX_Conf_CM.c	Thu Mar 20 15:45:22 2014 +0000
@@ -53,6 +53,8 @@
 #    define OS_TASKCNT         14
 #  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401)  || defined(TARGET_LPC11U35_501) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z) || defined(TARGET_STM32F100RB)
 #    define OS_TASKCNT         6
+#  else
+#    error "no target defined"
 #  endif
 #endif
 
@@ -62,6 +64,8 @@
 #      define OS_SCHEDULERSTKSIZE    256
 #  elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401)  || defined(TARGET_LPC11U35_501) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z) || defined(TARGET_STM32F100RB)
 #      define OS_SCHEDULERSTKSIZE    128
+#  else
+#    error "no target defined"
 #  endif
 #endif
 
@@ -118,6 +122,9 @@
 
 #  elif defined(TARGET_LPC4088)
 #    define OS_CLOCK       120000000
+
+#  else
+#    error "no target defined"
 #  endif
 #endif