STM8: use up Semaphore to save power