Skip to content
Snippets Groups Projects
Commit d6a3d460 authored by Peter Kietzmann's avatar Peter Kietzmann Committed by GitHub
Browse files

Merge pull request #6717 from dkm/pr/gpio_fix

cpu/lm4f120: fix gpio isr
parents 33991832 c3e46831
No related branches found
No related tags found
No related merge requests found
......@@ -122,16 +122,18 @@ static void _isr_gpio(uint32_t port_num){
uint32_t isr = ROM_GPIOPinIntStatus(port_addr, true);
uint8_t i;
ROM_GPIOPinIntClear(port_addr, isr);
for (i=0; i<8; i++, isr>>=1) {
if ((isr & 0x1) == 0){
continue;
}
ROM_GPIOPinIntClear(port_addr, 1 << i);
if (gpio_config[port_num][i].cb){
gpio_config[port_num][i].cb(gpio_config[port_num][i].arg);
}
}
cortexm_isr_end();
}
void isr_gpio_porta(void){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment