You use the same global variable ioport_level_t level = IOPORT_LEVEL_HIGH; for LED pin level in both the call backs, cb_gpt_over() and gb_interrupt_DMA(), try using a unique variable name for the GPIO pin level in each of these callbacks.
↧