From ee1d1bd0c2c944643596af85b935a128db847117 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 29 Sep 2023 00:37:20 +0200 Subject: decoder seems to be working, but encoder looks a bit borked. --- driver_fw/src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver_fw/src') diff --git a/driver_fw/src/main.c b/driver_fw/src/main.c index a2adeb1..52b4a4d 100644 --- a/driver_fw/src/main.c +++ b/driver_fw/src/main.c @@ -20,7 +20,7 @@ static int tx_datagram[33] = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa}; */ - -K28_0, + -K28_1, 0x00, 0xff, 0xAA, 0x55, 0xfe, 0x18, 0xcc, 0x10, 0x00, 0xff, 0xAA, 0x55, 0xfe, 0x18, 0xcc, 0x10, 0x00, 0xff, 0xAA, 0x55, 0xfe, 0x18, 0xcc, 0x10, @@ -195,8 +195,8 @@ void dma_tx_constant(size_t table_size, uint16_t constant) { tx_constant[0] = constant; tx_constant[1] = constant; - abhängig von $n$ DMA1_Channel1->CCR = 0; DMA1_Channel1->CCR = (1<CCR = 0; + DMA1_Channel1->CCR = (1<CNDTR = table_size; DMA1_Channel1->CMAR = (uint32_t)&tx_constant; DMA1_Channel1->CCR |= DMA_CCR_EN; -- cgit