The old "spl-uart" example was a rather complex UART1 to UART3 loopback and buffer check firmware and utilizes interrupts. The example also wouldn't compile for the boards that do not have a UART1 peripheral, but a UART2 peripheral instead.
This renames the old exapmle to spl-uart-loopback and adds a new, simple, no interrupts, UART printf() example which works for all supported STM8 boards. It outputs a small header text first, then Hello, world! continuously.
Again, the SPL configuration has been stripped down to the bare minimum (CLK, UART1 or UART2) to save flash.
Tested on my STM8S103F3 breakout board.
Build integration for examples has been adapted accordingly.
The old "spl-uart" example was a rather complex UART1 to UART3 loopback and buffer check firmware and utilizes interrupts. The example also wouldn't compile for the boards that do not have a UART1 peripheral, but a UART2 peripheral instead.
This renames the old exapmle to spl-uart-loopback and adds a new, simple, no interrupts, UART printf() example which works for all supported STM8 boards. It outputs a small header text first, then
Hello, world!
continuously.Again, the SPL configuration has been stripped down to the bare minimum (CLK, UART1 or UART2) to save flash.
Tested on my STM8S103F3 breakout board.
Build integration for examples has been adapted accordingly.