esp8266/modpybuart: allow setting baudrate and other params
diff --git a/esp8266/uart.c b/esp8266/uart.c
index 1c317a1..d724331 100644
--- a/esp8266/uart.c
+++ b/esp8266/uart.c
@@ -237,6 +237,12 @@
     uart_init(UART_BIT_RATE_74880, UART_BIT_RATE_74880);
 }
 
+void ICACHE_FLASH_ATTR uart_setup(uint8 uart) {
+    ETS_UART_INTR_DISABLE();
+    uart_config(uart);
+    ETS_UART_INTR_ENABLE();
+}
+
 // Task-based UART interface
 
 #include "py/obj.h"