optical/SEW-EXA1/Users/App/apptasks.c

56 lines
941 B
C
Raw Permalink Normal View History

2025-09-04 01:45:08 +00:00
//-------------------------------------------------------------------------------
// File Name: sewhead.c
// Brief:
// Version: 1.0.0
// Create Date: 2024/10/17
// Create by: W.X
// Copyright:
// TIANJIN GETONAGAIN TECHNOLOGY CO., LIMITED
// All rights reserved.
//
// Modify by: W.X
// Modify Date: 2024/10/17
//-------------------------------------------------------------------------------
#include "apptasks.h"
#if (CUR_CORE_BOARD == CORE_BOARD_APP)
#include "trigger.h"
#include "workctrl.h"
void AppMainTask(void)
{
InitTrigger(); // <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
InitWorkCtrl(); // <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
do
{
TriggerTask(); //
WorkCtrlTask();
#if (0) // <20><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD>ٶ<EFBFBD>
static u32 timer = 0;
static u32 temp;
static int runcount = 0;
runcount++;
temp = GetMsSoftTimer();
if (temp - timer >= 1000)
{
timer = temp;
printf("run circle = %d/s\r\n", runcount);
runcount = 0;
}
#endif
}while(1);
}
#endif