This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HAL_UART_DMA, setup RX by DMA problem



 In Setup of Rx by DMA (_hal_uart_dma.c). I need to increment the destination address by 1 byte,can I know how to increment address by 1 byte

// The destination address is incremented by 1 word after each transfer.
    HAL_DMA_SET_DST_INC( ch, HAL_DMA_DSTINC_1 );

#define HAL_DMA_SET_DST_INC( pDesc, dstInc ) \
  st( \
    pDesc->ctrlB &= ~HAL_DMA_DST_INC; \
    pDesc->ctrlB |= (dstInc << 4); \
  )

In the code above the adress in incremented by 1 word but I need to increment by 1 byte.

any kind of help is appreciable


BR

Timber