Skip to main content
bob239955_stm1_stmicro_com
Visitor II
July 25, 2012
Question

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

  • July 25, 2012
  • 0 replies
  • 728 views
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

    This topic has been closed for replies.