From d7cd9b8d4d1a52d7aeb67682dbf1f5b217d13b9e Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Sat, 18 May 2024 02:14:50 +0200 Subject: [PATCH] uart functions --- Makefile | 2 +- mc8051fun.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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