| | |
| | | // UART0 TX/RX |
| | | io_pin_mux_set(IO_PIN_5, IO_FUNC4); |
| | | io_pin_mux_set(IO_PIN_6, IO_FUNC4); |
| | | |
| | | |
| | | // // UART1 TX/RX已修改复用引脚为ADC留出空间调试串口 |
| | | io_pin_mux_set(IO_PIN_1, IO_FUNC4); |
| | | io_pin_mux_set(IO_PIN_13, IO_FUNC4);//变为控制串口脚 |
| | | io_pin_mux_set(IO_PIN_14, IO_FUNC4); |
| | | |
| | | //开启pca中断输入 |
| | | io_pin_mux_set(IO_PIN_17, IO_FUNC0); |
| | | // //开启pca中断输入 |
| | | // io_pin_mux_set(IO_PIN_17, IO_FUNC0); |
| | | // // UART1 RX/TX GPS端口 |
| | | // io_pin_mux_set(IO_PIN_14, IO_FUNC4); |
| | | // io_pin_mux_set(IO_PIN_13, IO_FUNC4); |
| | |
| | | // 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); |
| | | // io_pin_mux_set(IO_PIN_0, IO_FUNC1); |
| | | // io_pull_set(IO_PIN_0, IO_HIGH_Z, IO_PULL_UP_NONE); |
| | | |
| | | //PA控制引脚开启 |
| | | io_pin_mux_set(IO_PIN_9, IO_FUNC6); |