mirror of https://github.com/ARMmbed/mbed-os.git
add errors in case some target defines were not set properly
parent
ba5efc7b12
commit
bdd80ab5f3
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue