add SPI library and USART library for M4