2019-04-18 02:11 PM
Hi everybody.
I'm met several scenarios in which the use of HAL_PPP_MspInit
would be too constraining.
A typical example is when I'm making a reusable library that needs
some peripheral. If I initialize the low level resources for the peripherals
used by the library in HAL_PPP_MspInit functions, then the application code
won't be able to use them anymore.
I've always initialized the low level resource before calling HAL_PP_Init and
it has always worked. But I would like to have your confirm that I'm doing is legitimated.
Solved! Go to Solution.
2019-04-18 03:31 PM
Yes is it reasonable and legitimate to do clock and pin initialization elsewhere prior to usage.
2019-04-18 03:31 PM
Yes is it reasonable and legitimate to do clock and pin initialization elsewhere prior to usage.
2019-04-19 01:15 PM
Thank you very much for the answer!