summaryrefslogtreecommitdiff
path: root/bsp/nuvoton/libraries/m031/rtt_port/drv_fmc.h
blob: f9a77d5b387a3f7ddf89d946d5ee1a0e7ef01cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**************************************************************************//**
*
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date            Author           Notes
* 2021-02-17      FYChou           First version
*
******************************************************************************/

#ifndef __DRV_FMC_H__
#define __DRV_FMC_H__

#include <rtthread.h>
#include "NuMicro.h"

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___