Running
USEMODULE=stdio_rtt make BOARD=weact-g030f6 -C ... flash term
failed due the programmer not being specified by the time the serial
is configured:
makefiles/tools/serial.inc.mk:44: "Warning: No RIOT_TERMINAL set,
but using stdio_rtt: The default terminal is likely not to work."
This reorders the setup of the board to first configure the programmer
and then the serial, so that using stdio_rtt now works out of the box.
This fixes a race in `LED<NUM>_TOGGLE`, which is a read-copy-write
operation. Any access to a GPIO pin on the same GPIO port that
happens concurrently could result in data corruption. Using the
GPIO LL API, which is thread-safe, fixes the issue.
Note: The used GPIO LL functions will work even in when the GPIO LL
module is not used.