upload
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.

README.md 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. TMK Keyboard Firmware Core Library
  2. ==================================
  3. This is a keyboard firmware library with some useful features for Atmel AVR and Cortex-M.
  4. Source code is available here: <https://github.com/tmk/tmk_keyboard/tree/core>
  5. Features
  6. --------
  7. These features can be used in your keyboard.
  8. * Multi-layer Keymap - Multiple keyboard layouts with layer switching
  9. * Mouse key - Mouse control with keyboard
  10. * System Control Key - Power Down, Sleep, Wake Up and USB Remote Wake up
  11. * Media Control Key - Volume Down/Up, Mute, Next/Prev track, Play, Stop and etc
  12. * USB NKRO - 120 keys(+ 8 modifiers) simultaneously
  13. * PS/2 mouse support - PS/2 mouse(TrackPoint) as composite device
  14. * Keyboard protocols - PS/2, ADB, M0110, Sun and other old keyboard protocols
  15. * User Function - Customizable function of key with writing code
  16. * Macro - Very primitive at this time
  17. * Keyboard Tricks - Oneshot modifier and modifier with tapping feature
  18. * Debug Console - Messages for debug and interaction with firmware
  19. * Virtual DIP Switch - Configurations stored EEPROM(Boot Magic)
  20. * Locking CapsLock - Mechanical switch support for CapsLock
  21. * Breathing Sleep LED - Sleep indicator with charm during USB suspend
  22. * Backlight - Control backlight levels
  23. Updates
  24. -------
  25. 2015/04/22 separated with TMK Keyboard Firmware Collection
  26. TMK Keyboard Firmware Collection
  27. --------------------------------
  28. Complete firmwares for various keyboards and protocol converters.
  29. <https://github.com/tmk/tmk_keyboard>
  30. License
  31. -------
  32. **GPLv2** or later. Some protocol files are under **Modified BSD License**.
  33. LUFA, PJRC and V-USB stack have their own license respectively.
  34. Build Firmware and Program Controller
  35. -------------------------------------
  36. See [doc/build.md](doc/build.md).
  37. Start Your Own Project
  38. -----------------------
  39. **TBD**
  40. ### Config.h Options
  41. #### 1. USB vendor/product ID and device description
  42. #define VENDOR_ID 0xFEED
  43. #define PRODUCT_ID 0xBEEF
  44. #define MANUFACTURER t.m.k.
  45. #define PRODUCT Macway mod
  46. #define DESCRIPTION t.m.k. keyboard firmware for Macway mod
  47. #### 2. Keyboard matrix configuration
  48. #define MATRIX_ROWS 8
  49. #define MATRIX_COLS 8
  50. #define MATRIX_HAS_GHOST
  51. Architecture
  52. ------------
  53. Architecture Diagram
  54. +---------------+---------------+-------------+
  55. | Host | Keyboard | Matrix, LED |
  56. ___________ |-----------+-+ +-------------+ | +-----------|
  57. / /| Keys/Mouse | Protocol |d| | Action | | | Protocol |
  58. /__________/ |<-----------| LUFA |r| | Layer, Tap | | | Matrix |
  59. |.--------.| | LED | V-USB |i| |-------------| | | PS/2,IBM | __________________
  60. || || |----------->| PJRC |v| | Keymap | | | ADB,M0110| Keys / /_/_/_/_/_/_/_/ /|
  61. || Host || | Console | iWRAP(BT)|e| | Mousekey | | | SUN/NEWS |<----------/ /_/_/_/_/_/_/_/ / /
  62. ||________||/.<-----------| UART |r| | Report | | | X68K/PC98| Control / /_/_/_/_/_/_/_/ / /
  63. `_========_'/| |---------------------------------------------|-------->/___ /_______/ ___/ /
  64. |_o______o_|/ | Sendchar, Print, Debug, Command, ... | |_________________|/
  65. +---------------------------------------------+ Keyboard
  66. Debugging
  67. --------
  68. Use PJRC's `hid_listen` to see debug messages. You can use the tool for debug even if firmware use LUFA stack.
  69. You can use xprintf() to display debug info on `hid_listen`, see `common/xprintf.h`.
  70. Files and Directories
  71. -------------------
  72. ### Top
  73. * common/ - common codes
  74. * protocol/ - keyboard protocol support
  75. * doc/ - documents
  76. * common.mk - Makefile for common
  77. * protocol.mk - Makefile for protocol
  78. * rules.mk - Makefile for build rules
  79. ### Common
  80. * host.h
  81. * host_driver.h
  82. * keyboard.h
  83. * command.h
  84. * keymap.h
  85. * action.h
  86. * keycode.h
  87. * matrix.h
  88. * led.h
  89. * mousekey.h
  90. * report.h
  91. * debug.h
  92. * print.h
  93. * bootloader.h
  94. * sendchar.h
  95. * timer.h
  96. * util.h
  97. ### Keyboard Protocols
  98. * lufa/ - LUFA USB stack
  99. * pjrc/ - PJRC USB stack
  100. * vusb/ - Objective Development V-USB
  101. * iwrap/ - Bluetooth HID for Bluegiga iWRAP
  102. * ps2.c - PS/2 protocol
  103. * adb.c - Apple Desktop Bus protocol
  104. * m0110.c - Macintosh 128K/512K/Plus keyboard protocol
  105. * news.c - Sony NEWS keyboard protocol
  106. * x68k.c - Sharp X68000 keyboard protocol
  107. * serial_soft.c - Asynchronous Serial protocol implemented by software
  108. Coding Style
  109. -------------
  110. - Doesn't use Tab to indent, use 4-spaces instead.