|
STC15W408AS library 0.13.0
|
Macros | |
| #define | uart1_init(uart_baudrate) |
| Initiazlize UART1. | |
Functions | |
| int | putchar (int ch) |
| Send character to UART1. | |
| int | getchar (void) |
| Receive character from UART1. | |
Functions and data structures related to exchange data thru UART1
| #define uart1_init | ( | uart_baudrate | ) |
Initiazlize UART1.
Initialize uart using Timer2. Set timer according to baudrate
| uart_baudrate | uint32_t uart baudrate, like 9600 and etc |
| int getchar | ( | void | ) |
Receive character from UART1.
This method need for scanf
| int putchar | ( | int | ch | ) |
Send character to UART1.
This method need for printf
| ch | character to send |