Browse Source

修改串口引脚由sdk_config.h配置

master
zhaohe 1 year ago
parent
commit
5d4b797745
  1. 2
      components/libraries/log/src/nrf_log_backend_uart.c

2
components/libraries/log/src/nrf_log_backend_uart.c

@ -58,7 +58,7 @@ uint32_t g_nrf_log_tx_pin = NRF_UART_PSEL_DISCONNECTED;
static void uart_init(bool async_mode)
{
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
config.pseltxd = g_nrf_log_tx_pin;
config.pseltxd = NRF_LOG_BACKEND_UART_TX_PIN;
config.pselrxd = NRF_UART_PSEL_DISCONNECTED;
config.pselcts = NRF_UART_PSEL_DISCONNECTED;
config.pselrts = NRF_UART_PSEL_DISCONNECTED;

Loading…
Cancel
Save