Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard. Added support for LPC4330
Fork of mbed-rtos by
Revision 40:cd5b3adf9548, committed 2014-08-12
- Comitter:
- edodm85
- Date:
- Tue Aug 12 17:03:31 2014 +0000
- Parent:
- 39:34e80e862021
- Commit message:
- Added support for LPC4330
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 |
diff -r 34e80e862021 -r cd5b3adf9548 rtx/RTX_CM_lib.h --- a/rtx/RTX_CM_lib.h Thu Jul 31 15:00:07 2014 +0100 +++ b/rtx/RTX_CM_lib.h Tue Aug 12 17:03:31 2014 +0000 @@ -202,6 +202,9 @@ #if defined(TARGET_LPC1768) #define INITIAL_SP (0x10008000UL) +#elif defined(TARGET_LPC4330_M4) +#define INITIAL_SP (0x20010000UL) + #elif defined(TARGET_LPC11U24) #define INITIAL_SP (0x10002000UL)
diff -r 34e80e862021 -r cd5b3adf9548 rtx/RTX_Conf_CM.c --- a/rtx/RTX_Conf_CM.c Thu Jul 31 15:00:07 2014 +0100 +++ b/rtx/RTX_Conf_CM.c Tue Aug 12 17:03:31 2014 +0000 @@ -49,7 +49,7 @@ // counting "main", but not counting "osTimerThread" // <i> Default: 6 #ifndef OS_TASKCNT -# if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC1347) || defined(TARGET_K64F) || defined(TARGET_STM32F401RE)\ +# if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC1347) || defined(TARGET_K64F) || defined(TARGET_STM32F401RE) || defined(TARGET_LPC4330_M4)\ || defined(TARGET_KL46Z) || defined(TARGET_STM32F407) || defined(TARGET_F407VG) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549) || defined(TARGET_LPC11U68) || defined(TARGET_NRF51822) || defined(TARGET_STM32F411RE) # define OS_TASKCNT 14 # elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC11U35_501) || defined(TARGET_LPCCAPPUCCINO) || defined(TARGET_LPC1114) \ @@ -62,7 +62,7 @@ // <o>Scheduler (+ interrupts) stack size [bytes] <64-4096:8><#/4> #ifndef OS_SCHEDULERSTKSIZE -# if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC1347) || defined(TARGET_K64F) || defined(TARGET_STM32F401RE)\ +# if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) || defined(TARGET_LPC4088) || defined(TARGET_LPC1347) || defined(TARGET_K64F) || defined(TARGET_STM32F401RE) || defined(TARGET_LPC4330_M4)\ || defined(TARGET_KL46Z) || defined(TARGET_STM32F407) || defined(TARGET_F407VG) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549) || defined(TARGET_LPC11U68) || defined(TARGET_NRF51822) || defined(TARGET_STM32F411RE) # define OS_SCHEDULERSTKSIZE 256 # elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC11U35_501) || defined(TARGET_LPCCAPPUCCINO) || defined(TARGET_LPC1114) \ @@ -112,6 +112,9 @@ # if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) # define OS_CLOCK 96000000 +# elif defined(TARGET_LPC4330_M4) +# define OS_CLOCK 204000000 + # elif defined(TARGET_LPC1347) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549) # define OS_CLOCK 72000000