Rework complete dummy_hal to make it compile again.
Certainly produces various other crashes when running it.