aboutsummaryrefslogtreecommitdiff
path: root/driver_fw/src
diff options
context:
space:
mode:
Diffstat (limited to 'driver_fw/src')
-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;