summaryrefslogtreecommitdiff
path: root/esp8266/esp_mphal.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-13 15:04:53 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-13 15:04:53 +0000
commit0b32e50365b6e36474e183a7240ccfc8fa56830a (patch)
tree101cf35f6844c50672af4f15b5866e226bcb47d9 /esp8266/esp_mphal.h
parentc385a639e6316cba4ff0e7a859325807857d8f00 (diff)
stmhal: Make pybstdio usable by other ports, and use it.
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r--esp8266/esp_mphal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index 369b375d9..28f2ed53a 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -30,10 +30,10 @@
void mp_hal_init(void);
void mp_hal_feed_watchdog(void);
void mp_hal_udelay(uint32_t);
-int mp_hal_uart0_rx_chr(void);
-void mp_hal_uart0_write_str(const char *str);
-void mp_hal_uart0_write_strn(const char *str, uint32_t len);
-void mp_hal_uart0_write_strn_cooked(const char *str, uint32_t len);
+int mp_hal_stdin_rx_chr(void);
+void mp_hal_stdout_tx_str(const char *str);
+void mp_hal_stdout_tx_strn(const char *str, uint32_t len);
+void mp_hal_stdout_tx_strn_cooked(const char *str, uint32_t len);
uint32_t HAL_GetTick(void);
void HAL_Delay(uint32_t Delay);
@@ -43,4 +43,5 @@ uint32_t mp_hal_get_cpu_freq(void);
#define UART_TASK_ID 0
void uart_task_init();
+
#endif // _INCLUDED_MPHAL_H_