some remap code that maybe useful for stm32f103