2021-02-05 18:52:13 +08:00
|
|
|
/**************************************************************************//**
|
|
|
|
*
|
|
|
|
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-3-03 FYChou First version
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __DRV_FMC_H__
|
|
|
|
#define __DRV_FMC_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
2021-03-15 15:41:41 +08:00
|
|
|
#include "NuMicro.h"
|
2021-02-05 18:52:13 +08:00
|
|
|
|
|
|
|
int nu_fmc_read(long offset, uint8_t *buf, size_t size);
|
|
|
|
int nu_fmc_write(long offset, const uint8_t *buf, size_t size);
|
|
|
|
int nu_fmc_erase(long offset, size_t size);
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __DRV_FMC_H___
|