TG9541 / stm8ef

STM8 eForth - a user friendly Forth for simple µCs with docs
https://github.com/TG9541/stm8ef/wiki
Other
315 stars 66 forks source link

STM8S Low Density: fix pull-up for PD5 or PA3 "Half-Duplex UART" #288

Closed TG9541 closed 4 years ago

TG9541 commented 4 years ago

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 4 years ago

Tested with an STM9S903K3T6C and the STM8S001J3 binary