cancel
Showing results for 
Search instead for 
Did you mean: 

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

Posted on July 25, 2012 at 16:23

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

0 REPLIES 0