FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
spi_flash.h File Reference

Macros

#define DUMMY
 

Functions

static void spi_flash_read_register (int spim_id, uint8_t cmd, int size, uint32_t *reg)
 
static void spi_flash_sync_polling (uint32_t spim_id)
 
static void spi_flash_write_enable (int spim_id, uint8_t qpi)
 
static spi_flash_read (int spim_id, uint32_t flash_addr, void *read_buffer, uint32_t size, int qspi)
 
static spi_flash_write (int spim_id, uint32_t flash_addr, void *write_buffer, uint32_t size, int qspi)
 
static void spi_flash_erase (int spim_id, uint32_t flash_addr, uint32_t size, int qspi)
 
static void spi_flash_conf (int spim_id, int qspi)
 

Macro Definition Documentation

#define DUMMY

Referenced by spi_flash_conf().

Function Documentation

static void spi_flash_conf ( int  spim_id,
int  qspi 
)
inlinestatic
static void spi_flash_erase ( int  spim_id,
uint32_t  flash_addr,
uint32_t  size,
int  qspi 
)
inlinestatic
static spi_flash_read ( int  spim_id,
uint32_t  flash_addr,
void *  read_buffer,
uint32_t  size,
int  qspi 
)
inlinestatic

References memset().

static void spi_flash_read_register ( int  spim_id,
uint8_t  cmd,
int  size,
uint32_t *  reg 
)
inlinestatic

References memset().

Referenced by spi_flash_sync_polling().

static void spi_flash_sync_polling ( uint32_t  spim_id)
inlinestatic

References spi_flash_read_register().

Referenced by spi_flash_write().

static spi_flash_write ( int  spim_id,
uint32_t  flash_addr,
void *  write_buffer,
uint32_t  size,
int  qspi 
)
inlinestatic
static void spi_flash_write_enable ( int  spim_id,
uint8_t  qpi 
)
inlinestatic

References memset().

Referenced by spi_flash_conf(), and spi_flash_erase().