drivers: serial: stm32 uart defines dma slot with macro
The STM32_DMA_SLOT macro from include/drivers/dma/dma_stm32.h must be used here, especially for dma of type v2bis. In this case, the dma-cell is not defined and slot is null. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
3aa14676db
commit
744e1dc692
1 changed files with 1 additions and 1 deletions
|
@ -1462,7 +1462,7 @@ static int uart_stm32_pm_control(const struct device *dev,
|
|||
.dma_dev = DEVICE_DT_GET(STM32_DMA_CTLR(index, dir)), \
|
||||
.dma_channel = DT_INST_DMAS_CELL_BY_NAME(index, dir, channel), \
|
||||
.dma_cfg = { \
|
||||
.dma_slot = DT_INST_DMAS_CELL_BY_NAME(index, dir, slot),\
|
||||
.dma_slot = STM32_DMA_SLOT(index, dir, slot),\
|
||||
.channel_direction = STM32_DMA_CONFIG_DIRECTION( \
|
||||
STM32_DMA_CHANNEL_CONFIG(index, dir)),\
|
||||
.channel_priority = STM32_DMA_CONFIG_PRIORITY( \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue