diff --git a/Makefile b/Makefile index 2f9f053..ca527e4 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ SYSCLK ?= 11056 FOSC ?=11056000L CFLAGS ?= -DWITH_ALT_LED9 -DWITHOUT_LEDTABLE_RELOC -DSHOW_TEMP_DATE_WEEKDAY -LIBSRC = uart_init.c +LIBSRC = uart_init.c uart_send_chr.c uart_send_str.c LIBOBJ =$(patsubst %.c,%.rel, $(LIBSRC)) LIBNAME=mc8051fun.lib diff --git a/mc8051fun.h b/mc8051fun.h index e484ff0..223995b 100644 --- a/mc8051fun.h +++ b/mc8051fun.h @@ -3,4 +3,9 @@ #include <8052.h> + +void uart_init(long fosc, long baud); +void uart_send_chr(char tx_data); +void uart_send_str(const char *str); + #endif