return send_spo2_data_flag;
}
////////////////////////////////////云医链中医测试////////////////////////////////////////////////
+unsigned int yyl_timer=0;
+void YYL_test_timer(void)
+{
+ if(send_yyl_data_flag==2)
+ {
+ if(yyl_timer>=30)
+ {
+ YYL_open();
+ yyl_timer=0;
+ }
+ }
+}
int YYL_test_count = 0;
+
char YYL_test(void)
{
- if(send_yyl_data_flag)//中医
+ if(send_yyl_data_flag==1)//中医
{
yylPFE_OutputData *pOutputData;
yylPFE_OutputData *pOutputData_tmp;
co_printf("%s","\"}\n");
co_printf("YYL_test:printf_len:%d\n",printf_len);
yyl_in_data_len =0;
- }
-
+ ///////关闭//////////
+ pInit_Param.work_mode = WORK_MODE_NONE;
+ vc9202_usr_init(&pInit_Param);
+ send_yyl_data_flag=2;
+ yyl_timer=0;
+ co_printf(" colse\n");
+ }
}
+
+
// YYL_test_count++;
// co_printf("os_msg_post_count:%d YYL_test_count:%d\n",os_msg_post_count,YYL_test_count);
return send_yyl_data_flag;
EMO_test();
BP_test();
}
+ YYL_test_timer();
+
// pmu_port_wakeup_func_set(GPIO_PC7|GPIO_PD4|GPIO_PD5|GPIO_PD6|GPIO_PD7);//GPIO中断
// NVIC_EnableIRQ(PMU_IRQn);
}
unsigned int timer0_count = 0;
extern unsigned int timestamp_d; //秒的时间戳,需要配合RTC使用
extern unsigned int uart0_timer;//判断主机是否在线的超时时间计数
+extern unsigned int yyl_timer;
__attribute__((weak)) __attribute__((section("ram_code"))) void timer0_isr_ram(void)
{
timer_clear_interrupt(TIMER0);
timer0_count=0;
timestamp_d++;
uart0_timer++;
+ yyl_timer++;
//co_printf("timer0_isr_ram:0\r\n");
}
//