Skip to content

Commit 3deb564

Browse files
committed
Fix F031 Serial Output
1 parent d9cd978 commit 3deb564

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Mcu/f031/Src/peripherals.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// PERIPHERAL SETUP
99

1010
#include "peripherals.h"
11-
11+
#include "serial_telemetry.h"
1212
#include "ADC.h"
1313
#include "targets.h"
1414

@@ -27,6 +27,9 @@ void initCorePeripherals(void)
2727
MX_TIM17_Init();
2828
TEN_KHZ_Timer_Init();
2929
UN_TIM_Init();
30+
#ifdef USE_SERIAL_TELEMETRY
31+
telem_UART_Init();
32+
#endif
3033
}
3134

3235
void initAfterJump()

Mcu/f031/Src/serial_telemetry.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ void telem_UART_Init(void)
7878
}
7979

8080
void send_telem_DMA()
81-
{ // set data length and enable channel to start transfer
81+
{
82+
LL_DMA_DisableChannel(DMA1, LL_DMA_CHANNEL_4);
8283
LL_USART_SetTransferDirection(USART1, LL_USART_DIRECTION_TX);
83-
// GPIOB->OTYPER &= 0 << 6;
8484
LL_DMA_SetDataLength(DMA1, LL_DMA_CHANNEL_4, nbDataToTransmit);
8585
LL_USART_EnableDMAReq_TX(USART1);
8686

0 commit comments

Comments
 (0)