1 /* 2 * Copyright 2017-2020 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef __MFLASH_DRV_H__ 8 #define __MFLASH_DRV_H__ 9 10 #include "mflash_common.h" 11 12 /* Flash constants */ 13 #ifndef MFLASH_SECTOR_SIZE 14 #define MFLASH_SECTOR_SIZE (8192U) 15 #endif 16 17 #ifndef MFLASH_PAGE_SIZE 18 #define MFLASH_PAGE_SIZE (128U) 19 #endif 20 21 #ifndef MFLASH_BASE_ADDRESS 22 #define MFLASH_BASE_ADDRESS (0U) 23 #endif 24 25 #define MFLASH_PAGE_INTEGRITY_CHECKS (1) 26 mflash_drv_is_readable(uint32_t addr)27static inline int32_t mflash_drv_is_readable(uint32_t addr) 28 { 29 return kStatus_Success; 30 } 31 32 #endif 33