Question
On code generated for STSPIN32f0A, why is PA12 set to an output?
Hi,
I don't understand the code below -- why is PA12 set to an output?
I've included an image from the documentation that shows that PA12 receives the output from the comparator. Isn't it problematic if the comparator is driving it at the same time the pin is set low?
#define _3FG_HIZ_Pin LL_GPIO_PIN_12
#define _3FG_HIZ_GPIO_Port GPIOA
LL_GPIO_ResetOutputPin(_3FG_HIZ_GPIO_Port, _3FG_HIZ_Pin);
GPIO_InitStruct.Pin = _3FG_HIZ_Pin;
GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
GPIO_InitStruct.Pull = LL_GPIO_PULL_DOWN;
LL_GPIO_Init(_3FG_HIZ_GPIO_Port, &GPIO_InitStruct);
Thanks!
-Dan