Power Negotiator code on Stm8s