Setting GPIO bits nondestructively - HAL or LL? (Using an STM32F103CBT6 - Blue Pill board)
This is probably an old hat to most of you here but I'm facing this problem momentarily:
Using an STM32F103CBT6 (Blue Pill) where GPIOB Port is used already with the following
PB3 - SPI1_SCK
PB5 - SP1_MOSI
PB6 - Some Interface Function (OUTPUT)
PB7 - Some Interface Function (OUTPUT)
I want to use PB0, PB1, PB4, PB8, PB12,PB13,PB14,PB15 for a keyboard matrix scan and output
a running pattern to these pins. Writing the bits should be nondestructive what the remaining bits is concerned.
At the back of my mind I recall something like BSRR, but could someone help me to get on the right track?
I'm using HAL in this app (under STM32CubeIDE).
