Fix checking of TARGET_* symbols

pull/204/head
Fatih Aşıcı 2014-03-08 23:26:09 +02:00
parent 74e9b2e462
commit 4a0b7893ec
5 changed files with 18 additions and 18 deletions

View File

@ -202,25 +202,25 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL}
#ifdef TARGET_LPC1768
#define INITIAL_SP (0x10008000UL)
#elif TARGET_LPC11U24
#elif defined(TARGET_LPC11U24)
#define INITIAL_SP (0x10002000UL)
#elif TARGET_LPC11U35_401
#elif defined(TARGET_LPC11U35_401)
#define INITIAL_SP (0x10002000UL)
#elif TARGET_LPC1114
#elif defined(TARGET_LPC1114)
#define INITIAL_SP (0x10001000UL)
#elif TARGET_LPC812
#elif defined(TARGET_LPC812)
#define INITIAL_SP (0x10001000UL)
#elif TARGET_KL25Z
#elif defined(TARGET_KL25Z)
#define INITIAL_SP (0x20003000UL)
#elif TARGET_LPC4088
#elif defined(TARGET_LPC4088)
#define INITIAL_SP (0x10010000UL)
#elif TARGET_LPC1347
#elif defined(TARGET_LPC1347)
#define INITIAL_SP (0x10002000UL)
#endif

View File

@ -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) || (TARGET_LPC1114) || (TARGET_LPC812) || defined(TARGET_KL25Z)
# elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z)
# 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) || (TARGET_LPC1114) || (TARGET_LPC812) || defined(TARGET_KL25Z)
# elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_LPC812) || defined(TARGET_KL25Z)
# define OS_SCHEDULERSTKSIZE 128
# endif
#endif
@ -107,7 +107,7 @@
# elif defined(TARGET_LPC1347)
# define OS_CLOCK 72000000
# elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || (TARGET_LPC1114) || defined(TARGET_KL25Z)
# elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1114) || defined(TARGET_KL25Z)
# define OS_CLOCK 48000000
#
# elif defined(TARGET_LPC812)

View File

@ -5,13 +5,13 @@ DigitalOut led(LED1);
#ifdef TARGET_KL25Z
DigitalOut out(PTA1);
#elif TARGET_LPC812
#elif defined(TARGET_LPC812)
DigitalOut out(D10);
#elif TARGET_KL05Z
#elif defined(TARGET_KL05Z)
DigitalOut out(PTB1);
#elif TARGET_KL46Z
#elif defined(TARGET_KL46Z)
DigitalOut out(PTA1);

View File

@ -3,13 +3,13 @@
#ifdef TARGET_KL25Z
DigitalOut out(PTD4);
#elif TARGET_KL05Z
#elif defined(TARGET_KL05Z)
DigitalOut out(PTB1);
#elif TARGET_KL46Z
#elif defined(TARGET_KL46Z)
DigitalOut out(PTA1);
#elif TARGET_LPC812
#elif defined(TARGET_LPC812)
DigitalOut out(D10);
#else

View File

@ -5,10 +5,10 @@ DigitalOut led(LED1);
#ifdef TARGET_KL25Z
DigitalOut out(PTA1);
#elif TARGET_KL05Z
#elif defined(TARGET_KL05Z)
DigitalOut out(PTB1);
#elif TARGET_KL46Z
#elif defined(TARGET_KL46Z)
DigitalOut out(PTA1);
#elif defined(TARGET_LPC812)