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.

101 lines
3.1 KiB

Mode80 support (#10945) * Add default mode eighty firmware * Add via keymap * Mode80 firmware upgrades - Removed SPI and PWM drivers from MCU configuration, HAL configuration and Chibi configuration as neither peripherals are being used - Included second backspace key (row 5, col 14) which should solve the non-appearance of the backspace key on the hotswap PCB * Add default mode eighty firmware * Add via keymap * Update keyboards/mode/eighty/config.h Remove comment lines from config.h Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/mode/eighty/config.h Remove comments from config.h Co-authored-by: Ryan <fauxpark@gmail.com> * Update eighty.c Add GPLv2 header * Update eighty.h Add GPLv2 license header * Update readme.md Update README * Update keyboards/mode/eighty/config.h Remove keyboard description Co-authored-by: Drashna Jaelre <drashna@live.com> * Delete config.h Delete config.h in keynap folder * Update keyboards/mode/eighty/rules.mk Remove feature disabling in rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Move rules.mk to VIA folder * Update keyboards/mode/eighty/keymaps/via/rules.mk Use LTO_ENABLE as short for LINK_TIME_OPTIMIZATION_ENABLE Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/mode/eighty/readme.md Puts a single image embedded in the readme, and links to the full gallery Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/mode/eighty/readme.md Use * for markdown list Co-authored-by: Ryan <fauxpark@gmail.com> * Apply suggestions from code review Correct comment characters Co-authored-by: Ryan <fauxpark@gmail.com> * Adjusted copyright name, USB descriptor and removed info.json * Separate Mode80 S and H firwares into subfolders * Added info.json files for QMK Configurator * Lowercase folder and filenames * Remove config definition macros in M80H * Remove config definition macros in M80S and root * Change definitions to lowercase parameters * Moce chconf and mcuconf chibiOS files to root folder * Move halconf to root folder, keymaps to subfolders * Update readme for building/flashing guide Co-authored-by: Ryan <fauxpark@gmail.com> * Add layers to VIA keymaps, remove CONSOLE_ENABLE * Push master changes to lib/ * Retrieve lufa and googletest submodules to previous heads at master * Disabled LTO in VIA keymaps * Fix layout declaration to lowercase in m80s default keymap * Added readme's for each M80S and M80H Co-authored-by: Jaicob <jaicob@icloud.com> Co-authored-by: Gondolindrim <alvaro.augusto.volpato@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
3 years ago
  1. /*
  2. Copyright 2020 Alvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include "config_common.h"
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0x00DE
  17. #define MANUFACTURER Mode
  18. #define PRODUCT Eighty
  19. /* key matrix size */
  20. #define MATRIX_ROWS 6
  21. #define MATRIX_COLS 16
  22. /*
  23. * Keyboard Matrix Assignments
  24. *
  25. * Change this to how you wired your keyboard
  26. * COLS: AVR pins used for columns, left to right
  27. * ROWS: AVR pins used for rows, top to bottom
  28. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  29. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  30. *
  31. */
  32. #define MATRIX_ROW_PINS { A10, A15, B3, B9, A3, A4 }
  33. #define MATRIX_COL_PINS { B8, B7, B6, B5, B4, A2, A1, A0, F1, F0, C15, C14, C13, A7, A6, A5 }
  34. #define UNUSED_PINS
  35. /* COL2ROW, ROW2COL*/
  36. #define DIODE_DIRECTION COL2ROW
  37. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  38. #define DEBOUNCE 5
  39. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  40. //#define MATRIX_HAS_GHOST
  41. /* number of backlight levels */
  42. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  43. #define LOCKING_SUPPORT_ENABLE
  44. /* Locking resynchronize hack */
  45. #define LOCKING_RESYNC_ENABLE
  46. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  47. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  48. */
  49. // #define GRAVE_ESC_CTRL_OVERRIDE
  50. /*
  51. * Force NKRO
  52. *
  53. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  54. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  55. * makefile for this to work.)
  56. *
  57. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  58. * until the next keyboard reset.
  59. *
  60. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  61. * fully operational during normal computer usage.
  62. *
  63. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  64. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  65. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  66. * power-up.
  67. *
  68. */
  69. //#define FORCE_NKRO
  70. /*
  71. * Feature disable options
  72. * These options are also useful to firmware size reduction.
  73. */
  74. /* disable debug print */
  75. //#define NO_DEBUG
  76. /* disable print */
  77. //#define NO_PRINT
  78. /* disable action features */
  79. //#define NO_ACTION_LAYER
  80. //#define NO_ACTION_TAPPING
  81. //#define NO_ACTION_ONESHOT
  82. //#define NO_ACTION_MACRO
  83. //#define NO_ACTION_FUNCTION