aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-01-05 11:09:07 +0100
committerJF <jf@codingfield.com>2020-01-05 11:09:07 +0100
commitbbe4e500c3a972146d834d21dc355b8509f88342 (patch)
tree780ccd768997f93dd3fdc4db7d612e610bfb3bc0 /src/main.cpp
parent7688f468988ed26f522170bf0a5237ad974be02e (diff)
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)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 0 insertions, 10 deletions
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);