uart functions
This commit is contained in:
parent
1dfac0074b
commit
d7cd9b8d4d
2
Makefile
2
Makefile
@ -13,7 +13,7 @@ SYSCLK ?= 11056
|
|||||||
FOSC ?=11056000L
|
FOSC ?=11056000L
|
||||||
CFLAGS ?= -DWITH_ALT_LED9 -DWITHOUT_LEDTABLE_RELOC -DSHOW_TEMP_DATE_WEEKDAY
|
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))
|
LIBOBJ =$(patsubst %.c,%.rel, $(LIBSRC))
|
||||||
LIBNAME=mc8051fun.lib
|
LIBNAME=mc8051fun.lib
|
||||||
|
@ -3,4 +3,9 @@
|
|||||||
|
|
||||||
#include <8052.h>
|
#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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user