1
0

drv_flash.h 559 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2018, 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. #ifndef __DRV_FLASH_H__
  11. #define __DRV_FLASH_H__
  12. #include <rtthread.h>
  13. #include "rtdevice.h"
  14. #include <rthw.h>
  15. #include <drv_common.h>
  16. int stm32_flash_read(long offset, rt_uint8_t *buf, size_t size);
  17. int stm32_flash_write(long offset, const rt_uint8_t *buf, size_t size);
  18. int stm32_flash_erase(long offset, size_t size);
  19. #endif /* __DRV_FLASH_H__ */