2018-07-04 11:38 AM
Hello, I have one question: Is it possible to deinit one pin instead of whole port? I have STM8S00F3 and ST Visual Develop.
2018-07-04 04:44 PM
'
Is it possible to deinit one pin instead of whole port?'the answer depends on your or your toolchain's definition of 'deinit'.
2018-07-05 01:34 AM
Yes. It is very simple by using HAL driver. See example how to do it. .../STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/GPIO/GPIO_Toggle/main.c I'll add. To deinitialize a single port pin, use the function with GPIO_Init(...) with mode GPIO_MODE_IN_FL_NO_IT. It is equivalent to deinit. I wish you success.