Skip to content

Commit 3818a01

Browse files
committed
Temporarily disable uart dma
1 parent 8446402 commit 3818a01

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

inc/libsc/k60/uart_device.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ class UartDevice
5353
* size in bytes will vary
5454
*/
5555
uint8_t tx_buf_size = 14;
56-
/**
57-
* (Experimental) If value != -1, DMA will be enabled for this UART's Tx,
58-
* using the DMA channel specified here
59-
*/
60-
uint8_t tx_dma_channel = static_cast<uint8_t>(-1);
6156

6257
/**
6358
* The listener for Rx events. Return true if the listener has consumed

src/libsc/k60/uart_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ UartDevice::UartDevice(const Initializer &initializer)
329329
m_rx_isr(initializer.config.rx_isr),
330330
m_tx_buf(new TxBuffer(initializer.config.tx_buf_size)),
331331
m_is_tx_idle(true),
332-
m_tx_dma_channel(initializer.config.tx_dma_channel),
332+
//m_tx_dma_channel(initializer.config.tx_dma_channel),
333333
m_dma(nullptr),
334334
m_uart(nullptr)
335335
{

0 commit comments

Comments
 (0)