3586a3195a45f87601f6e1d335cb8c9fb84b1dc9
Stefan Schuermans implemented TX part of UART...

Stefan Schuermans authored 12 years ago

1) #ifndef UART_H
2) #define UART_H
3) 
4) /**
5)  * @brief configure baudrate scaler
6)  * @param[in] scale baudrate scaler (1 = 7.143 Mhz)
7)  */
8) void uart_cfg_scale(unsigned short scale);
9) 
10) /**
11)  * @brief configure number of data bits
12)  * @param[in] bits number of data bits
13)  */
14) void uart_cfg_bits(unsigned char bits);
15) 
16) /**
17)  * @brief configure number of stop bits
18)  * @param[in] stop number of stop bits
19)  */
20) void uart_cfg_stop(unsigned char stop);
21) 
Stefan Schuermans UART firmware for testing i...

Stefan Schuermans authored 12 years ago

22) /**
23)  * @brief check if transmitting a character is possible
24)  * @return if transmitting a character is possible
25)  */
26) int uart_can_tx(void);
27) 
Stefan Schuermans implemented TX part of UART...

Stefan Schuermans authored 12 years ago

28) /**
29)  * @brief transmit a character
30)  * @param[in] chr character to transmit
31)  */
32) void uart_tx(unsigned short chr);
33) 
Stefan Schuermans UART firmware for testing i...

Stefan Schuermans authored 12 years ago

34) /**
35)  * @brief check if receiving a character is possible
36)  * @return if receiving a character is possible
37)  */
38) int uart_can_rx(void);
39) 
Stefan Schuermans added FIFO to UART RX

Stefan Schuermans authored 12 years ago

40) /**
41)  * @brief receive a character
42)  * @return character received
43)  */
44) unsigned short uart_rx(void);
Stefan Schuermans implemented TX part of UART...

Stefan Schuermans authored 12 years ago

45) 
Stefan Schuermans add UART error check to FW

Stefan Schuermans authored 12 years ago

46) /**
47)  * @brief determine if character is an error character
48)  * @param[in] chr character to check
49)  * @return if error
50)  */
51) int uart_is_err(unsigned short chr);
52)