Files
OpenEPaperLink/zbs243_shared/soc/zbs243/uart.h
2023-03-27 15:32:37 +02:00

28 lines
424 B
C

#ifndef _UART_ZBS_H_
#define _UART_ZBS_H_
#include <stdint.h>
//pre-configured for 115200 8n1
//RX can be done but i do not need it
#pragma callee_saves uartInit
void uartInit(void);
#pragma callee_saves uartTx
void uartTx(uint8_t val);
#ifdef AP_FW
void UART_IRQ1(void) __interrupt (0);
#pragma callee_saves uartBytesAvail
uint8_t uartBytesAvail(void);
#pragma callee_saves uartRX
uint8_t uartRx();
#endif
#endif