]> git.donarmstrong.com Git - kiibohd-controller.git/blob - Scan/UARTConnect/capabilities.kll
Adding basic remote capabilities + UART Rx DMA buffers
[kiibohd-controller.git] / Scan / UARTConnect / capabilities.kll
1 Name = UARTConnectCapabilities;
2 Version = 0.1;
3 Author = "HaaTa (Jacob Alexander) 2015";
4 KLL = 0.3a;
5
6 # Modified Date
7 Date = 2015-03-15;
8
9 # UART Buffer Size
10 # Number of bytes to reserve for each side of UARTConnect
11 # For true NKRO support must be at least: <# of Keys> x 3 + 5
12 UARTConnectBufSize => UARTConnectBufSize_define;
13 UARTConnectBufSize = 128; # MDErgo1 requires at least a 119 byte buffer
14
15 # UART Speed
16 # *NOTE* This must be changed on every device in the chain or else UARTConnect will not work
17 # The faster the speed, the lower the latency, but higher chance for an error
18 UARTConnectBaud => UARTConnectBaud_define;
19 UARTConnectBaudFine => UARTConnectBaudFine_define;
20 # Generally, leave BaudFine at zero unless trying to tune the link to an external UART
21 # You'll want to look at the specific chip datasheet for the exact equation
22 #
23 # Example of 115200 Baud using a 48 MHz clock (mk20dx128vlf5)
24 # 48 MHz / ( 16 * Baud ) = BDH/L
25 # Baud: 115200 -> 48 MHz / ( 16 * 115200 ) = 26.0416667
26 # Thus baud setting = 26
27 # NOTE: If finer baud adjustment is needed see UARTx_C4 -> BRFA in the datasheet
28 # Baud fine setting = 0x02
29 UARTConnectBaud = 1; # 4.5 Mbpsa  @ 72 MHz
30 UARTConnectBaudFine = 0x0;
31
32 #UARTConnectBaud = 39; # 115385 bps @ 72 MHz (close to 115200)
33
34 # Cable Check Command Length
35 # This defines the length of the cable command
36 # 0xD2 11010010 is used for each check byte
37 #
38 # For example:
39 # Length: 4
40 # Args: 0xD2 0xD2 0xD2 0xD2
41 UARTConnectCableCheckLength => UARTConnectCableCheckLength_define;
42 UARTConnectCableCheckLength = 2;
43
44 # Connect Enable
45 # Define used to indicate to non-connect modules that support should be compiled in
46 ConnectEnabled => ConnectEnabled_define;
47 ConnectEnabled = 1;
48