pin_config.c
@@ -53,7 +53,7 @@
//    io_pin_mux_set(IO_PIN_9, IO_FUNC4);
   
      // UART1 RX/TX GPS端口
      io_pin_mux_set(IO_PIN_14, IO_FUNC4);
   io_pin_mux_set(IO_PIN_14, IO_FUNC4);
    io_pin_mux_set(IO_PIN_13, IO_FUNC4);
    // Single ADC, If IO0 is set to negative input, the positive input is Vref, and vice versa
    io_pin_mux_set(IO_PIN_0, IO_FUNC1);
@@ -61,13 +61,13 @@
}
void uart1_change_from_gps_to_debug(void)
{
io_pin_mux_set(IO_PIN_14, IO_FUNC0);//把原先uart变为普通GPIO
io_pin_mux_set(IO_PIN_13, IO_FUNC0);
uart_close(UART_ID1);//解绑原来串口1
// UART1 RX/TX已修改复用引脚为ADC留出空间调试串口
io_pin_mux_set(IO_PIN_10,IO_FUNC4);
io_pin_mux_set(IO_PIN_9,IO_FUNC4);
uart_open(UART_ID1, &test_uart_cfg);
    io_pin_mux_set(IO_PIN_14, IO_FUNC0);//把原先uart变为普通GPIO
    io_pin_mux_set(IO_PIN_13, IO_FUNC0);
    uart_close(UART_ID1);//解绑原来串口1
    // UART1 RX/TX已修改复用引脚为ADC留出空间调试串口
    io_pin_mux_set(IO_PIN_10,IO_FUNC4);
    io_pin_mux_set(IO_PIN_9,IO_FUNC4);
    uart_open(UART_ID1, &test_uart_cfg);
}
void uart1_change_from_debug_to_gps(void)