From 9efee43c0c6142f4b38696c441e9eced9fe90ebf Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期四, 18 七月 2019 18:27:37 +0800
Subject: [PATCH] 基站测距第一版

---
 源码/核心板/Src/main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
index 7c54e8e..3facf8c 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
@@ -33,7 +33,7 @@
 {uint16_t i;
 	Usart1ParseDataCallback = UsartParseDataHandler;
 	parameter_init();
-	deca_sleep(1000);
+	//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);
@@ -72,10 +72,10 @@
 	Program_Init();
 	Dw1000_Init();
   delay_ms(10);	
-#ifdef WORK_MODE_TAG
+//#ifdef WORK_MODE_TAG
 	RTC_Configuration(g_com_map[COM_INTERVAL]*20);
 	tag_sleep_configuraion();
-#endif
+//#endif
 	Dw1000_App_Init();
     /* Loop forever initiating ranging exchanges. */
 	RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
@@ -83,15 +83,15 @@
 	usart_send[1]=0xAA;
 	while(1)
 	{
-#ifdef WORK_MODE_TAG
 	if(g_start_send_flag)
 	{
 		g_start_send_flag = 0;
+		
 		Tag_App();
 	}
 //	UART_CheckReceive();
 	//PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);	
-#else 
+#ifdef WORK_MODE_ANCHOR
 		Anchor_App();
 #endif
 

--
Gitblit v1.9.3