mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #8712 from gebart/pr/kinetis-gpio-warning
kinetis: Fix shiftTooManyBitsSigned warning in GPIO driver
This commit is contained in:
commit
f89cf9ab41
@ -290,8 +290,8 @@ static inline void irq_handler(PORT_Type *port, int port_num)
|
||||
uint32_t status = port->ISFR;
|
||||
|
||||
for (int i = 0; i < 32; i++) {
|
||||
if ((status & (1 << i)) && (port->PCR[i] & PORT_PCR_IRQC_MASK)) {
|
||||
port->ISFR = (1 << i);
|
||||
if ((status & (1u << i)) && (port->PCR[i] & PORT_PCR_IRQC_MASK)) {
|
||||
port->ISFR = (1u << i);
|
||||
int ctx = get_ctx(port_num, i);
|
||||
isr_ctx[ctx].cb(isr_ctx[ctx].arg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user