Rev 2167 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2167 | Rev 2172 | ||
---|---|---|---|
1 | //############################################################################ |
1 | //############################################################################ |
2 | // Implement your own RC-decoding routines here |
2 | // Implement your own RC-decoding routines here |
3 | //############################################################################ |
3 | //############################################################################ |
- | 4 | ||
4 | 5 | #include "sbus.h" |
|
5 | 6 | ||
6 | //############################################################################ |
7 | //############################################################################ |
7 | // Initialize the UART here |
8 | // Initialize the UART here |
8 | //############################################################################ |
9 | //############################################################################ |
9 | void User_Receiver_Init(void) |
10 | void User_Receiver_Init(void) |
10 | { |
11 | { |
11 | // SpektrumUartInit(); // or use an existing routine like this |
12 | SbusUartInit(); |
12 | }; |
13 | }; |
13 | 14 | ||
14 | 15 | ||
15 | //############################################################################ |
16 | //############################################################################ |
16 | // Is called by the uart RX interrupt |
17 | // Is called by the uart RX interrupt |
17 | // UDR contains the received byte |
18 | // UDR contains the received byte |
18 | //############################################################################ |
19 | //############################################################################ |
19 | void User_RX_Parser(unsigned char udr) |
20 | void User_RX_Parser(unsigned char udr) |
20 | { |
21 | { |
21 | - | ||
- | 22 | SbusParser(udr); |
|
22 | }; |
23 | }; |
23 | 24 | ||
24 | 25 |