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.h
- Revision:
- 105:6e6d141c3da8
- Parent:
- 101:50377edb21c6
--- a/Arduino-mbed-APIs/arduino-mbed.h Tue Nov 21 16:59:28 2017 +0100
+++ b/Arduino-mbed-APIs/arduino-mbed.h Wed Nov 22 12:14:00 2017 +0100
@@ -12,11 +12,18 @@
#include <arduino.h>
#include "Callback-A.h"
+#include <sys/time.h>
+#include <time.h>
#include <SPI.h>
#undef min
#undef max
#undef map
+#ifdef ARDUINO_ARCH_ESP32
+#include <rom/rtc.h>
+#include <esp_deep_sleep.h>
+#endif
+
typedef int PinName;
#define NC -1
/* we need to redefine out dprintf because stdio.h uses the same name */
@@ -51,14 +58,21 @@
extern int CPUID(uint8_t *buf, int maxSize, uint32_t xorval);
extern void sleep(void);
extern void deepsleep(void);
+extern time_t cvt_date(char const *date, char const *time);
#define MAX_TIMEOUTS 10
+extern int maxTimeouts;
class Timeout;
struct TimeoutVector {
Timeout *timer;
};
extern TimeoutVector TimeOuts[];
+#ifdef ARDUINO_ARCH_ESP32
+extern const char *ESP32WakeUpReason(esp_deep_sleep_wakeup_cause_t wakeup_reason);
+extern const char *ESP32ResetReason(RESET_REASON r);
+#endif
+
/*
* Arduino-mbed.cpp

