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.

73 lines
3.2 KiB

Keyboard: xealous (#3731) * Keyboard: HandWired/XeaL60 * Updated rules.mk * Mapping for layout was flipped * Figured out how to re-map bad pins. * Updated Keymap * Enabled audio, Forced NKRO * Added QMK_KEYS_PER_SCAN * Removed more unnecessary files, since split_keyboards are in main QMK branch already. * Simplified rules.mk in rev1 * Removed i2c from matrix.c * Re-formatted to 4 spaces per tab, * Changed note for NUMPAD * Added I2C support back! * Fixed keyboard mappings. Both sides work * Moved i2c configuration from keymaps/default/config.h to config.h * Changed SCL_CLOCK to 400000L * Added DEBUG_MATRIX_SCAN_RATE for future optimization efforts * Removed row2col code to clean up matrix.c * Scan rate from 2100 -> 4200 by using Nop instead of waiting 30us between columns. * Further optimized column reading via optimized_col_reader. * Immediate key-recognition * Switched back to own implementation of SPLIT_KEYBOARD. Will optimize so that slave interrupts master. * Moved scanrate debug messages to another file. * Made matrix_scanrate.c compile if CONSOLE_ENABLE is off. Updated to latest i2c.c * Latest i2c uses a few bytes for lighting information * Optimizations in i2c.h to determine buffer size. * Disabled a whole bunch of features. TODO: Test that keyboard still works fine. * Minimum #define NO_ACTION's with still working keyboard * Fixed matrix not working due to offsets not being respected * Added numlock button for keymap. * Use I2C_KEYMAP_START offset * Removed serial, Backlight and RGB support * Removed need for split_flags. * Added audio on and off for numlock. * Renamed from xeal60 to xealous, simplified build system. * Used more shared split_common code. * Updated audio code. * moved tone_qwerty and tone_numpad to config.h. Removed keymaps/default/config.h * Added more shortcut keys in _FN layer. Increased debounce to 6ms due to fencepost error. * DF used with incorrect argument. Custom_keycodes no longer required. * Fixed bug in update_debounce_counters which was resulting in no debouncing! * Removed unnecessary #include
5 years ago
  1. SRC += matrix_scanrate.c matrix.c
  2. # MCU name
  3. MCU = atmega32u4
  4. # Processor frequency.
  5. # This will define a symbol, F_CPU, in all source code files equal to the
  6. # processor frequency in Hz. You can then use this symbol in your source code to
  7. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  8. # automatically to create a 32-bit value in your source code.
  9. #
  10. # This will be an integer division of F_USB below, as it is sourced by
  11. # F_USB after it has run through any CPU prescalers. Note that this value
  12. # does not *change* the processor frequency - it should merely be updated to
  13. # reflect the processor speed set externally so that the code can use accurate
  14. # software delays.
  15. F_CPU = 16000000
  16. #
  17. # LUFA specific
  18. #
  19. # Target architecture (see library "Board Types" documentation).
  20. ARCH = AVR8
  21. # Input clock frequency.
  22. # This will define a symbol, F_USB, in all source code files equal to the
  23. # input clock frequency (before any prescaling is performed) in Hz. This value may
  24. # differ from F_CPU if prescaling is used on the latter, and is required as the
  25. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  26. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  27. # at the end, this will be done automatically to create a 32-bit value in your
  28. # source code.
  29. #
  30. # If no clock division is performed on the input clock inside the AVR (via the
  31. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  32. F_USB = $(F_CPU)
  33. # Bootloader
  34. # This definition is optional, and if your keyboard supports multiple bootloaders of
  35. # different sizes, comment this out, and the correct address will be loaded
  36. # automatically (+60). See bootloader.mk for all options.
  37. BOOTLOADER = caterina
  38. # Interrupt driven control endpoint task(+60)
  39. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  40. # Build Options
  41. # change to "no" to disable the options, or define them in the Makefile in
  42. # the appropriate keymap folder that will get included automatically
  43. #
  44. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  45. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  46. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  47. CONSOLE_ENABLE = yes # Console for debug(+400)
  48. COMMAND_ENABLE = yes # Commands for debug and configuration
  49. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  50. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  51. MIDI_ENABLE = no # MIDI controls
  52. AUDIO_ENABLE = yes # Audio output on port C6
  53. UNICODE_ENABLE = no # Unicode
  54. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  55. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
  56. SPLIT_KEYBOARD = yes # Use shared split_common code
  57. SUBPROJECT_rev1 = yes
  58. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  59. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  60. CUSTOM_MATRIX = yes
  61. LAYOUTS = split60
  62. DEFAULT_FOLDER = handwired/xealous/rev1