Routine and procedures for STM8 MCUs.