You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
602 B
25 lines
602 B
8 years ago
|
//
|
||
|
// Created by MightyPork on 2017/08/24.
|
||
|
//
|
||
|
|
||
|
#ifndef ESP_VT100_FIRMWARE_UART_BUFFER_H
|
||
|
#define ESP_VT100_FIRMWARE_UART_BUFFER_H
|
||
|
|
||
|
#include <esp8266.h>
|
||
|
|
||
|
// 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
|