GPIO模拟SPI通信主机代码 主函数如下: #include"sys.h" #include"delay.h" #include"usart.h" #include"led.h" #include"key.h" #include"spi.h" #include"lcd.h" #include"sdram.h" unsignedchardata[9]="B16030410"; intmain(void) { u8receivr_Data=0,i=0; HAL_Init(); Stm32_Clock_Init