The thing is, during clock setup the clock is not yet setup, so the HAL delay function would not work as expected. What I really wan't to do is:
Move clock initialization into HAL crate
Delay for a certain amount of instructions at that point (the for loop with nop doesn't really guarantee how many instructions are executed, since it depends on various things like debug vs. release)
You probably mean this
The thing is, during clock setup the clock is not yet setup, so the HAL delay function would not work as expected. What I really wan't to do is: