2012-07-25 07:23 AM
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. Regards, Synapsys