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.

74 lines
2.4 KiB

Make quantum/split_common/serial.[ch] configurable (#4419) * add temporary compile test shell script * add 'CONFIG_H += serial_backward_compatibility.h' into common_features.mk:SPLIT_KEYBOARD block * add quantum/split_common/serial_backward_compatibility.h SERIAL_PIN_PORT and other PIN define move to serial_backward_compatibility.h SERIAL_BACKLIT_START move to split_util.h * quantum/split_common/serial.c change to helix-serial.c style serial configuration * add temporary file quantum/split_common/split-keyboards-list.txt * add '#define SOFT_SERIAL_PIN D0' to keyboards/6lit/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/divergetm2/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/ergotravel/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/foobar/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/handwired/dactyl_manuform/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/handwired/qc60/config.h * add '//#define SOFT_SERIAL_PIN D0' to keyboards/handwired/xealous/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/iris/rev*/config.h * add '//#define SOFT_SERIAL_PIN D0' to keyboards/lets_split_eh/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/levinson/rev*/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/miniaxe/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/nyquist/rev?/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/quefrency/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/qwertyydox/config.h,keyboards/qwertyydox/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/redox/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/rorschach/rev1/config.h * remove '#define SOFT_SERIAL_PIN D0' from quantum/split_common/serial_backward_compatibility.h * remove temporary file quantum/split_common/split-keyboards-list.txt * remove temporary compile test shell script * Revert "remove temporary compile test shell script" This reverts commit 15b0021b4092127b8d8a21f572642ad3702b46d4. * update quantum/split_common/compile_split_test.sh for new keyboard test * add '#define SOFT_SERIAL_PIN D0' to keyboards/diverge3/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/40percentclub/25/config.h * remove temporary compile test shell script * update docs/config_options.md, quantum/template/avr/config.h * fix quantum/template/avr/config.h * fix typo docs/config_options.md
5 years ago
  1. /* Copyright 2018 Christon DeWan (xton)
  2. * Copyright 2017 IslandMan93
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x1256
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER UniKeyboard
  24. #define PRODUCT diverge tm2
  25. #define DESCRIPTION Split 46 key keyboard
  26. /* key matrix size */
  27. #define MATRIX_ROWS 8
  28. #define MATRIX_COLS 6
  29. /*
  30. * Keyboard Matrix Assignments
  31. *
  32. * Change this to how you wired your keyboard
  33. * COLS: AVR pins used for columns, left to right
  34. * ROWS: AVR pins used for rows, top to bottom
  35. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  36. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  37. *
  38. */
  39. #define MATRIX_ROW_PINS { D7, E6, B4, B5 }
  40. #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 }
  41. #define UNUSED_PINS
  42. /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
  43. #define DIODE_DIRECTION ROW2COL
  44. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  45. #define DEBOUNCING_DELAY 5
  46. /* number of backlight levels */
  47. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  48. #define LOCKING_SUPPORT_ENABLE
  49. /* Locking resynchronize hack */
  50. #define LOCKING_RESYNC_ENABLE
  51. /* serial.c configuration for split keyboard */
  52. #define SOFT_SERIAL_PIN D0
  53. /*
  54. * Magic Key Options
  55. *
  56. * Magic keys are hotkey commands that allow control over firmware functions of
  57. * the keyboard. They are best used in combination with the HID Listen program,
  58. * found here: https://www.pjrc.com/teensy/hid_listen.html
  59. *
  60. * The options below allow the magic key functionality to be changed. This is
  61. * useful if your keyboard/keypad is missing keys and you want magic key support.
  62. *
  63. */