forked from Sepp62/JetiExSensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TeensyReadme.txt
61 lines (35 loc) · 1.43 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Changes in Teensy libraries
===========================
Activate 9 Bit UART support
---------------------------
...\Arduino\hardware\teensy\avr\cores\teensy3\HardwareSerial.h
// uncomment to enable 9 bit formats
#define SERIAL_9BIT_SUPPORT
Increase TX buffer to avoid "busy waiting" while sending JETI data blocks
--------------------------------------------------------------------------
...\Arduino\hardware\teensy\avr\cores\teensy3\serial2.c
#define SERIAL2_TX_BUFFER_SIZE 128 // number of outgoing bytes to buffer
Changes in Teensy HardwareSerial library in order to receive Jeti keys
You dont need it, as long as you do not interconnect RX2 and TX2
----------------------------------------------------------------------
// 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