Files

uart1.h
#ifndef __UART1_H__ #define __UART1_H__ #include "proj.h" #define UART1_RXBUF_SZ 9 volatile char uart1_rx_buf[UART1_RXBUF_SZ]; volatile uint8_t uart1_p; uint8_t uart1_rx_enable; uint8_t uart1_rx_err; void uart1_init(); uint16_t uart1_tx_str(char *str, uint16_t size); enum uart1_tevent { UART1_EV_RX = BIT0, UART1_EV_TX = BIT1 }; volatile enum uart1_tevent uart1_last_event; #endif
Report a bug