I use the STM32G0 Timer2 to generate phase controlled signals. For negative phases the output needs to be toggled; After reset the state is always correct, but during runtime the OC polarity is not set correctly.Here is my function. Can someone told ...