From bb1330f64585e5ecc7d63a99cb4f234ea2ff4f57 Mon Sep 17 00:00:00 2001 From: rtel Date: Wed, 11 Dec 2013 11:35:03 +0000 Subject: [PATCH] Complete STM32L low power demo. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2126 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../STM32L_low_power_tick_management.c | 5 ++++- .../CORTEX_STM32L152_Discovery_IAR/include/FreeRTOSConfig.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/STM32L_low_power_tick_management.c b/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/STM32L_low_power_tick_management.c index d7cd3b2e7..8eb69b9a0 100644 --- a/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/STM32L_low_power_tick_management.c +++ b/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/STM32L_low_power_tick_management.c @@ -76,7 +76,10 @@ /* * When configCREATE_LOW_POWER_DEMO is set to 1 then the tick interrupt * is generated by the TIM2 peripheral. The TIM2 configuration and handling - * functions are defined in this file. + * functions are defined in this file. Note the RTC is not used as there does + * not appear to be a way to read back the RTC count value, and therefore the + * only way of knowing exactly how long a sleep lasted is to use the very low + * resolution calendar time. * * When configCREATE_LOW_POWER_DEMO is set to 0 the tick interrupt is * generated by the standard FreeRTOS Cortex-M port layer, which uses the diff --git a/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/include/FreeRTOSConfig.h b/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/include/FreeRTOSConfig.h index 46d059c91..d74933d72 100644 --- a/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/include/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/include/FreeRTOSConfig.h @@ -89,7 +89,7 @@ assembler. */ /* Set configCREATE_LOW_POWER_DEMO to one to run the simple blinky low power demo, or 0 to run the more comprehensive test and demo application. */ -#define configCREATE_LOW_POWER_DEMO 0 +#define configCREATE_LOW_POWER_DEMO 1 /* A few settings are dependent on the configCREATE_LOW_POWER_DEMO setting. */ #if configCREATE_LOW_POWER_DEMO == 1 -- 2.39.2