Add support for RX DMA

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:14 +01:00
parent d93cd1ea25
commit 025659ac36
13 changed files with 92 additions and 33 deletions
+3
View File
@@ -47,6 +47,9 @@ struct etx_serial_init {
uint8_t word_length; // = ETX_WordLength_8;
bool rx_enable; // = false;
void* rx_dma_buf;
uint32_t rx_dma_buf_len;
void (*on_receive)(uint8_t data); // = nullptr;
void (*on_error)(); // = nullptr;
};