34 #include <STM32FreeRTOS.h>
37 #include "stm32l4xx_hal.h"
41 using namespace cpp_freertos;
43 #define FLASH_MEMORYMAP_BASE 0x90000000
46 #define CHECK_FLASH_WRITE
48 #define FLASH_FW_POSITION (0ul)
49 #define FLASH_FW_BACKUP (262144ul)
50 #define FLASH_FILE_POSITION (524288ul)
51 #define FLASH_FREE_ACCESS (1048756ul)
52 #define FLASH_BUFFER_SIZE (256)
53 #define FLASH_INFO_SIZE_LEN (256)
54 #define FLASH_FILE_SIZE_LEN (128)
55 #define FLASH_SIZE_ADDR(X) (X + FLASH_FILE_SIZE_LEN + 1)
56 #define FLASH_INFO_SIZE_U64 (8)
67 QSPI_ERROR = HAL_ERROR,
69 QSPI_TIMEOUT = HAL_TIMEOUT,
102 Flash(QSPI_HandleTypeDef *hqspi);
116 uint8_t BSP_QSPI_SuspendErase(
void);
117 uint8_t BSP_QSPI_ResumeErase(
void);
124 QSPI_StatusTypeDef BSP_QSPI_AutoPolling(QSPI_CommandTypeDef *cmd, QSPI_AutoPollingTypeDef *cfg, uint32_t Timeout);
This file contains all the description of the AT25SF161 QSPI memory.
static QSPI_IT_EventFlag * _evtFlag
static QSPI_Info _FlashInfo
QSPI_HandleTypeDef * _hqspi
__IO QSPI_StatusTypeDef State
uint32_t EraseBlockNumber