-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUSART_PRIVATE.h
More file actions
42 lines (31 loc) · 1.37 KB
/
USART_PRIVATE.h
File metadata and controls
42 lines (31 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/***************************************************************/
/***************************************************************/
/************ Author: A. S. Eldesouky ************/
/************ Layer: MCAL ************/
/************ SWC: USART ************/
/************ Date: 6-10-2020 ************/
/************ Version: 1.00 ************/
/***************************************************************/
/***************************************************************/
/*File Gard*/
#ifndef USART_PRIVATE_H_
#define USART_PRIVATE_H_
#define DISABLE 0
#define ENABLE 1
#define USART_X1 1
#define USART_X2 2
#define ASYNCHRONOUS 0
#define SYNCHRONOUS 1
#define EVEN_PARITY 0
#define ODD_PARITY 1
#define STOP_BIT_1 0
#define STOP_BIT_2 1
#define DATA_SIZE_5_BIT 0
#define DATA_SIZE_6_BIT 1
#define DATA_SIZE_7_BIT 2
#define DATA_SIZE_8_BIT 3
#define DATA_SIZE_9_BIT 4
#define XCK_RISING_TX_XCH_FALLING_RX 0
#define XCK_RISING_RX_XCH_FALLING_TX 1
#define UBRRL_MAX 256
#endif