I have been working on a project where I use timer controlled interrupts. One of the things necessary for that is to reset the respective bits in the GPT Status Register. Reading a value from that register via
or writing to it via
takes both about 170 ns. Why is this so slow and is there any way to improve this?
Code:
uint32_t value = GPT1_SR;
or writing to it via
Code:
GPT1_SR = 0x00000001;
takes both about 170 ns. Why is this so slow and is there any way to improve this?