cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO HAL question

Cl.1
Associate II

I'm going to write a new code to replace HAL_GPIO_ReadPin(), HAL_GPIO_WritePin() and HAL_GPIO_TogglePin() using direct low level memory reads, writess, and logical operation on the STM32f4.

I think about a lazy way can i use the debugging to track the HAL_GPIO and get the direct low level memory code?

3 REPLIES 3

Not sure what the question is here.

Perhaps look at the listing file, and a book on assembler and processor architecture.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
berendi
Principal

I would not recommend using HAL as an example on how to toggle a pin. Maybe as an example on how not to do it. Typical examples of errors made by people who don't have the slightest clue how embedded systems, or digital computers in general work.

Read the GPIO chapter of the reference manual instead.

Nikita91
Lead II