| | |
| | | #include "stm32f10x.h" |
| | | #include "dw_app.h" |
| | | |
| | | #define NEWBOARD |
| | | |
| | | #if defined(NEWBOARD) && defined(WORK_MODE_TAG) |
| | | #define LED0_PIN GPIO_Pin_12 |
| | |
| | | g_flag_Taggetdist[tag_id_recv]=0; |
| | | #ifdef HEX_OUTPUT |
| | | usart_send[2] = frame_seq_nb; |
| | | usart_send[6] = g_com_map[DEV_ID]; |
| | | usart_send[8] = tag_id_recv; |
| | | usart_send[6] = tag_id_recv; |
| | | usart_send[8] = g_com_map[DEV_ID]; |
| | | hex_dist = dist_cm; |
| | | memcpy(&usart_send[10],&hex_dist,4); |
| | | checksum = Checksum_u16(&usart_send[2],12); |
| | |
| | | |
| | | #include "stm32f10x.h" |
| | | #include "filters.h" |
| | | #define WORK_MODE_TAG |
| | | //#define WORK_MODE_ANCHOR |
| | | |
| | | //#define NEWBOARD |
| | | |
| | | //#define WORK_MODE_TAG |
| | | #define WORK_MODE_ANCHOR |
| | | |
| | | |
| | | #define HEX_OUTPUT |
| | | #define REPOET_ANC_NUM 4 |
| | | #define TOTAL_TAG_NUM 200 |
| | |
| | | g_com_map[ALARM_DISTANCE2] = 600; //榛樿鎶ヨ璺濈50cm |
| | | g_com_map[ALARM_DISTANCE3] = 900; //榛樿鎶ヨ璺濈50cm |
| | | g_com_map[ALARM_DEV] = 1; |
| | | g_com_map[DEV_ID] =4;//DEFAULT_DEV_ID; //榛樿璁惧ID |
| | | g_com_map[DEV_ID] =1;//DEFAULT_DEV_ID; //榛樿璁惧ID |
| | | g_com_map[COM_INTERVAL]=1000; |
| | | save_com_map_to_flash(); |
| | | } |