esp8266/modpybuart: allow setting baudrate and other params

This commit is contained in:
Radomir Dopieralski
2016-06-29 14:18:48 +02:00
parent d1b7ba5dc1
commit 35962eaab0
3 changed files with 98 additions and 10 deletions

View File

@@ -237,6 +237,12 @@ void ICACHE_FLASH_ATTR uart_reattach() {
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"