uart functions

This commit is contained in:
7u83 2024-05-18 02:14:50 +02:00
parent 1dfac0074b
commit d7cd9b8d4d
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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