summaryrefslogtreecommitdiff
path: root/esp8266/esp_mphal.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-29 11:48:43 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-29 11:48:43 +0300
commit402a743821e99d99e6118669ec162b902b29fcd5 (patch)
tree337ac796edc9c523ed5ca363cd5bbbd5f875f662 /esp8266/esp_mphal.h
parent8fc5e56a6a06523ff864d309c7718885a990cb2b (diff)
esp8266/esp_mphal: Add support for debug UART-only output.
Helpful when debugging dupterm support (because otherwise all output is spooled to dupterm too). To use: mp_printf(&mp_debug_print, "...");
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r--esp8266/esp_mphal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index 4edf266a5..873bfec37 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -27,6 +27,10 @@
#ifndef _INCLUDED_MPHAL_H_
#define _INCLUDED_MPHAL_H_
+struct _mp_print_t;
+// Structure for UART-only output via mp_printf()
+extern const struct _mp_print_t mp_debug_print;
+
void mp_hal_init(void);
void mp_hal_rtc_init(void);
void mp_hal_feed_watchdog(void);