#include"W25Q32JVSSIQ.h" #include"stm32f4xx_hal_gpio.h" #include"spi.h" #defineSPI_TIMEOUT1000 #defineW25Q32J_9H_ID0x684016 staticuint64_tg_w25q32jDevId=0; voidW25Q32J_SPI_FLASH_CS_HIGH() { HAL_GPIO_WritePin(GPIOB,PB12_FLASH_SPI2_CS_Pin,GPIO_PIN_SET); } voidW25Q32J...
#defineW25Q32J_H typedefRET_ERROR-1 typedefRET_OK0 #defineW25Q32J_DUMMY_BYTE0xFF #defineW25Q32J_WRITE_ENABLE0x06 #defineW25Q32J_WRITE_DISABLE0x04 #defineW25Q32J_READ_STATUS0x05 #defineW25Q32J_WRITE_STATUS0x01 #defineW25Q32J_READ_DATA0x03 #defineW25Q32J_FAST_READ_DATA0x0B #define...