1
0
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:
Joakim Nohlgård 2018-03-01 16:01:24 +01:00 committed by GitHub
commit f89cf9ab41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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