Kiibohd Controller
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

capabilities.kll 1.7KB

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