From c8ea6f4a7541f848b4ca6720c9f5a8d3d1fc8958 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 2 Mar 2017 17:29:43 -0800 Subject: initial low power mode implementation --- examples/imx7_colibri_m4/low_power_demo/FreeRTOSConfig.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/imx7_colibri_m4/low_power_demo/FreeRTOSConfig.h') diff --git a/examples/imx7_colibri_m4/low_power_demo/FreeRTOSConfig.h b/examples/imx7_colibri_m4/low_power_demo/FreeRTOSConfig.h index 45eccbb..2027d64 100644 --- a/examples/imx7_colibri_m4/low_power_demo/FreeRTOSConfig.h +++ b/examples/imx7_colibri_m4/low_power_demo/FreeRTOSConfig.h @@ -84,10 +84,12 @@ #include #endif +extern unsigned long configCPU_CLOCK_HZ; + #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 1 #define configUSE_TICK_HOOK 0 -#define configCPU_CLOCK_HZ (240000000ul) +#define configCPU_CLOCK_HZ_DEFAULT (240000000ul) #define configTICK_RATE_HZ ((TickType_t)1000) #define configMAX_PRIORITIES (5) #define configMINIMAL_STACK_SIZE ((unsigned short)130) @@ -125,6 +127,7 @@ to exclude the API function. */ #define INCLUDE_vTaskSuspend 1 #define INCLUDE_vTaskDelayUntil 0 #define INCLUDE_vTaskDelay 1 +#define INCLUDE_xTaskGetSchedulerState 1 /* Cortex-M specific definitions. */ #ifdef __NVIC_PRIO_BITS -- cgit v1.2.3