config.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright 2019 John M Daly <jmdaly@gmail.com>
  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 0x0000
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER John M Daly
  24. #define PRODUCT CO60 rev6
  25. #define DESCRIPTION An open hardware sixty percent PCB
  26. /* Address for jumping to bootloader on STM32 chips. */
  27. /* It is chip dependent, the correct number can be looked up here:
  28. * http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
  29. */
  30. #define STM32_BOOTLOADER_ADDRESS 0x1FFFD800
  31. /* key matrix size */
  32. #define MATRIX_ROWS 5
  33. #define MATRIX_COLS 15
  34. /* ROWS: Top to bottom, COLS: Left to right
  35. */
  36. #define MATRIX_ROW_PINS { B0, B1, B2, A15, A10 }
  37. #define MATRIX_COL_PINS { A2, A3, A6, B14, B15, A8, A9, A7, B3, B4, C14, C15, C13, B5, B6 }
  38. /* COL2ROW, ROW2COL */
  39. #define DIODE_DIRECTION COL2ROW
  40. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  41. #define DEBOUNCE 5
  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. /* Backlight configuration
  47. * Backlight LEDs on B8
  48. */
  49. #define BACKLIGHT_PIN B8
  50. #define BACKLIGHT_BREATHING