AnsweredAssumed Answered

Fastest way to set/reset GPIO pin on STM32F4 (Solved)

Question asked by Synapsys on Jul 25, 2012
I'm relatively new to the STM32 world and would like to ask a question. Using C what is the fastest method to set/reset a GPIO pin state? Currently I'm using the "a->BSRRL = b" type of statement. This generates 4 assembly instructions. There must be a faster way?

Any help would be appreciated.

For anyone interested I solved this by changing the compile optimization to level 3. Now only one assembly instruction is generated.