From 666fcae60bab1abab0c5c4733c1b163f0353b08b Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期三, 11 九月 2024 10:17:18 +0800 Subject: [PATCH] V1.11版本,有对测距错误逻辑计数有更改和上报心跳更改为用户上报心跳一分钟 --- pin_config.c | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pin_config.c b/pin_config.c index 0c3feb9..5a3852f 100644 --- a/pin_config.c +++ b/pin_config.c @@ -53,9 +53,18 @@ 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); -- Gitblit v1.9.3