Maintain legacy RTOS behavior before mbed-5
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_A/RTX_Conf_CA.c
- Revision:
- 59:28712e303960
- Parent:
- 49:77c8e4604045
- Child:
- 61:9387d4c49609
--- a/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c Tue Dec 16 08:15:25 2014 +0000 +++ b/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c Tue Jan 06 16:16:03 2015 +0000 @@ -90,7 +90,7 @@ // <1=> Privileged mode // <i> Default: Privileged mode #ifndef OS_RUNPRIV - #define OS_RUNPRIV 0 + #define OS_RUNPRIV 1 #endif // </h> @@ -107,7 +107,11 @@ // <i> Defines the timer clock value. // <i> Default: 12000000 (12MHz) #ifndef OS_CLOCK +# if defined(TARGET_RZ_A1H) #define OS_CLOCK 12000000 +# else +# error "no target defined" +# endif #endif // <o>Timer tick value [us] <1-1000000> @@ -161,7 +165,7 @@ // <i> Defines stack size for Timer thread. // <i> Default: 200 #ifndef OS_TIMERSTKSZ - #define OS_TIMERSTKSZ 400 + #define OS_TIMERSTKSZ WORDS_STACK_SIZE #endif // <o>Timer Callback Queue size <1-32> @@ -194,7 +198,7 @@ // Define max. number system mutexes that are used to protect // the arm standard runtime library. For microlib they are not used. #ifndef OS_MUTEXCNT - #define OS_MUTEXCNT 8 + #define OS_MUTEXCNT 12 #endif /*---------------------------------------------------------------------------- @@ -216,10 +220,6 @@ for (;;) { /* HERE: include optional user code to be executed when no thread runs.*/ -#if 0 - __DSB(); - __WFI(); -#endif } }