// // Created by MightyPork on 2017/08/24. // #ifndef ESP_VT100_FIRMWARE_UART_BUFFER_H #define ESP_VT100_FIRMWARE_UART_BUFFER_H #include // the init func void ICACHE_FLASH_ATTR UART_AllocBuffers(void); // read from rx buffer uint16 ICACHE_FLASH_ATTR UART_ReadAsync(char *pdata, uint16 data_len); // write to tx buffer void ICACHE_FLASH_ATTR UART_SendAsync(char *pdata, uint16 data_len); //move data from uart fifo to rx buffer void UART_RxFifoDeq(void); //move data from uart tx buffer to fifo void UART_DispatchFromTxBuffer(uint8 uart_no); #endif //ESP_VT100_FIRMWARE_UART_BUFFER_H