Why examples are not in the way CubeIDE (CubeMX) generate the code?
I like the way CubeIDE generate the code. Especially with "Generate peripheral initialization as a pair of '.c/.h' files per peripheral".
This is very helpful tools not only for start the project but also for checking particular functionality.
Why examples delivered by STM are not in exactly this shape?
It will be very comfortable to compare our code with STM's examples code.
It will be also welcome to see the examples code with "Generate peripheral initialization as a pair of '.c/.h' files per peripheral" option. The code is more clean.
Please consider use this option at least for Low Layer examples.