Username: wrote: ↑
Thu Mar 12, 2020 2:34 pm
Sorry, don't understand.
I am asking because I want to make additions to the code.
It's impossible to guess
for other statements concerning peripherals.
There should be some manual where those commands are summarized.
But where is that manual?
Ok, in short, if you want to learn about that stuff:
- read the datasheet of the microcontroller, how these peripherals work is documented there. After reading the datasheet, this code will probably start to make sense.
- how to know the exact code: once you understand the datasheet, you can have a look in the code of the frameworks, the naming usually matches the naming in the datasheet, and then you can start writing such code yourself
- if you want to start from zero, with the cubemx tool by stm, you can configure a microcontroller & its peripherals the way you want, and it'll generate code that sets everything up as you configured, and creates method to start/manage the peripherals. This code can be a good base to continue from.
And as someone who has done the above: it's very interesting, but be ready to spend a lot of time on it XD.