sam3: mark closing #endif for MODULE_PERIPH_GPIO_IRQ
This commit is contained in:
parent
95819c660b
commit
98ddcdc783
@ -107,7 +107,7 @@ static void _ctx_clear(int port, int pin)
|
|||||||
_write_map(port, pin, CTX_NUMOF);
|
_write_map(port, pin, CTX_NUMOF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* MODULE_PERIPH_GPIO_IRQ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Extract the pin's port base address from the given pin identifier
|
* @brief Extract the pin's port base address from the given pin identifier
|
||||||
@ -165,7 +165,7 @@ int gpio_init(gpio_t pin, gpio_mode_t mode)
|
|||||||
port->PIO_IDR = (1 << pin_num);
|
port->PIO_IDR = (1 << pin_num);
|
||||||
#ifdef MODULE_PERIPH_GPIO_IRQ
|
#ifdef MODULE_PERIPH_GPIO_IRQ
|
||||||
_ctx_clear(port_num, pin_num);
|
_ctx_clear(port_num, pin_num);
|
||||||
#endif
|
#endif /* MODULE_PERIPH_GPIO_IRQ */
|
||||||
|
|
||||||
/* give the PIO module the power over the corresponding pin */
|
/* give the PIO module the power over the corresponding pin */
|
||||||
port->PIO_PER = (1 << pin_num);
|
port->PIO_PER = (1 << pin_num);
|
||||||
@ -341,4 +341,4 @@ void isr_piod(void)
|
|||||||
{
|
{
|
||||||
isr_handler(PIOD, PD);
|
isr_handler(PIOD, PD);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* MODULE_PERIPH_GPIO_IRQ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user