More warning fixes in the STM32 drvier, STM32 test project and the library core