Skip to content

Commit d974fb2

Browse files
committed
feat(uart): debug configured in half duplex mode
Only TX pin is required. Signed-off-by: Frederic Pillon <[email protected]>
1 parent c774ab8 commit d974fb2

File tree

1 file changed

+1
-2
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+1
-2
lines changed

libraries/SrcWrapper/src/stm32/uart.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -686,13 +686,12 @@ void uart_config_lowpower(serial_t *obj)
686686
void uart_debug_init(void)
687687
{
688688
if (DEBUG_UART != NP) {
689-
serial_debug.pin_rx = pinmap_pin(DEBUG_UART, PinMap_UART_RX);
690689
#if defined(DEBUG_PINNAME_TX)
691690
serial_debug.pin_tx = DEBUG_PINNAME_TX;
692691
#else
693692
serial_debug.pin_tx = pinmap_pin(DEBUG_UART, PinMap_UART_TX);
694693
#endif
695-
694+
/* serial_debug.pin_rx set by default to NC to configure in half duplex mode */
696695
uart_init(&serial_debug, DEBUG_UART_BAUDRATE, UART_WORDLENGTH_8B, UART_PARITY_NONE, UART_STOPBITS_1);
697696
}
698697
}

0 commit comments

Comments
 (0)