STC15W408AS library 0.12.0
Loading...
Searching...
No Matches
uart.h
Go to the documentation of this file.
1#pragma once
2
15#include <sys.h>
16#include <stdint.h>
18#include <uart1_shared.h>
19
30#define uart1_init(uart_baudrate) \
31do { \
32 uart1_mode1_timer2_1T_init(RxD_P30_TxD_P31); \
33 uart1_mode1_timer2_1T_start_ext(uart_baudrate); \
34} while(0)
35
46int putchar(int ch);
47
56int getchar(void);
int putchar(int ch)
Send character to UART1.
Definition uart.c:4
int getchar(void)
Receive character from UART1.
Definition uart.c:10