FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | MEM_ACCESS |
#define | REG_ACCESS |
#define | RAM_ADDR |
#define | FLASH_ADDR |
#define | TYPE_OCTOSPI |
#define | TYPE_HYPERBUS |
#define | HYPERRAM |
#define | HYPERFLASH |
#define | HYPER_IRQ_DISABLE |
#define | HYPER_IRQ_ENABLE |
#define | HYPER_MODE_AUTO_ENABLE |
#define | HYPER_MODE_AUTO_DISABLE |
#define | HYPER_MODE_XIP_ENABLE |
#define | HYPER_MODE_XIP_DISABLE |
#define | HYPER_BURST_2D_ENABLE |
#define | HYPER_2D_MODE_1D_1D |
#define | HYPER_2D_MODE_1D_2D |
#define | HYPER_2D_MODE_2D_1D |
#define | HYPER_2D_MODE_2D_2D |
Functions | |
static void | hal_udma_hyperbus_rx_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_hyperbus_rx_dest_get (uint32_t device_id) |
static void | hal_udma_hyperbus_tx_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_hyperbus_tx_dest_get (uint32_t device_id) |
static void | hal_udma_hyperbus_transfert_mode_set (uint32_t device_id, uint8_t auto_ena, uint8_t xip_ena) |
static void | hal_udma_hyperbus_transfert_addr_set (uint32_t device_id, uint32_t addr) |
static void | hal_udma_hyperbus_transfert_size_set (uint32_t device_id, uint32_t size) |
static void | hal_udma_hyperbus_transfert_cfg_set (uint32_t device_id, uint8_t rxtx, uint8_t start) |
static void | hal_udma_hyperbus_ext_addr_set (uint32_t device_id, uint32_t ext_addr, uint8_t access) |
static uint32_t | hal_udma_hyperbus_timing_get (uint32_t device_id) |
static void | hal_udma_hyperbus_timing_set (uint32_t device_id, uint16_t latency_0, uint16_t latency_1, uint8_t rw_recovery, uint8_t rwds_delay, uint8_t autocheck, uint16_t cs_max) |
static void | hal_udma_hyperbus_timing_mask_set (uint32_t device_id, uint32_t timing_mask) |
static void | hal_udma_hyperbus_mba0_set (uint32_t device_id, uint32_t addr) |
static void | hal_udma_hyperbus_mba1_set (uint32_t device_id, uint32_t addr) |
static void | hal_udma_hyperbus_device_type_set (uint32_t device_id, uint8_t type, uint8_t dt0_dev) |
static void | hal_udma_hyperbus_ospi_cmd_set (uint32_t device_id, uint8_t cs, uint16_t cmd) |
static void | hal_udma_hyperbus_ospi_alter_set (uint32_t device_id, uint8_t cs, uint16_t mode) |
static void | hal_udma_hyperbus_ospi_cfg_set (uint32_t device_id, uint8_t cmd_size, uint8_t addr_size, uint8_t lines, uint8_t cmd_dtr, uint8_t addr_dtr, uint8_t data_dtr, uint8_t data_dtr_msb) |
static void | hal_udma_hyperbus_ospi_cfg_mask_set (uint32_t device_id, uint8_t cs, uint32_t ospi_cfg_mask) |
static void | hal_udma_hyperbus_ospi_cmd_xip_set (uint32_t device_id, uint8_t cs, uint16_t cmd) |
static void | hal_udma_hyperbus_ospi_alter_xip_set (uint32_t device_id, uint8_t cs, uint16_t mode) |
static void | hal_udma_hyperbus_ospi_cfg_xip_set (uint32_t device_id, uint8_t cmd_size, uint8_t addr_size, uint8_t lines, uint8_t cmd_dtr, uint8_t addr_dtr, uint8_t data_dtr, uint8_t data_dtr_msb) |
static void | hal_udma_hyperbus_ospi_cfg_mask_xip_set (uint32_t device_id, uint8_t cs, uint32_t ospi_cfg_mask) |
static uint32_t | hal_udma_hyperbus_ospi_csn_get (uint32_t device_id) |
static void | hal_udma_hyperbus_ospi_csn_set (uint32_t device_id, uint8_t csn, uint8_t auto_en, uint8_t direct_ctrl, uint8_t csn_state) |
static void | hal_udma_hyperbus_ospi_csn_mask_set (uint32_t device_id, uint32_t ospi_csn_mask) |
static void | hal_udma_hyperbus_ospi_jedec_reset_set (uint32_t device_id, uint8_t ena, uint8_t sdo0_val) |
static uint32_t | hal_udma_hyperbus_ospi_ram_opt_get (uint32_t device_id) |
static void | hal_udma_hyperbus_ospi_ram_opt_mask_set (uint32_t device_id, uint32_t ram_opt_mask) |
static void | hal_udma_hyperbus_ospi_ram_opt_set (uint32_t device_id, uint8_t opt_read_en, uint8_t real_addr, uint8_t psram_read_bit, uint8_t psram_read_cmd, uint8_t psram_addr_even, uint8_t psram_cross_bound) |
static void | hal_udma_hyperbus_line_2d_set (uint32_t device_id, uint32_t line) |
static void | hal_udma_hyperbus_stride_2d_set (uint32_t device_id, uint32_t stride) |
static void | hal_udma_hyperbus_burst_enable (uint32_t device_id, uint8_t burst_type) |
static void | hal_udma_hyperbus_burst_disable (uint32_t device_id, uint8_t burst_type) |
static void | hal_udma_hyperbus_burst_cfg_set (uint32_t device_id, uint32_t burst_cfg) |
static void | hal_udma_hyperbus_irq_enable (uint32_t device_id) |
static void | hal_udma_hyperbus_irq_disable (uint32_t device_id) |
static void | hal_udma_hyperbus_clk_div_set (uint32_t device_id, uint8_t clk_div) |
static uint32_t | hal_udma_hyperbus_status_get (uint32_t device_id) |
static void | hal_udma_hyperbus_2d_enqueue (uint32_t device_id, uint32_t ext_addr, uint32_t l2_buf_0, uint32_t l2_buf_1, uint32_t size, uint32_t stride, uint32_t length, uint32_t cfg, uint8_t access, udma_channel_e channel) |
static void | hal_udma_hyperbus_transfer_2d_auto (uint32_t device_id, uint32_t ext_addr, uint32_t l2_buf0, uint32_t size, uint32_t stride, uint32_t length, uint32_t rxtx, uint32_t burst_cfg, uint8_t clk_div) |
#define FLASH_ADDR |
#define HYPER_2D_MODE_1D_1D |
Referenced by __pi_hyper_copy_2d_exec(), and __pi_octospi_2d_copy_exec().
#define HYPER_2D_MODE_1D_2D |
Referenced by __pi_hyper_copy_2d_exec(), and __pi_octospi_2d_copy_exec().
#define HYPER_2D_MODE_2D_1D |
#define HYPER_2D_MODE_2D_2D |
#define HYPER_BURST_2D_ENABLE |
Referenced by __pi_hyper_open(), and __pi_octospi_open().
#define HYPER_IRQ_DISABLE |
Referenced by hal_udma_hyperbus_irq_disable().
#define HYPER_IRQ_ENABLE |
Referenced by hal_udma_hyperbus_irq_enable().
#define HYPER_MODE_AUTO_DISABLE |
#define HYPER_MODE_AUTO_ENABLE |
Referenced by __pi_hyper_open(), and __pi_octospi_open().
#define HYPER_MODE_XIP_DISABLE |
#define HYPER_MODE_XIP_ENABLE |
#define HYPERFLASH |
Referenced by __pi_hyper_settings().
#define HYPERRAM |
Referenced by __pi_hyper_open(), __pi_hyper_settings(), and __pi_octospi_device_settings_set().
#define MEM_ACCESS |
#define RAM_ADDR |
Referenced by __pi_hyper_settings().
#define REG_ACCESS |
#define TYPE_HYPERBUS |
Referenced by __pi_hyper_settings().
#define TYPE_OCTOSPI |
Referenced by __pi_octospi_device_settings_set().
|
inlinestatic |
UDMA_ENQUEUE.
References hal_udma_core_lin_enqueue(), hal_udma_core_lin_get(), hal_udma_hyperbus_ext_addr_set(), hal_udma_hyperbus_rx_dest_get(), hal_udma_hyperbus_tx_dest_get(), and RX_CHANNEL.
|
inlinestatic |
References udma_hyper, and udma_hyper_burst_enable_set().
Referenced by __pi_hyper_open(), and hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
References udma_hyper, udma_hyper_burst_enable_get(), and udma_hyper_burst_enable_set().
|
inlinestatic |
BURST_ENABLE Register.
References udma_hyper, udma_hyper_burst_enable_get(), and udma_hyper_burst_enable_set().
|
inlinestatic |
CLK_DIV Register.
References udma_hyper, UDMA_HYPER_CLK_DIV_DATA, udma_hyper_clk_div_set(), and UDMA_HYPER_CLK_DIV_VALID.
Referenced by __pi_hyper_open(), and __pi_octospi_device_settings_set().
|
inlinestatic |
DEVICE Register.
References udma_hyper, UDMA_HYPER_DEVICE_DT0, UDMA_HYPER_DEVICE_DT1, udma_hyper_device_set(), and UDMA_HYPER_DEVICE_TYPE.
Referenced by __pi_hyper_settings(), and __pi_octospi_device_settings_set().
|
inlinestatic |
EXT_ADDR Register.
References udma_hyper, UDMA_HYPER_EXT_ADDR_REG_ACCESS, UDMA_HYPER_EXT_ADDR_SADDR, and udma_hyper_ext_addr_set().
Referenced by hal_udma_hyperbus_2d_enqueue(), and hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
References HYPER_IRQ_DISABLE, udma_hyper, and udma_hyper_irq_en_set().
|
inlinestatic |
IRQ_EN Register.
References HYPER_IRQ_ENABLE, udma_hyper, and udma_hyper_irq_en_set().
Referenced by __pi_hyper_open(), and __pi_octospi_open().
|
inlinestatic |
LINE_2D Register.
References udma_hyper, and udma_hyper_line_2d_set().
Referenced by hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
MBA0 Register.
References udma_hyper, and udma_hyper_mba0_set().
Referenced by __pi_hyper_settings(), and __pi_octospi_device_settings_set().
|
inlinestatic |
MBA1 Register.
References udma_hyper, and udma_hyper_mba1_set().
Referenced by __pi_hyper_settings(), and __pi_octospi_device_settings_set().
|
inlinestatic |
OSPI_ALTER Register.
References udma_hyper, udma_hyper_ospi_alter_get(), UDMA_HYPER_OSPI_ALTER_MODE0_MASK, UDMA_HYPER_OSPI_ALTER_MODE0_WIDTH, and udma_hyper_ospi_alter_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
OSPI_ALTER_XIP Register.
References udma_hyper, udma_hyper_ospi_alter_get(), UDMA_HYPER_OSPI_ALTER_MODE0_MASK, UDMA_HYPER_OSPI_ALTER_MODE0_WIDTH, and udma_hyper_ospi_alter_xip_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
References udma_hyper, udma_hyper_ospi_cfg_get(), and udma_hyper_ospi_cfg_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
References udma_hyper, udma_hyper_ospi_cfg_xip_get(), and udma_hyper_ospi_cfg_xip_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
|
inlinestatic |
OSPI_CFG_XIP Register.
References udma_hyper, UDMA_HYPER_OSPI_CFG_ADDR_DTR_STR, UDMA_HYPER_OSPI_CFG_ADDR_SIZE, UDMA_HYPER_OSPI_CFG_CMD_DTR_STR, UDMA_HYPER_OSPI_CFG_CMD_SIZE, UDMA_HYPER_OSPI_CFG_DATA_DTR_MSB, UDMA_HYPER_OSPI_CFG_DATA_DTR_STR, UDMA_HYPER_OSPI_CFG_LINE, and udma_hyper_ospi_cfg_xip_set().
|
inlinestatic |
OSPI_CMD Register.
References udma_hyper, UDMA_HYPER_OSPI_CMD_CMD_MASK, UDMA_HYPER_OSPI_CMD_CMD_WIDTH, udma_hyper_ospi_cmd_get(), and udma_hyper_ospi_cmd_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
XIP specific registers OSPI_CMD_XIP Register.
References udma_hyper, UDMA_HYPER_OSPI_CMD_CMD_MASK, UDMA_HYPER_OSPI_CMD_CMD_WIDTH, udma_hyper_ospi_cmd_get(), and udma_hyper_ospi_cmd_xip_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
OSPI_CSN Register.
References udma_hyper, and udma_hyper_ospi_csn_get().
Referenced by __pi_octospi_device_settings_set().
|
inlinestatic |
References udma_hyper, and udma_hyper_ospi_csn_set().
Referenced by __pi_octospi_device_settings_set().
|
inlinestatic |
References udma_hyper, udma_hyper_ospi_csn_get(), and udma_hyper_ospi_csn_set().
|
inlinestatic |
OSPI_JEDEC_RESET Register.
References udma_hyper, udma_hyper_ospi_jedec_reset_set(), UDMA_HYPER_OSPI_JEDEC_RESET_USER_CTRL_SDO0_EN, and UDMA_HYPER_OSPI_JEDEC_RESET_USER_CTRL_SDO0_VALUE.
|
inlinestatic |
OSPI_RAM_OPT Register.
References udma_hyper, and udma_hyper_ospi_ram_opt_get().
|
inlinestatic |
References udma_hyper, udma_hyper_ospi_ram_opt_get(), and udma_hyper_ospi_ram_opt_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
References udma_hyper, UDMA_HYPER_OSPI_RAM_OPT_OPT_READ_EN_CS, UDMA_HYPER_OSPI_RAM_OPT_PSRAM_ADDR_EVEN, UDMA_HYPER_OSPI_RAM_OPT_PSRAM_CMD_EN, UDMA_HYPER_OSPI_RAM_OPT_PSRAM_CROSS_BOUNDARY_EN, UDMA_HYPER_OSPI_RAM_OPT_PSRAM_READ_BIT, UDMA_HYPER_OSPI_RAM_OPT_REAL_ADDR_EN, and udma_hyper_ospi_ram_opt_set().
|
inlinestatic |
References udma_hyper, and udma_hyper_rx_dest_get().
Referenced by hal_udma_hyperbus_2d_enqueue().
|
inlinestatic |
RX_DEST Register.
References UDMA_CORE_LIN_DEFAULT, udma_hyper, and udma_hyper_rx_dest_set().
Referenced by __pi_hyper_close(), __pi_hyper_open(), __pi_octospi_close(), and __pi_octospi_open().
|
inlinestatic |
STATUS Register.
References udma_hyper, and udma_hyper_status_get().
Referenced by __pi_hyper_handler_irq(), and __pi_octospi_irq_handler().
|
inlinestatic |
STRIDE_2D Register.
References udma_hyper, and udma_hyper_stride_2d_set().
Referenced by hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
TIMING_CFG Register.
References udma_hyper, and udma_hyper_timing_cfg_get().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
References udma_hyper, and udma_hyper_timing_cfg_set().
Referenced by __pi_octospi_ospi_config_set().
|
inlinestatic |
References udma_hyper, udma_hyper_ospi_reg_xip_set(), UDMA_HYPER_TIMING_CFG_ADDITIONAL_LATENCY_AUTOCHECK_EN, UDMA_HYPER_TIMING_CFG_CS_MAX, UDMA_HYPER_TIMING_CFG_LATENCY0, UDMA_HYPER_TIMING_CFG_LATENCY1, UDMA_HYPER_TIMING_CFG_RW_RECOVERY, UDMA_HYPER_TIMING_CFG_RWDS_DELAY, and udma_hyper_timing_cfg_set().
Referenced by __pi_hyper_settings(), and __pi_octospi_device_settings_set().
|
inlinestatic |
References hal_udma_hyperbus_burst_cfg_set(), hal_udma_hyperbus_ext_addr_set(), hal_udma_hyperbus_line_2d_set(), hal_udma_hyperbus_stride_2d_set(), hal_udma_hyperbus_transfert_addr_set(), hal_udma_hyperbus_transfert_cfg_set(), and hal_udma_hyperbus_transfert_size_set().
Referenced by __pi_hyper_copy_2d_exec(), and __pi_octospi_2d_copy_exec().
|
inlinestatic |
TRANS_ADDR Register.
References udma_hyper, and udma_hyper_trans_addr_set().
Referenced by hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
TRANS_CFG Register.
References udma_hyper, UDMA_HYPER_TRANS_CFG_RXTX, udma_hyper_trans_cfg_set(), and UDMA_HYPER_TRANS_CFG_VALID.
Referenced by hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
TRANS_MODE Register.
References udma_hyper, UDMA_HYPER_TRANS_MODE_AUTO_ENA, udma_hyper_trans_mode_set(), and UDMA_HYPER_TRANS_MODE_XIP_EN.
Referenced by __pi_hyper_open(), and __pi_octospi_open().
|
inlinestatic |
TRANS_SIZE Register.
References udma_hyper, and udma_hyper_trans_size_set().
Referenced by hal_udma_hyperbus_transfer_2d_auto().
|
inlinestatic |
References udma_hyper, and udma_hyper_tx_dest_get().
Referenced by hal_udma_hyperbus_2d_enqueue().
|
inlinestatic |
TX_DEST Register.
References UDMA_CORE_LIN_DEFAULT, udma_hyper, and udma_hyper_tx_dest_set().
Referenced by __pi_hyper_close(), __pi_hyper_open(), __pi_octospi_close(), and __pi_octospi_open().