aboutsummaryrefslogtreecommitdiff
path: root/driver_fw
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-09-29 00:37:20 +0200
committerjaseg <git@jaseg.de>2023-09-29 00:37:20 +0200
commitee1d1bd0c2c944643596af85b935a128db847117 (patch)
tree454825cd462f9e640e717334710358b9caa3d7dc /driver_fw
parent85e6e19af9e97351f408bacc01fdee92f4e19903 (diff)
download8seg-ee1d1bd0c2c944643596af85b935a128db847117.tar.gz
8seg-ee1d1bd0c2c944643596af85b935a128db847117.tar.bz2
8seg-ee1d1bd0c2c944643596af85b935a128db847117.zip
decoder seems to be working, but encoder looks a bit borked.
Diffstat (limited to 'driver_fw')
-rw-r--r--driver_fw/src/main.c6
1 files changed, 3 insertions, 3 deletions
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<<DMA_CCR_MSIZE_Pos) | (1<<DMA_CCR_PSIZE_Pos) |
- DMA_CCR_DIR | DMA_CCR_TCIE;
+ DMA1_Channel1->CCR = 0;
+ DMA1_Channel1->CCR = (1<<DMA_CCR_MSIZE_Pos) | (1<<DMA_CCR_PSIZE_Pos) | DMA_CCR_DIR | DMA_CCR_TCIE;
DMA1_Channel1->CNDTR = table_size;
DMA1_Channel1->CMAR = (uint32_t)&tx_constant;
DMA1_Channel1->CCR |= DMA_CCR_EN;