File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 8
8
// PERIPHERAL SETUP
9
9
10
10
#include "peripherals.h"
11
-
11
+ #include "serial_telemetry.h"
12
12
#include "ADC.h"
13
13
#include "targets.h"
14
14
@@ -27,6 +27,9 @@ void initCorePeripherals(void)
27
27
MX_TIM17_Init ();
28
28
TEN_KHZ_Timer_Init ();
29
29
UN_TIM_Init ();
30
+ #ifdef USE_SERIAL_TELEMETRY
31
+ telem_UART_Init ();
32
+ #endif
30
33
}
31
34
32
35
void initAfterJump ()
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ void telem_UART_Init(void)
78
78
}
79
79
80
80
void send_telem_DMA ()
81
- { // set data length and enable channel to start transfer
81
+ {
82
+ LL_DMA_DisableChannel (DMA1 , LL_DMA_CHANNEL_4 );
82
83
LL_USART_SetTransferDirection (USART1 , LL_USART_DIRECTION_TX );
83
- // GPIOB->OTYPER &= 0 << 6;
84
84
LL_DMA_SetDataLength (DMA1 , LL_DMA_CHANNEL_4 , nbDataToTransmit );
85
85
LL_USART_EnableDMAReq_TX (USART1 );
86
86
You can’t perform that action at this time.
0 commit comments