Manual PAL init?
Posted: Wed Apr 08, 2015 3:02 pm
Hi all,
During the start of my MCU I need to read a pin's value to determine whether I should enter a bootloader or not.
And the thing is that I want to check this during the __early_init() phase.
To do this I'd like to use the PAL part of the HAL (to keep it all HW independent), but it is not initialized yet.
Is it safe to do a manual palInit() and do the check before all clocks are configured and so on?
I cannot find what limits ChibiOS puts on this.
Thanks for any clarification!
Best Regards
Emil
During the start of my MCU I need to read a pin's value to determine whether I should enter a bootloader or not.
And the thing is that I want to check this during the __early_init() phase.
To do this I'd like to use the PAL part of the HAL (to keep it all HW independent), but it is not initialized yet.
Is it safe to do a manual palInit() and do the check before all clocks are configured and so on?
I cannot find what limits ChibiOS puts on this.
Thanks for any clarification!
Best Regards
Emil