1 /* 2 * Copyright (c) 2006-2023, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2018-12-5 SummerGift first version 9 */ 10 11 #ifndef __DRV_FLASH_H__ 12 #define __DRV_FLASH_H__ 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 int ch32_flash_read(rt_uint32_t addr, rt_uint8_t *buf, rt_size_t size); 19 int ch32_flash_write(rt_uint32_t addr, const rt_uint8_t *buf, rt_size_t size); 20 int ch32_flash_erase(rt_uint32_t addr, rt_size_t size); 21 22 #ifdef __cplusplus 23 } 24 #endif 25 26 #endif /* __DRV_FLASH_H__ */ 27