add errors in case some target defines were not set properly

pull/222/head
mazgch 2014-03-20 16:06:24 +01:00
parent ba5efc7b12
commit bdd80ab5f3
3 changed files with 11 additions and 1 deletions

View File

@ -168,7 +168,7 @@ static u8_t *const memp_bases[] = {
#if defined(TARGET_LPC1768)
# define ETHMEM_SECTION __attribute((section("AHBSRAM1")))
#elif defined(TARGET_LPC4088)
#else
# define ETHMEM_SECTION
#endif

View File

@ -229,6 +229,9 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL}
#elif defined(TARGET_STM32F100RB)
#define INITIAL_SP (0x20002000UL)
#else
#error "no target defined"
#endif
#ifdef __CC_ARM

View File

@ -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