STM8: port ADC1 driver into ATOMTHREAD