Hello,
The GPIO supports the following 2 output modes:
1) Push-pull
2) Open drain
"XMC_GPIO_MODE_OUTPUT_ALT3" is an atomic representation of the alternate function line and on its own, is not enough to configure the GPIO.
To select output + alternate function (similar to <1> above), you need:
I think typically for PWM applications, the push-pull option is used.
Regards,
Min Wei
The GPIO supports the following 2 output modes:
1) Push-pull
Code:
.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3,
Code:
.mode = XMC_GPIO_MODE_OUTPUT_OPEN_DRAIN_ALT3
To select output + alternate function (similar to <1> above), you need:
Code:
.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL | XMC_GPIO_MODE_OUTPUT_ALT3
Regards,
Min Wei