Add define to move uart on debug header even when compiled in release mode

This commit is contained in:
2020-11-01 21:22:28 +01:00
parent 88360fe307
commit 32c8e2e937
4 changed files with 8 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ static inline void uart_gpio_config(void)
* else the Pins on the DIGIO header are configured in the digio module
*/
#ifdef DEBUGBUILD
#if defined(DEBUGBUILD) || defined(UART_ON_DEBUG_HEADER)
rcc_manager_enable_clock(&RCC->AHB1ENR, BITMASK_TO_BITNO(SHELL_UART_PORT_RCC_MASK));
SHELL_UART_PORT->MODER &= MODER_DELETE(SHELL_UART_TX_PIN) & MODER_DELETE(SHELL_UART_RX_PIN);
SHELL_UART_PORT->MODER |= ALTFUNC(SHELL_UART_RX_PIN) | ALTFUNC(SHELL_UART_TX_PIN);