![]() |
M480 BSP V3.05.005
The Board Support Package for M480 Series
|
M480 series SPIM driver. More...
Go to the source code of this file.
Functions | |
uint32_t | SPIM_GetSClkFreq (void) |
Get SPIM serial clock. More... | |
int | SPIM_InitFlash (int clrWP) |
Initialize SPIM flash. More... | |
void | SPIM_ReadJedecId (uint8_t idBuf[], uint32_t u32NRx, uint32_t u32NBit) |
Issue JEDEC ID command. More... | |
void | SPIM_SetQuadEnable (int isEn, uint32_t u32NBit) |
Set Quad Enable/disable. More... | |
static void | spim_eon_set_qpi_mode (int isEn) |
Enter/exit QPI mode. More... | |
static void | SPIM_SPANSION_4Bytes_Enable (int isEn, uint32_t u32NBit) |
int | SPIM_Enable_4Bytes_Mode (int isEn, uint32_t u32NBit) |
Enter/Exit 4-byte address mode. More... | |
void | SPIM_WinbondUnlock (uint32_t u32NBit) |
void | SPIM_ChipErase (uint32_t u32NBit, int isSync) |
Erase whole chip. More... | |
void | SPIM_EraseBlock (uint32_t u32Addr, int is4ByteAddr, uint8_t u8ErsCmd, uint32_t u32NBit, int isSync) |
Erase one block. More... | |
void | SPIM_IO_Write (uint32_t u32Addr, int is4ByteAddr, uint32_t u32NTx, uint8_t pu8TxBuf[], uint8_t wrCmd, uint32_t u32NBitCmd, uint32_t u32NBitAddr, uint32_t u32NBitDat) |
Write data to SPI Flash by sending commands manually (I/O mode). More... | |
void | SPIM_IO_Read (uint32_t u32Addr, int is4ByteAddr, uint32_t u32NRx, uint8_t pu8RxBuf[], uint8_t rdCmd, uint32_t u32NBitCmd, uint32_t u32NBitAddr, uint32_t u32NBitDat, int u32NDummy) |
Read data from SPI Flash by sending commands manually (I/O mode). More... | |
void | SPIM_DMA_Write (uint32_t u32Addr, int is4ByteAddr, uint32_t u32NTx, uint8_t pu8TxBuf[], uint32_t wrCmd) |
Write data to SPI Flash by Page Write mode. More... | |
void | SPIM_DMA_Read (uint32_t u32Addr, int is4ByteAddr, uint32_t u32NRx, uint8_t pu8RxBuf[], uint32_t u32RdCmd, int isSync) |
Read data from SPI Flash by Page Read mode. More... | |
void | SPIM_EnterDirectMapMode (int is4ByteAddr, uint32_t u32RdCmd, uint32_t u32IdleIntvl) |
Enter Direct Map mode. More... | |
void | SPIM_ExitDirectMapMode (void) |
Exit Direct Map mode. More... | |
M480 series SPIM driver.
SPDX-License-Identifier: Apache-2.0
Definition in file spim.c.