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.
Fork of SX1276GenericLib by
Diff: Arduino-mbed-APIs/arduino-mbed.cpp
- Revision:
- 97:3d5d489206aa
- Parent:
- 96:9da7e00c9d0f
- Child:
- 101:50377edb21c6
--- a/Arduino-mbed-APIs/arduino-mbed.cpp Tue Nov 14 14:52:01 2017 +0100 +++ b/Arduino-mbed-APIs/arduino-mbed.cpp Sat Nov 18 13:54:15 2017 +0100 @@ -22,6 +22,7 @@ void InitSerial(Stream *serial, int timeout_ms, DigitalOut *led, bool waitForSerial) { ser = serial; +#ifdef ARDUINO_SAMD_ZERO SerialUSB_active = true; if (!timeout_ms) return; @@ -59,6 +60,11 @@ } } } +#elif ARDUINO_ARCH_ESP32 + SerialUSB_active = false; +#else +#eror "unkown MCU" +#endif } static void pinInt00(void); @@ -356,7 +362,7 @@ void Timeout::restart() { - Tcc *t = getTimeout_tcc(); + TIMER_REF *t = getTimeoutTimer(); uint64_t timeout = ~0; /*