Extended reporting options (#16741)

This commit is contained in:
Gurmeet Athwal authored and GitHub committed 2020-05-05 23:34:04 -05:00
1 parent 9ce950e3c1
commit a4c981469e
15 files changed
+268 -45

No files matched your search

+3
View File
@@ -53,6 +53,9 @@
// AVR PROGMEM extension for sprintf_P
#define S_FMT "%S"
// AVR PROGMEM extension for string define
#define PGMSTR(NAM,STR) const char NAM[] PROGMEM = STR
#ifndef CRITICAL_SECTION_START
#define CRITICAL_SECTION_START() unsigned char _sreg = SREG; cli()
#define CRITICAL_SECTION_END() SREG = _sreg
+5
View File
@@ -36,6 +36,11 @@
#define S_FMT "%s"
#endif
// String helper
#ifndef PGMSTR
#define PGMSTR(NAM,STR) constexpr char NAM[] = STR
#endif
inline void watchdog_refresh() {
TERN_(USE_WATCHDOG, HAL_watchdog_refresh());
}