|
|
|
@ -19,8 +19,6 @@ |
|
|
|
#include "BHBF.h" |
|
|
|
#include "common.h" |
|
|
|
#include "msg_center.h" |
|
|
|
#include "bsp_EEPROM.h" |
|
|
|
#include "bsp_CV.pb.h" |
|
|
|
|
|
|
|
/*----------------------------------------------*
|
|
|
|
* 外部变量说明 * |
|
|
|
@ -38,7 +36,6 @@ |
|
|
|
* 全局变量 * |
|
|
|
*----------------------------------------------*/ |
|
|
|
static uint32_t g_uiRBcoreModuleID = 0; |
|
|
|
static CV_struct_define CV = {0}; |
|
|
|
|
|
|
|
/*----------------------------------------------*
|
|
|
|
* 模块级变量 * |
|
|
|
@ -92,12 +89,10 @@ static void RBcore_ModuleHandler(const Msg_t *pstMsg) |
|
|
|
|
|
|
|
void RBcore_Task(void *argument) |
|
|
|
{ |
|
|
|
GF_BSP_EEPROM_ReadBytes((uint8_t *)&CV, GF_BSP_EEPROM_CV_struct_define_Start_Address, sizeof(CV_struct_define)); |
|
|
|
while(1) |
|
|
|
{ |
|
|
|
// 处理消息
|
|
|
|
MsgCenter_ProcessWait(g_uiRBcoreModuleID, 2); |
|
|
|
MsgCenter_SendTo(MODULE_NAME_CUSTOM, CUSTOM_GET_CV, (void *)&CV, sizeof(CV)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|