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