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.

37 lines
1.3 KiB

  1. /* Copyright 2021 QMK
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. #define MATRIX_COL_PINS \
  19. { B0 }
  20. #define MATRIX_ROW_PINS \
  21. { A7 }
  22. #define UNUSED_PINS
  23. #define BACKLIGHT_PIN A1 /* Green LED. */
  24. #define BACKLIGHT_PWM_DRIVER PWMD5 /* GD32 numbering scheme starts from 0, TIMER4 on GD32 boards is TIMER5 on STM32 boards. */
  25. #define BACKLIGHT_PWM_CHANNEL 2 /* GD32 numbering scheme starts from 0, Channel 1 on GD32 boards is Channel 2 on STM32 boards. */
  26. #define RGB_DI_PIN A2
  27. #define RGB_CI_PIN B13
  28. #define ADC_PIN A0
  29. #define I2C1_CLOCK_SPEED 1000000 /* GD32VF103 supports fast mode plus. */
  30. #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2