#include <stdint.h>
Functions | |
int | nvram_init (void) |
int | nvram_read (uint32_t addr, void *data, uint32_t len) |
Read any number bytes into any offset of nor flash. More... | |
int | nvram_write (uint32_t addr, const void *data, uint32_t len) |
Write any number bytes into any offset of nor flash. More... | |
int nvram_init | ( | void | ) |
References at45dbx_init(), AT45DBX_SPI_BITS, AT45DBX_SPI_FIRST_NPCS, AT45DBX_SPI_MASTER_SPEED, FPBA_HZ, and spi_options_t::reg.
Referenced by main().
int nvram_read | ( | uint32_t | addr, |
void * | data, | ||
uint32_t | len | ||
) |
Read any number bytes into any offset of nor flash.
References nvram_rw().
Referenced by ak8975_calibrate(), ak8975_init(), hmc5883l_calibrate(), hmc5883l_init(), main(), sfh7770_calibrate(), and sfh7770_init().
int nvram_write | ( | uint32_t | addr, |
const void * | data, | ||
uint32_t | len | ||
) |
Write any number bytes into any offset of nor flash.
References nvram_rw().
Referenced by ak8975_calibrate(), hmc5883l_calibrate(), main(), sfh7770_calibrate(), and sfh7770_set_threshold().