final project  1
uart.h
Go to the documentation of this file.
1 
10 #ifndef UART_H_
11 #define UART_H_
12 
13 
14 void uart_init(void);
15 
16 void uart_sendChar(char data);
17 
18 int uart_receive(void);
19 
20 void uart_sendStr(const char *data);
21 
22 
23 #endif /* UART_H_ */
void uart_init(void)
sets all necessary registers to enable the uart 1 module.
Definition: uart.c:16
int uart_receive(void)
polling receive an 8 bit character over uart 1 module.
Definition: uart.c:63
void uart_sendStr(const char *data)
sends an entire string of character over uart 1 module
Definition: uart.c:75
void uart_sendChar(char data)
Sends a single 8 bit character over the uart 1 module.
Definition: uart.c:54