Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Diff: Arduino-mbed-APIs/arduino-esp32.cpp
- 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 }
};

