ChipTest/PAN159/PAN159-Template/Library/StdDriver/driver/lib_driver_flash_pan159.h

27 lines
753 B
C
Raw Normal View History

2021-09-26 09:18:47 +00:00
/*******************************************************************************
* @note Copyright (C) 2017 Shanghai Panchip Microelectronics Co., Ltd.
* All rights reserved.
*
* @file drv_flash.h
* @brief FLASH<EFBFBD><EFBFBD>д
*
* @history - V1.0, 2017-03-10, xiaoguolin, first implementation.
*******************************************************************************/
#ifndef __DRV_FLASH_H
#define __DRV_FLASH_H
#ifdef __cplusplus
extern "C"{
#endif
#include "Mini58Series.h"
void flash_pan159_erase(uint32_t addr, uint16_t sectors);
void flash_pan159_write(uint32_t addr, void* p_data, uint16_t len);
void flash_pan159_read(uint32_t addr, void* p_data, uint16_t len);
#ifdef __cplusplus
}
#endif
#endif // __DRV_FLASH_H