stc15: fix baudrate switching
Created by: grigorig
Baudrate switching fixes for both HW and SW UART devices:
- Program secondary SW UART timing parameter correctly. Supposedly this controls the sampling position when receiving data.
- Swap around trim range/adjust parameter for HW UART devices (as determind by older traces)
- Use correct constant for timing calculations
This should fix some STC15x10xW series MCUs. Compatibility to other devices might be improved as well.