Zephyr API Documentation  3.7.0
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)   DT_INST_DMAS_CELL_BY_NAME(id, dir, slot)
 
#define STM32_DMA_SLOT_BY_IDX(id, idx, slot)   DT_INST_DMAS_CELL_BY_IDX(id, idx, slot)
 
#define STM32_DMA_FEATURES(id, dir)    DT_INST_DMAS_CELL_BY_NAME(id, dir, features)
 
#define STM32_DMA_CTLR(id, dir)    DT_INST_DMAS_CTLR_BY_NAME(id, dir)
 
#define STM32_DMA_CHANNEL_CONFIG(id, dir)    DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)
 
#define STM32_DMA_CHANNEL_CONFIG_BY_IDX(id, idx)    DT_INST_DMAS_CELL_BY_IDX(id, idx, channel_config)
 
#define STM32_DMA_CONFIG_DIRECTION(config)   ((config >> 6) & 0x3)
 
#define STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC(config)   ((config >> 9) & 0x1)
 
#define STM32_DMA_CONFIG_MEMORY_ADDR_INC(config)   ((config >> 10) & 0x1)
 
#define STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE(config)    (1 << ((config >> 11) & 0x3))
 
#define STM32_DMA_CONFIG_MEMORY_DATA_SIZE(config)    (1 << ((config >> 13) & 0x3))
 
#define STM32_DMA_CONFIG_PERIPHERAL_INC_FIXED(config)   ((config >> 15) & 0x1)
 
#define STM32_DMA_CONFIG_PRIORITY(config)   ((config >> 16) & 0x3)
 
#define STM32_DMA_FEATURES_FIFO_THRESHOLD(features)   0
 

Macro Definition Documentation

◆ STM32_DMA_CHANNEL_CONFIG

#define STM32_DMA_CHANNEL_CONFIG (   id,
  dir 
)     DT_INST_DMAS_CELL_BY_NAME(id, dir, channel_config)

◆ STM32_DMA_CHANNEL_CONFIG_BY_IDX

#define STM32_DMA_CHANNEL_CONFIG_BY_IDX (   id,
  idx 
)     DT_INST_DMAS_CELL_BY_IDX(id, idx, channel_config)

◆ STM32_DMA_CONFIG_DIRECTION

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

◆ STM32_DMA_CONFIG_MEMORY_ADDR_INC

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

◆ STM32_DMA_CONFIG_MEMORY_DATA_SIZE

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

◆ STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC

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

◆ STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE

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

◆ STM32_DMA_CONFIG_PERIPHERAL_INC_FIXED

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

◆ STM32_DMA_CONFIG_PRIORITY

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

◆ STM32_DMA_CTLR

#define STM32_DMA_CTLR (   id,
  dir 
)     DT_INST_DMAS_CTLR_BY_NAME(id, dir)

◆ STM32_DMA_FEATURES

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

◆ STM32_DMA_FEATURES_FIFO_THRESHOLD

#define STM32_DMA_FEATURES_FIFO_THRESHOLD (   features)    0

◆ STM32_DMA_HAL_OVERRIDE

#define STM32_DMA_HAL_OVERRIDE   0x7F

◆ STM32_DMA_SLOT

#define STM32_DMA_SLOT (   id,
  dir,
  slot 
)    DT_INST_DMAS_CELL_BY_NAME(id, dir, slot)

◆ STM32_DMA_SLOT_BY_IDX

#define STM32_DMA_SLOT_BY_IDX (   id,
  idx,
  slot 
)    DT_INST_DMAS_CELL_BY_IDX(id, idx, slot)

◆ STM32_DMA_STREAM_OFFSET

#define STM32_DMA_STREAM_OFFSET   1