4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 07:39:21 +08:00
2021-08-09 17:51:55 +08:00

28 lines
573 B
C

/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-08-05 mazhiyuan first version
*/
#ifndef __DRV_FLASH_H__
#define __DRV_FLASH_H__
#include <rtdevice.h>
struct spi_flash_device
{
struct rt_device flash_device;
struct rt_device_blk_geometry geometry;
struct rt_spi_device *rt_spi_device;
struct rt_mutex lock;
void *user_data;
};
int flash_init(void);
#endif