From e553dc70a2bfd556f9313a0c16374eafff828966 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sat, 22 Sep 2018 12:25:03 +0200 Subject: [PATCH] comments in main.cpp --- src/main.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2d0ea2fd..4552a1a5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -216,6 +216,16 @@ void setup() { DisplayState = cfg.screenon; init_display(PRODUCTNAME, PROGVERSION); +/* + Usage of ESP32 hardware timers + ============================== + + 0 Display-Refresh + 1 Wifi Channel Switch + 2 Send Cycle + 3 Housekeeping +*/ + // setup display refresh trigger IRQ using esp32 hardware timer // https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/ @@ -286,8 +296,6 @@ void setup() { /* - Overview Tasks & Timer - Task Core Prio Purpose ==================================================================== IDLE 0 0 ESP32 arduino scheduler @@ -296,13 +304,6 @@ void setup() { loraloop 1 1 runs the LMIC stack statemachine 1 3 switches process logic - Timers - ====== - 0 Display-Refresh - 1 Wifi Channel Switch - 2 Send Cycle - 3 Housekeeping - */ // start lmic runloop in rtos task on core 1