| | |
| | | #include <stdlib.h> |
| | | #include <Lora.h> |
| | | #include "radio.h" |
| | | #include "dps310.h" |
| | | #include "dw_mbx_tag.h" |
| | | #define NSH1 0x0001 |
| | | #define GP 0x0002 |
| | |
| | | //deca_sleep(1000); |
| | | g_com_map[VERSION] = (1<<8)|3; |
| | | // g_com_map[DEV_ID]=1158; |
| | | g_com_map[GROUP_ID]=5; |
| | | g_com_map[GROUP_ID]=0; |
| | | // g_com_map[COM_INTERVAL] = 1000; |
| | | if(g_com_map[COM_INTERVAL]<1000) |
| | | { |
| | |
| | | /* MCU Configuration--------------------------------------------------------*/ |
| | | |
| | | /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ |
| | | |
| | | HAL_Init(); |
| | | |
| | | /* USER CODE BEGIN Init */ |
| | |
| | | HAL_UART_Receive_IT(&hlpuart1, (uint8_t *)GPSRxBuffer, 1); |
| | | HAL_GPIO_WritePin(GPIOA, GPIO_PIN_2, GPIO_PIN_SET); //开GPS电源 |
| | | LoraInit(); |
| | | BarInit(); |
| | | // Delay_Ms(1000); |
| | | // HAL_UART_Transmit(&hlpuart1,Close_RMC,22,1000); |
| | | // HAL_UART_Transmit(&hlpuart1,Close_GSA,22,1000); |