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/main.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b05c924a..420bb948 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,16 +36,6 @@ Pinetime::Controllers::DateTime dateTimeController; static constexpr uint8_t pinButton = 13; static constexpr uint8_t pinTouchIrq = 28; -extern "C" { - void vApplicationIdleHook() { - logger.Resume(); - } - - void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) { - bsp_board_led_on(3); - } -} - void nrfx_gpiote_evt_handler(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action) { if(pin == pinTouchIrq) { displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::TouchEvent); -- cgit v1.2.3-70-g09d2