cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use GPIOx_BSRR register?

Bilge
Associate III

Hi,

I use stm32h743zi nucleo board and I try to GPIOx_BSRR register .This register has two 16 bit registers "BSRRL" and "BSRRH".As I understand BSRRL is used to set bit and then BSRRH is used to reset bit.

GPIOB->BSRRL =(1<<0); to set the zero pin ,but there is an error: #136: struct "<unnamed>" has no field "BSRRL"

15 REPLIES 15
Bilge
Associate III

Thank you for your reply @Imen DAHMEN​ STM32CubeH7 Firmware Package V1.4.0 / 05-April-2019

What has priority?
What if I set in one step GPIOB->BSRR =(1<<0) | (1<<16); ?

Thank you.

gbm
Lead III

This is clearly described in the Reference Manual, so please Read The Fine Docs.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

no it is not. I found only this but probably it is not answer for what I am asking for:

JR2963_0-1706704958828.png

 

gbm
Lead III

Well, that's exactly the answer you were looking for. Just read the last sentence.

It would be clearer if "in" was replaced by "via". (Just a hint to ST docs editors. )

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

OK if there would be via, then it is answer for me