| | |
| | | Device_Init(); |
| | | Program_Init(); |
| | | Dw1000_Init(); |
| | | delay_ms(1000); |
| | | delay_ms(10); |
| | | #ifdef WORK_MODE_TAG |
| | | RTC_Configuration(g_com_map[COM_INTERVAL]*20); |
| | | tag_sleep_configuraion(); |
| | |
| | | Dw1000_App_Init(); |
| | | /* Loop forever initiating ranging exchanges. */ |
| | | RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE); |
| | | usart_send[0]=0x55; |
| | | usart_send[1]=0xAA; |
| | | while(1) |
| | | { |
| | | #ifdef WORK_MODE_TAG |
| | |
| | | Tag_App(); |
| | | } |
| | | // UART_CheckReceive(); |
| | | // PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI); |
| | | PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI); |
| | | #else |
| | | Anchor_App(); |
| | | #endif |