mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 06:19:24 +08:00
08656c3034
1. 新增 crypto, onchip_Flash, soft_i2c 驱动 2. 新增 oneshot 配网功能 3. 完善 I2C, UART, SPI, WIFI 等基本驱动 4. 更新 Kconfig 配置,用户交互更加友好 5. 屏蔽 末尾 80 内存,无法作为栈使用。
25 lines
565 B
C
25 lines
565 B
C
/*
|
|
* Copyright (c) 2019 Winner Microelectronics Co., Ltd.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2019-04-04 tyx 1st version
|
|
*/
|
|
|
|
#ifndef __DRV_FLASH_H__
|
|
#define __DRV_FLASH_H__
|
|
|
|
#include <rtthread.h>
|
|
|
|
int wm_flash_read(long offset, void *data, int size);
|
|
int wm_flash_write(long offset, void *data, int size);
|
|
int wm_flash_erase(long offset, int size);
|
|
int wm_flash_init(void);
|
|
rt_uint32_t wm_flash_total(void);
|
|
rt_uint32_t wm_flash_addr(void);
|
|
rt_uint32_t wm_flash_blksize(void);
|
|
|
|
#endif
|