/* Set the MOSI,MISO and SCK at high level */
GPIO_Init(SPI_GPIO_PORT, SPI_MOSI_PIN, GPIO_Mode_Out_PP_High_Fast);
GPIO_Init(SPI_GPIO_PORT, SPI_MISO_PIN, GPIO_Mode_In_PU_No_IT);
GPIO_Init(SPI_GPIO_PORT, SPI_SCK_PIN, GPIO_Mode_Out_PP_High_Fast);
/* Configure FLASH_CS as Output push-pull, used as Flash Chip select */
GPIO_Init(SPI_GPIO_PORT, SPI_CS_PIN, GPIO_Mode_Out_PP_High_Fast);
/* Set the MOSI,MISO and SCK at high level */
// GPIO_Init(SPI_GPIO_PORT, SPI_MOSI_PIN, GPIO_Mode_Out_PP_High_Fast);
GPIO_Init(SPI_GPIO_PORT, SPI_MISO_PIN, GPIO_Mode_In_PU_No_IT);
// GPIO_Init(SPI_GPIO_PORT, SPI_SCK_PIN, GPIO_Mode_Out_PP_High_Fast);
/* Configure FLASH_CS as Output push-pull, used as Flash Chip select */
GPIO_Init(SPI_GPIO_PORT, SPI_CS_PIN, GPIO_Mode_Out_PP_High_Fast);