STM8: hardware init before OS start

we should init GPIO before tick timer is enabled