remove old code.
update stm32f10x template.