From bbe4e500c3a972146d834d21dc355b8509f88342 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 5 Jan 2020 11:09:07 +0100 Subject: Improve power consumption and SLEEP mode : - Disable IDLE hook (it would wake the device up as soon as possible). - Logger task sleep for 100ms (disable logging for better battery life) - Logging is disabled by default - Apply fix for ERRATA 87 (clear FPU interrupt before going to sleep). Ports files from FreeRTOS are now in the sources (they where in the SDK before) --- src/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 64014280..43ef24f1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -42,6 +42,9 @@ list(APPEND SOURCE_FILES Components/Ble/BleController.cpp Components/DateTime/DateTimeController.cpp drivers/Cst816s.cpp + FreeRTOS/port.c + FreeRTOS/port_cmsis_systick.c + FreeRTOS/port_cmsis.c ) set(INCLUDE_FILES @@ -59,6 +62,12 @@ set(INCLUDE_FILES Components/Ble/BleController.h Components/DateTime/DateTimeController.h drivers/Cst816s.h + FreeRTOS/portmacro.h + FreeRTOS/portmacro_cmsis.h +) + +include_directories( + FreeRTOS/ ) nRF5x_addExecutable(pinetime-app "${SOURCE_FILES}") \ No newline at end of file -- cgit v1.2.3-70-g09d2