LPC_MRT->Channel[0].STAT |= 1; led_toggle(); |
uint32_t temp = LPC_MRT->IRQ_FLAG; //read flags LPC_MRT->IRQ_FLAG = temp & 15; //write ones to ones led_toggle(); //blink |
uint32_t temp = LPC_MRT->IRQ_FLAG; // after single stepping through this, temp equals 0, but peripheral view shows 1 in register, how come? LPC_MRT->IRQ_FLAG = temp & 15; //and I'm landing in defaultHandler, so sth went wrong, gotta check what fault is this led_toggle(); //never gets here |
uint32_t temp = LPC_MRT->IRQ_FLAG; // temp still zero led_toggle(); //voila, it blinks! |