STM8S Low Density: fix pull-up for PD5 or PA3 "Half-Duplex UART"
Closed this issue · 1 comments
TG9541 commented
There is a comment PD5 GPIO pull-up
and PA3 GPIO pull-up
but it takes a BSET PD_CR1,#5
or BSET PA_CR1,#3
to make it so.
When HALF_DUPLEX = 2
in globconf.inc
the init code shall check OPT2 for STM8S "Low Density Device UART remapping" and set PD_CR1 or PA_CR1 accordingly.
TG9541 commented
Tested with an STM9S903K3T6C and the STM8S001J3 binary