You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.4 KiB

2 months ago
/******************************************************************************
(C), 2018-2099, Radkil
******************************************************************************
: BHBF.c
2 months ago
: 稿
: radkil
: 202668
:
:
:
1. : 202668
: radkil
:
******************************************************************************/
#include "BHBF.h"
2 months ago
#include "common.h"
#include "task.h"
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
GV_define GV = {0};
2 months ago
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
GV_define *GetGV(void)
2 months ago
{
static GV_define tmpGV = {0};
2 months ago
RD_MEMSET(&tmpGV, 0, sizeof(tmpGV));
RD_MEMCPY(&tmpGV, &GV, sizeof(GV_define));
2 months ago
return &tmpGV;
}
void SetGV(GV_define *_pGV)
2 months ago
{
RD_MEMCPY(&GV, _pGV, sizeof(GV_define));
2 months ago
}
void GF_FsmStart(GF_CMD GFCmd)
{
}
void GF_Dispatch(void *argument)
{
while(1)
{
//GF_CMD GFCmd = MK32_Task(GV.m_iWorkMode);
GF_FsmStart(0);
2 months ago
}
}
void GF_Init(void)
{
// const osThreadAttr_t GF_Dispatch_attributes = {
// .name = "GF_Task",
// .stack_size = 1024,
// .priority = (osPriority_t) osPriorityRealtime1,
// };
// (void)osThreadNew(GF_Dispatch, NULL, &GF_Dispatch_attributes);
2 months ago
}