1 /** 2 ****************************************************************************** 3 * @file low_level_ospi_flash.h 4 * @author MCD Application Team 5 * @brief This file contains device definition for low_level_ospi_flash driver 6 ****************************************************************************** 7 * @attention 8 * 9 * <h2><center>© Copyright (c) 2020 STMicroelectronics. 10 * All rights reserved.</center></h2> 11 * 12 * This software component is licensed by ST under BSD 3-Clause license, 13 * the "License"; You may not use this file except in compliance with the 14 * License. You may obtain a copy of the License at: 15 * opensource.org/licenses/BSD-3-Clause 16 * 17 ****************************************************************************** 18 */ 19 #ifndef __LOW_LEVEL_OSPI_FLASH_H 20 #define __LOW_LEVEL_OSPI_FLASH_H 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 #include "stm32hal.h" 26 27 struct ospi_flash_range 28 { 29 uint32_t base; 30 uint32_t limit; 31 }; 32 struct ospi_flash_vect 33 { 34 uint32_t nb; 35 struct ospi_flash_range *range; 36 }; 37 struct low_level_ospi_device 38 { 39 struct ospi_flash_vect erase; 40 struct ospi_flash_vect write; 41 uint32_t read_error; 42 }; 43 44 extern struct low_level_ospi_device OSPI_FLASH0_DEV; 45 46 /* Additional api, not included in cmsis arm driver flash interface */ 47 int32_t Ospi_Flash_Config_Exe(void); 48 49 #endif /* __LOW_LEVEL_OSPI_FLASH_H */ 50 51 52