fix(t-lite): internal module on targets without TX DMA was not sending at all

This commit is contained in:
Raphael Coeffic
2022-07-04 12:35:03 +02:00
parent 097964147b
commit dae1c77f47
2 changed files with 9 additions and 3 deletions
@@ -74,9 +74,15 @@ static const stm32_usart_t intmoduleUSART = {
.pinInit = &intmoduleUSART_PinDef,
.IRQn = INTMODULE_USART_IRQn,
.IRQ_Prio = INTMODULE_USART_IRQ_PRIORITY,
#if defined(INTMODULE_DMA)
.txDMA = INTMODULE_DMA,
.txDMA_Stream = INTMODULE_DMA_STREAM,
.txDMA_Channel = INTMODULE_DMA_CHANNEL,
#else
.txDMA = nullptr,
.txDMA_Stream = 0,
.txDMA_Channel = 0,
#endif
.rxDMA = nullptr,
.rxDMA_Stream = 0,
.rxDMA_Channel = 0,