 |
iSensor-SPI-Buffer
1.15
Firmware for the iSensor-SPI-Buffer board to enable full throughput buffered data capture on Analog Devices IMUs
|
Go to the documentation of this file.
28 #define FLASH_REG_ADDR 0x08040000
31 #define FLASH_ERROR_ADDR 0x0803F800
39 #define ERROR_INIT (1 << 0)
42 #define ERROR_HARDFAULT (1 << 1)
45 #define ERROR_MEM (1 << 2)
48 #define ERROR_BUS (1 << 3)
51 #define ERROR_USAGE (1 << 4)
void Flash_Fault_Log_Init()
Initialize flash error logging.
Definition: flash.c:221
Header file for iSensor-SPI-Buffer register interfacing module.
void Flash_Log_Fault(uint32_t faultCode)
Stores an error code to flash memory.
Definition: flash.c:173
void Flash_Check_Logged_Fault()
Checks for error codes which may have been logged to flash, and sets the status register bit.
Definition: flash.c:142
void Flash_Update()
Flash update command handler.
Definition: flash.c:29
static void PrepareRegsForFlash()
Clears all non-volatile registers in RAM and updates reg signature.
Definition: flash.c:254
static uint16_t CalcRegSig(uint16_t *regs, uint32_t count)
Calculate a signature of a block of RAM. Used for verifying flash memory contents.
Definition: flash.c:238
void Reg_Update_Identifiers()
Load SN and date code registers to SRAM.
Definition: reg.c:139
#define ERROR_NONE
Definition: flash.h:36
void Flash_Load_Registers()
Load register values from flash memory to SRAM.
Definition: flash.c:96
#define FLASH_REG_ADDR
Definition: flash.h:28
#define FLASH_ERROR_ADDR
Definition: flash.h:31
Header file for iSensor-SPI-Buffer flash memory interfacing functions.