Electronics > Microcontrollers

Need help with ST 32F4 SPI code (ex HAL)

<< < (3/3)

peter-h:
Yes, but the "reality of life" is that almost nobody has the time to read that much stuff. The 300 page chip manual has to be read whole if you are doing a PCB, however. I found all kinds of small but crucial details in there...

What STM should have done is provided a much more granular code generator. It is crazy to have so many lines of code just to write a byte to SPI. They get away with this because at 168MHz the bottlenecks are generally elsewhere, and the tiny % of users who need max speed do their own code.

I agree one should validate input values (my mistake to quote the wrong bit of code above) but some of the stuff in that code looks to me like pointless checking of something which can't happen. But then I admit I don't understand what they are doing a lot of the time.

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod