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.

20 lines
433 B

  1. #include <ch.h>
  2. #include <hal.h>
  3. #include "util.h"
  4. #include "quantum.h"
  5. #ifdef BOARD_STM32_F103_STM32DUINO
  6. #define LED_ON() do { palClearPad(GPIOC, 13) ;} while (0)
  7. #define LED_OFF() do { palSetPad(GPIOC, 13); } while (0)
  8. #define LED_TGL() do { palTogglePad(GPIOC, 13); } while (0)
  9. #else
  10. #define LED_ON()
  11. #define LED_OFF()
  12. #define LED_TGL()
  13. #endif
  14. void matrix_init_kb(void){
  15. LED_ON();
  16. wait_ms(500);
  17. LED_OFF();
  18. }