1 /** 2 ****************************************************************************** 3 * @file low_level_device.c 4 * @author MCD Application Team 5 * @brief This file contains device definition for low_level_device 6 ****************************************************************************** 7 * @attention 8 * 9 * <h2><center>© Copyright (c) 2020 STMicroelectronics. 10 * All rights reserved.</center></h2> 11 * <h2><center>© Copyright (c) 2021 Arm Limited. 12 * All rights reserved.</center></h2> 13 * 14 * This software component is licensed under BSD 3-Clause license, 15 * the "License"; You may not use this file except in compliance with the 16 * License. You may obtain a copy of the License at: 17 * opensource.org/licenses/BSD-3-Clause 18 * 19 ****************************************************************************** 20 */ 21 22 #include "flash_layout.h" 23 #include "low_level_flash.h" 24 25 struct flash_range nvm_psa_its_vect[] = { 26 { FLASH_OTP_NV_COUNTERS_AREA_OFFSET, FLASH_ITS_AREA_OFFSET + FLASH_ITS_AREA_SIZE - 1}, 27 }; 28 29 struct low_level_device FLASH0_DEV = { 30 .erase = { .nb =sizeof(nvm_psa_its_vect)/sizeof(struct flash_range), .range = nvm_psa_its_vect}, 31 .write = { .nb =sizeof(nvm_psa_its_vect)/sizeof(struct flash_range), .range = nvm_psa_its_vect}, 32 .secure = { 0, NULL}, 33 .read_error = 1 34 }; 35