Use 16-bits for STM32 LED mask. Export serial I/O functions