A V
/
pokus_s_UART
UARTs.h
- Committer:
- valesek
- Date:
- 2009-11-27
- Revision:
- 0:49f07865b3e4
File content as of revision 0:49f07865b3e4:
#define UART0 (UI_8) 0 #define UART1 (UI_8) 1 #define UART2 (UI_8) 2 #define UART3 (UI_8) 3 #define DATABITS5 (UI_8) 5 #define DATABITS6 (UI_8) 6 #define DATABITS7 (UI_8) 7 #define DATABITS8 (UI_8) 8 #define STOPBITS1 (UI_8) 1 #define STOPBITS2 (UI_8) 2 #define STOPBITS1ANDHALF (UI_8) 2 #define PARITYNONE (UI_8) 0 #define PARITYODD (UI_8) 1 #define PARITYEVEN (UI_8) 3 #define PARITYFORCED1 (UI_8) 5 #define PARITYFORCED0 (UI_8) 7 #define BREAKDISABLE (UI_8) 0 #define BREAKENABLE (UI_8) 1 #define DIVLATCHACCESSBITDISABLE (UI_8) 0 #define DIVLATCHACCESSBITENABLE (UI_8) 1 #define MASK_DIVISOR_LATCH_ACCESS_BIT (UI_8) 128 extern void init_UARTs( UI_8 number_of_UART /* number of interface 0=UART0, 1=UART1, 2=UART2, 3=UART3 */ ,UI_8 data_bits_count /* count of data bits 5,6,7,8 */ ,UI_8 stop_bits_count /* count of stop bits 1=1, 2=2 (if data_bits==5 then stopbits=1and1/2) */ ,UI_8 type_of_parity /* type of parity 0=fixed "0", 1=fixed "1", 2=odd , 3=even, 4=none (without parity bit) */ ,UI_8 break_control /* 0=disable 1=enable */ );