| | |
| | | io_pin_mux_set(LORA_CLK, IO_FUNC2); |
| | | io_pin_mux_set(LORA_IRQ, IO_FUNC0); |
| | | io_pin_mux_set(LORA_NRST, IO_FUNC0); |
| | | // io_pull_set(IO_PIN_11, IO_HIGH_Z, IO_PULL_UP_NONE); |
| | | // io_pull_set(IO_PIN_12, IO_HIGH_Z, IO_PULL_UP_NONE); |
| | | // io_pull_set(IO_PIN_13, IO_HIGH_Z, IO_PULL_UP_NONE); |
| | | //初始化lora引脚 |
| | | //新增上拉电阻 |
| | | io_pull_set(LORA_CS, IO_PULL_UP, IO_PULL_UP_LEVEL4); |
| | | //io_pull_set(LORA_MOSI, IO_PULL_UP, IO_PULL_UP_LEVEL2);//功耗有影响 |
| | | io_pull_set(LORA_MISO, IO_PULL_UP, IO_PULL_UP_LEVEL4); |
| | | //io_pull_set(LORA_CLK, IO_PULL_UP, IO_PULL_UP_LEVEL2);//功耗有影响 |
| | | io_pull_set(LORA_NRST, IO_PULL_UP, IO_PULL_UP_LEVEL4); |
| | | // //初始化lora引脚 |
| | | // UART0 TX/RX |
| | | io_pin_mux_set(IO_PIN_5, IO_FUNC4); |
| | | io_pin_mux_set(IO_PIN_6, IO_FUNC4); |