boards: Remove the pin sense setting
This is redundant (and therefore slightly misleading) we do not "sense" the pins from the bootloader. We simply poll their status.wasp-os-next
parent
cfe6b69534
commit
fb03ef1dda
|
@ -43,7 +43,7 @@
|
||||||
//------------- IMPLEMENTATION -------------//
|
//------------- IMPLEMENTATION -------------//
|
||||||
void button_init(uint32_t pin)
|
void button_init(uint32_t pin)
|
||||||
{
|
{
|
||||||
nrf_gpio_cfg_sense_input(pin, BUTTON_PULL, NRF_GPIO_PIN_SENSE_LOW);
|
nrf_gpio_cfg_sense_input(pin, BUTTON_PULL, NRF_GPIO_PIN_NOSENSE);
|
||||||
#ifdef BUTTON_ENABLE
|
#ifdef BUTTON_ENABLE
|
||||||
/*
|
/*
|
||||||
* BUTTON_ENABLE is used when a switch is connected to another GPIO pin
|
* BUTTON_ENABLE is used when a switch is connected to another GPIO pin
|
||||||
|
|
Loading…
Reference in New Issue