summaryrefslogtreecommitdiff
path: root/bsp/mm32f526x/drivers/drv_flash.h
blob: 0eb44eb726e4e7e4a1441369523d347646bda260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2022-2025, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-01-22     chasel   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