00224dd7eb
still need set __putc as a fuction pointer to the uart_putc
7 lines
135 B
C
7 lines
135 B
C
#include <uart1.h>
|
|
|
|
void uart1_putc(char c) {
|
|
while(*UT1CON == 31); /* wait for there to be room in the buffer */
|
|
*UART1_DATA = c;
|
|
}
|