diff options
author | Richard Barry <ribarry@amazon.com> | 2013-12-11 11:35:03 +0000 |
---|---|---|
committer | Richard Barry <ribarry@amazon.com> | 2013-12-11 11:35:03 +0000 |
commit | ed54bc497db777a8f7a11dee0cb6eb9cd7172838 (patch) | |
tree | 195aea5d9e855e207c04fb44f90259671c215649 /FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR | |
parent | 4b655ac3bb6eebf60b12c1e5f42c126975564f05 (diff) | |
download | freertos-git-ed54bc497db777a8f7a11dee0cb6eb9cd7172838.tar.gz |
Complete STM32L low power demo.
Diffstat (limited to 'FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR')
-rw-r--r-- | FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/STM32L_low_power_tick_management.c | 5 | ||||
-rw-r--r-- | FreeRTOS/Demo/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
|