M4521_BSP V3.02.000
The Board Support Package for M4521
Functions | Variables
fmc.c File Reference

M4521 FMC driver source file. More...

#include <stdio.h>
#include "M4521.h"
Include dependency graph for fmc.c:

Go to the source code of this file.

Functions

void FMC_SetBootSource (int32_t i32BootSrc)
 Set boot source from LDROM or APROM after next software reset. More...
 
void FMC_Close (void)
 Disable ISP Functions. More...
 
void FMC_DisableAPUpdate (void)
 Disable APROM update function. More...
 
void FMC_DisableConfigUpdate (void)
 Disable User Configuration update function. More...
 
void FMC_DisableLDUpdate (void)
 Disable LDROM update function. More...
 
void FMC_EnableAPUpdate (void)
 Enable APROM update function. More...
 
void FMC_EnableConfigUpdate (void)
 Enable User Configuration update function. More...
 
void FMC_EnableLDUpdate (void)
 Enable LDROM update function. More...
 
int32_t FMC_GetBootSource (void)
 Get the current boot source. More...
 
void FMC_Open (void)
 Enable FMC ISP function. More...
 
uint32_t FMC_ReadDataFlashBaseAddr (void)
 Get the base address of Data Flash if enabled. More...
 
uint32_t FMC_Read (uint32_t u32Addr)
 Read 32-bit Data from specified address of flash. More...
 
uint32_t FMC_ReadUID (uint8_t u8Index)
 Read Unique ID. More...
 
uint32_t FMC_ReadCID (void)
 Read company ID. More...
 
uint32_t FMC_ReadPID (void)
 Read product ID. More...
 
uint32_t FMC_ReadUCID (uint32_t u32Index)
 To read UCID. More...
 
int32_t FMC_Write (uint32_t u32Addr, uint32_t u32Data)
 Program 32-bit data into specified address of flash. More...
 
int32_t FMC_Write8 (uint32_t u32Addr, uint32_t u32Data0, uint32_t u32Data1)
 Program 64-bit data into specified address of flash. More...
 
int32_t FMC_Write256 (uint32_t u32Addr, uint32_t *pu32Buf)
 Program Multi-Word data into specified address of flash. More...
 
int32_t FMC_Erase (uint32_t u32Addr)
 Flash page erase. More...
 
int32_t FMC_ReadConfig (uint32_t *u32Config, uint32_t u32Count)
 Read the User Configuration words. More...
 
int32_t FMC_WriteConfig (uint32_t *u32Config, uint32_t u32Count)
 Write User Configuration. More...
 
uint32_t FMC_GetCheckSum (uint32_t u32Addr, int32_t i32Size)
 Get Flash Checksum. More...
 
void FMC_EnableFreqOptimizeMode (uint32_t u32Mode)
 Enable Flash Access Frequency Optimization Mode. More...
 
void FMC_DisableFreqOptimizeMode (void)
 Disable Flash Access Frequency Optimization Mode. More...
 

Variables

int32_t g_FMC_i32ErrCode
 

Detailed Description

M4521 FMC driver source file.

Version
V3.00
Revision
7
Date
15/08/11 10:26a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2022 Nuvoton Technology Corp. All rights reserved.

Definition in file fmc.c.