| | |
| | | #else |
| | | |
| | | spi_init(); |
| | | // 模式判断脚和spi nrst脚初始化 |
| | | // // 模式判断脚和spi nrst脚初始化 |
| | | board_mode_pin_init(); |
| | | Program_Init(); |
| | | // board_led_on(BOARD_LED_1); |
| | | #endif |
| | | Board_LORA_NVIC_Init(Lora_irq_handler); |
| | | board_configure(); |
| | | // board_configure(); |
| | | } |
| | | |
| | | void app_process_handle(uint8_t msg_id, const void *param) |
| | |
| | | // Disable watchdog timer |
| | | wdt_close(WDT_ID0); |
| | | LOG_INFO(TRACE_MODULE_APP, "UCI FiRa example\r\n"); |
| | | //delay_ms(300);//使log打印完毕 |
| | | // delay_ms(300); |
| | | // LOG_INFO(TRACE_MODULE_APP, "进入休眠模式\r\n");//测试 |
| | | // power_init(); |
| | | // mcu_deep_sleep(); |
| | | if(gpio_pin_get_val(SLEEP_PIN)) |
| | | { |
| | | if(gpio_pin_get_val(MODE_CHANGE_PIN))//记得改回来与正式的相反 |