change mc13224v button-sensor to use gpio structs
This commit is contained in:
parent
2ff236c4be
commit
dbe6407a22
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ void kbi4_isr(void) {
|
|||
static int
|
||||
value(int type)
|
||||
{
|
||||
return bit_is_set(gpio_data_get((0x1ULL << 26)), 26) || !timer_expired(&debouncetimer);
|
||||
return GPIO->DATA.GPIO_26 || !timer_expired(&debouncetimer);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue