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.

59 lines
1.8 KiB

  1. /* Copyright 2021 Colin Lam (Ploopy Corporation)
  2. * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  3. * Copyright 2019 Sunjun Kim
  4. * Copyright 2019 Hiroyuki Okada
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #pragma once
  20. #include "config_common.h"
  21. /* USB Device descriptor parameter */
  22. #define VENDOR_ID 0x5043
  23. #define PRODUCT_ID 0x1EAB
  24. #define DEVICE_VER 0x0001
  25. #define PRODUCT Trackball Mini
  26. /* key matrix size */
  27. #define MATRIX_ROWS 1
  28. #define MATRIX_COLS 5
  29. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  30. #define DEBOUNCE 5
  31. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  32. //#define MATRIX_HAS_GHOST
  33. /* disable action features */
  34. //#define NO_ACTION_LAYER
  35. //#define NO_ACTION_TAPPING
  36. //#define NO_ACTION_ONESHOT
  37. #define USB_MAX_POWER_CONSUMPTION 100
  38. /* Bootmagic Lite key configuration */
  39. #define BOOTMAGIC_LITE_ROW 0
  40. #define BOOTMAGIC_LITE_COLUMN 3
  41. // If board has a debug LED, you can enable it by defining this
  42. // #define DEBUG_LED_PIN F7
  43. #define ADNS5050_SCLK_PIN B7
  44. #define ADNS5050_SDIO_PIN C6
  45. #define ADNS5050_CS_PIN B4
  46. #define POINTING_DEVICE_ROTATION_270