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

Macros

#define DMA_FIX
 
#define DMA_INC
 
#define DMA_IS_1D
 
#define DMA_IS_2D
 
#define DMA_ELE_DIS
 
#define DMA_ELE_ENA
 
#define DMA_ILE_DIS
 
#define DMA_ILE_ENA
 
#define DMA_BLE_DIS
 
#define DMA_BLE_ENA
 

Functions

static uint32_t hal_cl_dma_cmd_make (uint16_t len, uint8_t dir, uint8_t inc, uint8_t is2d, uint8_t ele, uint8_t ile, uint8_t ble)
 
static void cl_dma_cmd_set (uint32_t cmd)
 
static uint32_t cl_dma_cmd_get ()
 
static void cl_dma_status_set (uint32_t status)
 
static uint32_t cl_dma_status_get ()
 
static uint16_t hal_cl_dma_tid_get ()
 
static void hal_cl_dma_1d_transfer_push (uint32_t cmd, uint32_t loc, uint32_t ext)
 
static void hal_cl_dma_2d_transfer_push (uint32_t cmd, uint32_t loc, uint32_t ext, uint32_t stride, uint32_t length)
 
static void hal_cl_dma_tid_free (uint8_t tid)
 
static void hal_cl_dma_flush ()
 
static void hal_cl_dma_wait (uint8_t tid)
 

Macro Definition Documentation

#define DMA_BLE_DIS
#define DMA_BLE_ENA
#define DMA_ELE_DIS
#define DMA_ELE_ENA
#define DMA_FIX
#define DMA_ILE_DIS
#define DMA_ILE_ENA
#define DMA_INC
#define DMA_IS_1D
#define DMA_IS_2D

Function Documentation

static uint32_t cl_dma_cmd_get ( )
inlinestatic

References DMAMCHAN, and hal_read32().

Referenced by hal_cl_dma_cmd_get(), and hal_cl_dma_tid_get().

static void cl_dma_cmd_set ( uint32_t  cmd)
inlinestatic
static uint32_t cl_dma_status_get ( )
inlinestatic
static void cl_dma_status_set ( uint32_t  status)
inlinestatic
static void hal_cl_dma_1d_transfer_push ( uint32_t  cmd,
uint32_t  loc,
uint32_t  ext 
)
inlinestatic

References cl_dma_cmd_set().

static void hal_cl_dma_2d_transfer_push ( uint32_t  cmd,
uint32_t  loc,
uint32_t  ext,
uint32_t  stride,
uint32_t  length 
)
inlinestatic
static uint32_t hal_cl_dma_cmd_make ( uint16_t  len,
uint8_t  dir,
uint8_t  inc,
uint8_t  is2d,
uint8_t  ele,
uint8_t  ile,
uint8_t  ble 
)
inlinestatic
static void hal_cl_dma_flush ( )
inlinestatic
static void hal_cl_dma_tid_free ( uint8_t  tid)
inlinestatic

STATUS.

References cl_dma_status_set().

Referenced by hal_cl_dma_wait().

static uint16_t hal_cl_dma_tid_get ( )
inlinestatic

CMD.

References cl_dma_cmd_get().

static void hal_cl_dma_wait ( uint8_t  tid)
inlinestatic