-
Notifications
You must be signed in to change notification settings - Fork 15
/
TeensyReadme.txt
45 lines (25 loc) · 948 Bytes
/
TeensyReadme.txt
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
43
44
Changes in Teensy libraries
===========================
Changes in Teensy HardwareSerial library to automatically enable/disable receiver
---------------------------------------------------------------------------------
// comment
in: ...\Arduino\hardware\teensy\avr\cores\teensy3\serial2.c
/*
#ifdef HAS_KINETISK_UART1_FIFO
#define C2_ENABLE UART_C2_TE | UART_C2_RE | UART_C2_RIE | UART_C2_ILIE
#else
#define C2_ENABLE UART_C2_TE | UART_C2_RE | UART_C2_RIE
#endif
#define C2_TX_ACTIVE C2_ENABLE | UART_C2_TIE
#define C2_TX_COMPLETING C2_ENABLE | UART_C2_TCIE
#define C2_TX_INACTIVE C2_ENABLE
*/
// new code:
#ifdef HAS_KINETISK_UART1_FIFO
#define C2_RXENABLE UART_C2_RE | UART_C2_RIE | UART_C2_ILIE
#else
#define C2_RXENABLE UART_C2_RE | UART_C2_RIE
#endif
#define C2_TX_ACTIVE UART_C2_TE | UART_C2_TIE
#define C2_TX_COMPLETING UART_C2_TE | UART_C2_TCIE
#define C2_TX_INACTIVE C2_RXENABLE