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-mbed.cpp
- Revision:
- 101:50377edb21c6
- Parent:
- 97:3d5d489206aa
- Child:
- 105:6e6d141c3da8
diff -r c80d1416bdf6 -r 50377edb21c6 Arduino-mbed-APIs/arduino-mbed.cpp
--- a/Arduino-mbed-APIs/arduino-mbed.cpp Sun Nov 19 17:49:33 2017 +0100
+++ b/Arduino-mbed-APIs/arduino-mbed.cpp Sun Nov 19 17:51:27 2017 +0100
@@ -296,8 +296,6 @@
}
-
-
uint32_t s_getTicker(void)
{
long long ns = ns_getTicker();
@@ -327,6 +325,13 @@
return us;
}
+#ifdef ARDUINO_ARCH_ESP32
+#undef noInterrupts
+#undef interrupts
+#define noInterrupts() portENTER_CRITICAL(&timerLock)
+#define interrupts() portEXIT_CRITICAL(&timerLock)
+static portMUX_TYPE timerLock = portMUX_INITIALIZER_UNLOCKED;
+#endif
void
Timeout::insert(void)

