STM32 platform cleanup.

Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com>