| | |
| | | /* Constants that describe the hardware and memory usage. */ |
| | | #define configCPU_CLOCK_HZ (SystemCoreClock) |
| | | |
| | | extern uint32_t clk_32k_count; |
| | | extern uint32_t clk_32k_freq; |
| | | |
| | | #if ( configUSE_TICKLESS_IDLE == 1 ) |
| | | #if (CONFIG_LOW_SPEED_CLOCK_SRC == 1) |
| | | #define configTICK_RATE_HZ ((TickType_t)clk_32k_count) /*XTL*/ |
| | | #define configTICK_RATE_HZ ((TickType_t)clk_32k_freq) /*XTL*/ |
| | | #else |
| | | #define configTICK_RATE_HZ ((TickType_t)clk_32k_count) /*RCL*/ |
| | | #define configTICK_RATE_HZ ((TickType_t)clk_32k_freq) /*RCL*/ |
| | | #endif |
| | | #define configTICK_ON_WAKING_RATE_HZ ((uint32_t)50) |
| | | #else |
| | |
| | | |
| | | |
| | | /* Constants related to the behaviour or the scheduler. */ |
| | | #ifndef configMAX_PRIORITIES |
| | | #define configMAX_PRIORITIES 8 |
| | | #endif |
| | | #define configUSE_PREEMPTION 1 |
| | | #define configUSE_TIME_SLICING 1 |
| | | #define configIDLE_SHOULD_YIELD 1 |