Macros | Functions
efc.c File Reference

Enhanced Embedded Flash Controller (EEFC) driver for SAM. More...

#include "efc.h"
Include dependency graph for efc.c:

Go to the source code of this file.

Macros

#define EEFC_ERROR_FLAGS   (EEFC_FSR_FLOCKE | EEFC_FSR_FCMDE)
 
#define EEFC_FCR_FKEY_PASSWD   EEFC_FCR_FKEY(FWP_KEY)
 
#define FWP_KEY   0x5Au
 

Functions

void efc_disable_frdy_interrupt (Efc *p_efc)
 Disable the flash ready interrupt. More...
 
void efc_enable_frdy_interrupt (Efc *p_efc)
 Enable the flash ready interrupt. More...
 
uint32_t efc_get_flash_access_mode (Efc *p_efc)
 Get flash access mode. More...
 
uint32_t efc_get_result (Efc *p_efc)
 Get the result of the last executed command. More...
 
uint32_t efc_get_status (Efc *p_efc)
 Get the current status of the EEFC. More...
 
uint32_t efc_get_wait_state (Efc *p_efc)
 Get flash wait state. More...
 
uint32_t efc_init (Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws)
 Initialize the EFC controller. More...
 
uint32_t efc_perform_command (Efc *p_efc, uint32_t ul_command, uint32_t ul_argument)
 Perform the given command and wait until its completion (or an error). More...
 
uint32_t efc_perform_fcr (Efc *p_efc, uint32_t ul_fcr)
 Perform command. More...
 
__no_inline RAMFUNC uint32_t efc_perform_read_sequence (Efc *p_efc, uint32_t ul_cmd_st, uint32_t ul_cmd_sp, uint32_t *p_ul_buf, uint32_t ul_size)
 Perform read sequence. Supported sequences are read Unique ID and read User Signature. More...
 
void efc_set_flash_access_mode (Efc *p_efc, uint32_t ul_mode)
 Set flash access mode. More...
 
void efc_set_wait_state (Efc *p_efc, uint32_t ul_fws)
 Set flash wait state. More...
 
void efc_write_fmr (Efc *p_efc, uint32_t ul_fmr)
 Set mode register. More...
 

Detailed Description

Enhanced Embedded Flash Controller (EEFC) driver for SAM.

Copyright (c) 2011-2016 Atmel Corporation. All rights reserved.

Definition in file efc.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59