Page 1 of 1

INTERRUPT(0)

Posted: Fri May 01, 2020 11:05 pm
by olzeke51
In considering some MultiTasking ideas, mainly Flash writing; you said to turn off interrupts.
Does INTERRUPT(0) turn off the SUB INTERRUPT(s) that I create?? .. and then back on with (1)??
Thanks
GaryZ

Re: INTERRUPT(0)

Posted: Sat May 02, 2020 2:18 am
by basicchip
The multitask timer should be switched off (I think there is an example of that in the original).

INTERRUPT(0) turns of all interrupts controlled by the I bit in the CPSR of the ARM, and the systick interrupt

So that would be a sledge hammer way to do it. I have no idea whether the ROM routine we call (written by NXP) uses interrupts, but I kind of doubt it