1 /* 2 * Copyright (c) 2022-2025, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2025-01-22 chasel first version 9 */ 10 11 #ifndef __DRV_FLASH_H__ 12 #define __DRV_FLASH_H__ 13 14 #include <rtdevice.h> 15 16 struct spi_flash_device 17 { 18 struct rt_device flash_device; 19 struct rt_device_blk_geometry geometry; 20 struct rt_spi_device *rt_spi_device; 21 struct rt_mutex lock; 22 void *user_data; 23 }; 24 25 int flash_init(void); 26 27 #endif 28