Helmut Tschemernjak / SX1276GenericLib

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more

Fork of SX1276Lib by Semtech

Revision:
103:59930a715bf8
Parent:
101:50377edb21c6
Child:
104:b5183e348f9d
--- a/Arduino-mbed-APIs/arduino-esp32.cpp	Mon Nov 20 08:53:43 2017 +0100
+++ b/Arduino-mbed-APIs/arduino-esp32.cpp	Mon Nov 20 12:42:09 2017 +0100
@@ -41,7 +41,14 @@
 static void initTimer(int timerID);
 void IRAM_ATTR onTimer(void);
 /*
- * The Atmel ESP32 has three 64-bit timer.
+ * The Atmel ESP32 has four 64-bit timer.
+ * At present the solution uses two timers, one for counting ticks,
+ * a second for setting alarms. This is required for the rev-0 ESP
+ *
+ * For the rev. 1 ESP a single timer will work for counting as well for 
+ * setting the alarm via timerAlarmWrite(timer, timerRead(timer) + 1000000, false)
+ * once we support only ESP32-R1 the timer functions can be optimized to use only a
+ * single 64-bit timer.
  */
 struct TIMER_config {
     int timerID;
@@ -51,6 +58,7 @@
     { 0, NULL, 32 },
     { 1, NULL, 32 },
     { 2, NULL, 32 },
+    { 3, NULL, 32 },
     { -1, NULL, 0 }
 };