Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dma_stm32.h File Reference

Go to the source code of this file.

Macros

#define STM32_DMA_HAL_OVERRIDE   0x7F
 
#define STM32_DMA_STREAM_OFFSET   1
 
#define STM32_DMA_SLOT(id, dir, slot)
 
#define STM32_DMA_SLOT_BY_IDX(id, idx, slot)
 
#define STM32_DMA_FEATURES(id, dir)
 
#define STM32_DMA_CTLR(id, dir)
 
#define STM32_DMA_CHANNEL_CONFIG(id, dir)
 
#define STM32_DMA_CHANNEL_CONFIG_BY_IDX(id, idx)
 
#define STM32_DMA_CONFIG_DIRECTION(config)
 
#define STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC(config)
 
#define STM32_DMA_CONFIG_MEMORY_ADDR_INC(config)
 
#define STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE(config)
 
#define STM32_DMA_CONFIG_MEMORY_DATA_SIZE(config)
 
#define STM32_DMA_CONFIG_PERIPHERAL_INC_FIXED(config)
 
#define STM32_DMA_CONFIG_PRIORITY(config)
 
#define STM32_DMA_FEATURES_FIFO_THRESHOLD(features)
 

Macro Definition Documentation

◆ STM32_DMA_CHANNEL_CONFIG

#define STM32_DMA_CHANNEL_CONFIG ( id,
dir )
Value:
DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
#define DT_INST_DMAS_CELL_BY_NAME(inst, name, cell)
Get a DT_DRV_COMPAT instance's DMA specifier's cell value by name.
Definition dma.h:232

◆ STM32_DMA_CHANNEL_CONFIG_BY_IDX

#define STM32_DMA_CHANNEL_CONFIG_BY_IDX ( id,
idx )
Value:
DT_INST_DMAS_CELL_BY_IDX(id, idx, channel_config)
#define DT_INST_DMAS_CELL_BY_IDX(inst, idx, cell)
Get a DT_DRV_COMPAT instance's DMA specifier's cell value at an index.
Definition dma.h:176

◆ STM32_DMA_CONFIG_DIRECTION

#define STM32_DMA_CONFIG_DIRECTION ( config)
Value:
((config >> 6) & 0x3)

◆ STM32_DMA_CONFIG_MEMORY_ADDR_INC

#define STM32_DMA_CONFIG_MEMORY_ADDR_INC ( config)
Value:
((config >> 10) & 0x1)

◆ STM32_DMA_CONFIG_MEMORY_DATA_SIZE

#define STM32_DMA_CONFIG_MEMORY_DATA_SIZE ( config)
Value:
(1 << ((config >> 13) & 0x3))

◆ STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC

#define STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC ( config)
Value:
((config >> 9) & 0x1)

◆ STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE

#define STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE ( config)
Value:
(1 << ((config >> 11) & 0x3))

◆ STM32_DMA_CONFIG_PERIPHERAL_INC_FIXED

#define STM32_DMA_CONFIG_PERIPHERAL_INC_FIXED ( config)
Value:
((config >> 15) & 0x1)

◆ STM32_DMA_CONFIG_PRIORITY

#define STM32_DMA_CONFIG_PRIORITY ( config)
Value:
((config >> 16) & 0x3)

◆ STM32_DMA_CTLR

#define STM32_DMA_CTLR ( id,
dir )
Value:
#define DT_INST_DMAS_CTLR_BY_NAME(inst, name)
Get the node identifier for the DMA controller from a DT_DRV_COMPAT instance's dmas property by name.
Definition dma.h:114

◆ STM32_DMA_FEATURES

#define STM32_DMA_FEATURES ( id,
dir )
Value:
DT_INST_DMAS_CELL_BY_NAME(id, dir, features)

◆ STM32_DMA_FEATURES_FIFO_THRESHOLD

#define STM32_DMA_FEATURES_FIFO_THRESHOLD ( features)
Value:
0

◆ STM32_DMA_HAL_OVERRIDE

#define STM32_DMA_HAL_OVERRIDE   0x7F

◆ STM32_DMA_SLOT

#define STM32_DMA_SLOT ( id,
dir,
slot )
Value:

◆ STM32_DMA_SLOT_BY_IDX

#define STM32_DMA_SLOT_BY_IDX ( id,
idx,
slot )
Value:

◆ STM32_DMA_STREAM_OFFSET

#define STM32_DMA_STREAM_OFFSET   1