global: disable button init (pin used by RGB matrix)
This commit is contained in:
parent
d208297aa3
commit
4fba2fd7a4
2
global.c
2
global.c
|
@ -260,6 +260,7 @@ void board_setup(void)
|
||||||
led_off(); // switch off LED per default
|
led_off(); // switch off LED per default
|
||||||
#endif // LED_PIN
|
#endif // LED_PIN
|
||||||
|
|
||||||
|
/*
|
||||||
// setup button
|
// setup button
|
||||||
#if defined(BUTTON_PIN) && defined(BUTTON_PRESSED)
|
#if defined(BUTTON_PIN) && defined(BUTTON_PRESSED)
|
||||||
rcc_periph_clock_enable(GPIO_RCC(BUTTON_PIN)); // enable clock for button
|
rcc_periph_clock_enable(GPIO_RCC(BUTTON_PIN)); // enable clock for button
|
||||||
|
@ -274,6 +275,7 @@ void board_setup(void)
|
||||||
exti_enable_request(GPIO_EXTI(BUTTON_PIN)); // enable external interrupt
|
exti_enable_request(GPIO_EXTI(BUTTON_PIN)); // enable external interrupt
|
||||||
nvic_enable_irq(GPIO_NVIC_EXTI_IRQ(BUTTON_PIN)); // enable interrupt
|
nvic_enable_irq(GPIO_NVIC_EXTI_IRQ(BUTTON_PIN)); // enable interrupt
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
// reset user input buffer
|
// reset user input buffer
|
||||||
user_input_available = false;
|
user_input_available = false;
|
||||||
|
|
Loading…
Reference in New Issue