| | |
| | | #include "stm32f10x_it.h" |
| | | #include "serial_at_cmd_app.h" |
| | | #include "global_param.h" |
| | | |
| | | #include "ADC.h" |
| | | |
| | | |
| | | void Device_Init(void) |
| | |
| | | DW_GPIO_Init(); |
| | | Uart1_Init(); |
| | | Spi_Init(); |
| | | |
| | | ADC_Configuration(); |
| | | |
| | | GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); |
| | | } |
| | |
| | | {uint16_t i; |
| | | Usart1ParseDataCallback = UsartParseDataHandler; |
| | | parameter_init(); |
| | | deca_sleep(1000); |
| | | dev_id = g_com_map[DEV_ID_H]<<16|g_com_map[DEV_ID_L]; |
| | | #ifdef WORK_MODE_TAG |
| | | printf("鏍囩ID: %d .\r\n",dev_id); |
| | |
| | | Tag_App(); |
| | | } |
| | | // UART_CheckReceive(); |
| | | PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI); |
| | | //PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI); |
| | | #else |
| | | Anchor_App(); |
| | | #endif |