| | |
| | | io_pin_mux_set(IO_PIN_10, IO_FUNC4); |
| | | 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_13, IO_FUNC4); |
| | | // // UART1 RX/TX GPS端口 |
| | | // io_pin_mux_set(IO_PIN_14, IO_FUNC4); |
| | | // io_pin_mux_set(IO_PIN_13, IO_FUNC4); |
| | | |
| | | // //测试 |
| | | // io_pin_mux_set(IO_PIN_14, IO_FUNC0); |
| | | // io_pull_set(IO_PIN_14 , IO_HIGH_Z, IO_PULL_UP_NONE); |
| | | // gpio_pin_set_dir(IO_PIN_14 ,GPIO_DIR_IN, 0); |
| | | // io_pin_mux_set(IO_PIN_13, IO_FUNC0); |
| | | // io_pull_set(IO_PIN_13 , IO_HIGH_Z, IO_PULL_UP_NONE); |
| | | // gpio_pin_set_dir(IO_PIN_13 ,GPIO_DIR_IN, 0); |
| | | |
| | | // 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); |
| | | io_pull_set(IO_PIN_0, IO_HIGH_Z, IO_PULL_UP_NONE); |