Maintain legacy RTOS behavior before mbed-5
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_A/RTX_Conf_CA.c
- Revision:
- 123:58563e6cba1e
- Parent:
- 118:6635230e06ba
--- a/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c Wed Nov 09 12:22:14 2016 -0600 +++ b/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c Mon Nov 14 17:14:42 2016 -0600 @@ -38,10 +38,8 @@ * RTX User configuration part BEGIN *---------------------------------------------------------------------------*/ -#if defined(MBED_RTOS_SINGLE_THREAD) -#define OS_TASKCNT 1 -#define OS_TIMERS 0 -#endif +// Include per-target RTX config file +#include "mbed_rtx.h" //-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- // @@ -122,11 +120,7 @@ // <i> Defines the timer clock value. // <i> Default: 12000000 (12MHz) #ifndef OS_CLOCK -# if defined(TARGET_RZ_A1H) || defined(TARGET_VK_RZ_A1H) - #define OS_CLOCK 12000000 -# else -# error "no target defined" -# endif + #error "no target defined" #endif // <o>Timer tick value [us] <1-1000000> @@ -320,6 +314,14 @@ for (;;); } +/*---------------------------------------------------------------------------- + * RTX Hooks + *---------------------------------------------------------------------------*/ +extern void thread_terminate_hook(osThreadId id); + +void sysThreadTerminate(osThreadId id) { + thread_terminate_hook(id); +} /*---------------------------------------------------------------------------- * RTX Configuration Functions