add stm32f10x_md.s,change spi.c.

STM32F101C8 is medium-density(stm32f10x_md.s),not low-density.
a variable in if condition is wrong.