1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/lpc2387/periph
Benjamin Valentin 6233175f16 cpu/lpc2387: gpio: Fix interrupts on PORT2
The calculation of `_state_index` is broken for `port = 2`

    _gpio_isr_map[n + (port<<1)];

Will not yield the right result. As a consequence, IRQs on Port 2
are not working.
The right thing here would be

    _gpio_isr_map[n + (port ? 32 : 0)];

But we might just re-using the `_isr_map_entry()` function.
Also only iterate as many times as there are set interrupt bits.
2020-04-12 21:31:42 +02:00
..
adc.c cpu/lpc2387: implement periph/adc 2020-02-10 13:25:26 +01:00
dac.c cpu/lpc2387: implement periph/dac 2019-11-26 01:49:45 +01:00
gpio.c cpu/lpc2387: gpio: Fix interrupts on PORT2 2020-04-12 21:31:42 +02:00
i2c.c cpu/lpc2387: implement periph/i2c 2020-02-26 23:41:38 +01:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pm.c cpu/lpc2387: implement periph/pm 2019-11-22 09:11:39 +01:00
pwm.c cpu/lpc2387: remove useless periph file guard 2018-04-16 10:11:47 +02:00
rtc.c cpu/lpc2387: rtc: only initialize RTC after cold boot or external reset 2020-02-10 23:04:47 +01:00
spi.c cpu/lpc2387: make periph/spi configurable 2020-01-31 12:01:09 +01:00
timer.c cpu/lpc2387: fix check for max number of timers 2020-04-05 01:56:55 +02:00
uart.c boards/msba2: configure remaining UARTs 2019-11-07 21:55:25 +01:00