1
0
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:
Hauke Petersen 2016-02-09 21:48:31 +01:00
commit 86abeba2c5
16 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,6 @@
# define the module that is build
MODULE = kinetis_common
DIRS += periph
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,3 @@
MODULE = periph
include $(RIOTBASE)/Makefile.base

View File

@ -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;
}