mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #4767 from haukepetersen/opt_kinetis_periphdir
cpu/kinetis_common: moved drivers to periph subdir
This commit is contained in:
commit
86abeba2c5
@ -1,4 +1,6 @@
|
||||
# define the module that is build
|
||||
MODULE = kinetis_common
|
||||
|
||||
DIRS += periph
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
3
cpu/kinetis_common/periph/Makefile
Normal file
3
cpu/kinetis_common/periph/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE = periph
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -326,12 +326,12 @@ void gpio_irq_enable(gpio_t dev)
|
||||
mutex_lock(&int_config_lock);
|
||||
/* Search for the given pin in the port's interrupt configuration */
|
||||
LL_SEARCH_SCALAR(gpio_interrupts[_port_num(dev)], entry, pin, pin_number);
|
||||
uint32_t irqc = entry->irqc;
|
||||
mutex_unlock(&int_config_lock);
|
||||
if (entry == NULL) {
|
||||
/* Pin has not been configured for interrupts */
|
||||
return;
|
||||
}
|
||||
uint32_t irqc = entry->irqc;
|
||||
port->PCR[pin_number] &= ~(PORT_PCR_IRQC_MASK);
|
||||
port->PCR[pin_number] |= irqc;
|
||||
}
|
Loading…
Reference in New Issue
Block a user