stm32: fix assert_param problems

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>