新手入门
积分 39
金钱 39
注册时间 2016-11-19
在线时间 7 小时
1 金钱
我是个初学者,请教下大家STM32 Motor Control V4.3版本中以下代码什么意思?
#if (LCD_MODE == LCD_FULL)
/* LCD FULL Version */
#define LCDI_Code_Addr VECT_TABLE_BASE + 0x08 /* Vect base + 0x08 */
#define LCDI_Entry_Addr VECT_TABLE_BASE + 0x0C /* Vect base + 0x0C */
/* Check the presence of LCD UI code */
uint32_t* pLCDI_Code = (uint32_t*)(LCDI_Code_Addr);
uint32_t LCDI_Code = *pLCDI_Code;
if (LCDI_Code == 0x1A525D)
{
/* Call LCD UI entry point */
uint32_t* pLCDI_Entry = (uint32_t*)(LCDI_Entry_Addr);
typedef void* const* (*pLCDI_Entry_t) (void* const*);
pLCDI_Entry_t pLCDI_EntryFunc = (pLCDI_Entry_t)(*pLCDI_Entry);
LCD_SetLCDIImportedFunctions((*pLCDI_EntryFunc)(exportedFunctions));
oLCD = (CUI)LCD_NewObject(MC_NULL, MC_NULL);
}
else
{
while (1); /* Error LCDI code not correctly flashed */
}
#endif
//#if (LCD_MODE == LCD_LIGHT)
// /* LCD Vintage */
// oLCD = (CUI)LCDV_NewObject(MC_NULL,MC_NULL);
//#endif
UI_Init(oLCD, bMCNum, oMCIList, oMCTList, pUICfg); /* Init UI and link MC obj */
UI_LCDInit(oLCD, (CUI)oDAC, s_fwVer); /* Initialize object it must be called after UI_Init (See Interface) */
UI_LCDExec(oLCD); /* Shows welcome message */
}
我来回答