#include "app_factory.h"
#include "../../iwdg/bsp/bsp_iwdg.h"

/**
 * @brief: 产测模块线程
 * @param  {void}
 * @return {void}
 * @note: 
 * @see: 
 */
void App_Factory_Task(void)
{
	S_Factory_Data *ps_factory;
	ps_factory = Svc_Factory_Get_Data();
	if(ps_factory->u8FactoryTest == 0)
	{
		return;
	}
	while(1)
	{
		Bsp_Iwdg_Feed();//喂狗<<
		Svc_Pulse_Uart_Recv();
		Svc_Ir_Uart_Recv();
		Svc_Factory_Command_Deal();
		Svc_Factory_Into_Lp();
	}
}

void App_FactoryTest_Task(void)
{
    Bsp_Iwdg_Feed();//喂狗<<
	Svc_Log_Uart_Recv();
	Svc_Factory_Command_Deal();
}