// uart.h - USART2 driver interface for ENGS 28
#ifndef UART_H
#define UART_H

void uart2_init(void);    // configure USART2 for 9600 8N1, PA2=TX, PA3=RX
void uart2_write(int ch); // transmit one byte (blocking)
int  uart2_read(void);    // receive one byte (blocking)

#endif // UART_H
