zhyinch
2018-09-20 a268b9fa1c215ae353de26fb137665232381debe
源码/核心板/Src/main.c
@@ -19,6 +19,9 @@
   SystemInit();
   Nvic_Init();
   Systick_Init();
#ifdef WORK_MODE_TAG
   RTC_Configuration();
#endif
   Led_Init();
   Beep_Init();
   DW_GPIO_Init();
@@ -44,6 +47,7 @@
 *
 * @return none
 */
int main(void)
{
@@ -51,11 +55,24 @@
   Program_Init();
   Dw1000_Init();
#ifdef WORK_MODE_TAG
   tag_sleep_configuraion();
#endif
      g_com_map[DEV_ID]=1;
   Dw1000_App_Init();
    /* Loop forever initiating ranging exchanges. */
   while(1)
   {
#ifdef WORK_MODE_TAG
   if(g_start_send_flag)
   {
      g_start_send_flag = 0;
      Tag_App();
   }
//   UART_CheckReceive();
   RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
   PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);
#else 
      Anchor_App();
#endif