Project

General

Profile

Revision 252

made some more changes to uart

View differences:

uart.h
35 35
} uart_config;
36 36

  
37 37
int uart_get_config(int base_addr, uart_config *config);
38
void uart_parse_config(uart_config *config);
39 38
void uart_print_config(uart_config config);
40 39

  
41
int uart_enable_divisor_latch (int base_addr);
42
int uart_disable_divisor_latch(int base_addr);
43

  
44
int uart_write_config          (int base_addr, uint8_t     config       );
45 40
int uart_set_bits_per_character(int base_addr, uint8_t     bits_per_char);
46 41
int uart_set_stop_bits         (int base_addr, uint8_t     stop         );
47 42
int uart_set_parity            (int base_addr, uart_parity par          );
48 43
int uart_set_bit_rate          (int base_addr, float       bit_rate     );
49 44

  
45
int uart_enable_int_rx (int base_addr);
46
int uart_disable_int_rx(int base_addr);
47
int uart_enable_int_tx (int base_addr);
48
int uart_disable_int_tx(int base_addr);
49

  
50 50
int uart_get_char_poll   (int base_addr, uint8_t *p);
51 51
int uart_send_char_poll  (int base_addr, uint8_t  c);
52
int uart_send_memory_poll(int base_addr, void *str, size_t n);
53 52

  
54 53
#endif //UART_H_INCLUDED

Also available in: Unified diff