Various stm32f100 fixes