AT-Command/samples/none_os/driver/inc/mcu_flash.h
2022-12-31 22:42:31 +08:00

22 lines
652 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/******************************************************************************
* @brief ST mcu ƬÉÏflash²Ù×÷
*
* Copyright (c) 2018~2020, <morro_luo@163.com>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-09-09 roger.luo Initial version
******************************************************************************/
#ifndef _MCU_FLASH_H_
#define _MCU_FLASH_H_
#include <stddef.h>
int mcu_flash_erase(unsigned int addr, size_t size);
int mcu_flash_write(unsigned int addr ,const void *buf, size_t size);
int mcu_flash_read(unsigned int addr ,void *buf, size_t size);
#endif