2020-08-18 10:33 AM
I have an interrupt which I'm trying to streamline (for an STM32F031K6). I am using some commands like
GPIOA->BSRR |= (1<<4);
and i was surprised to see how much there is in this command in the disassembly. Is there any faster way of implementing this?
Solved! Go to Solution.
2020-08-18 11:59 AM
GPIOA->BSRR = (1<<4); // Singular write, as designed, not RMW
2020-08-18 11:59 AM
GPIOA->BSRR = (1<<4); // Singular write, as designed, not RMW
2020-08-18 01:44 PM
There is never a need to read the BSRR register. It always reads as zero.
The current output state is given in the ODR register.
2020-08-19 02:07 AM
If you want to go fats, make sure GPIOA->BSRR is read from RAM, not Flash. Wait state to read that data may apply.
2020-08-19 02:31 AM
interesting, how do i do that?