STM32 Motor Control

2019-07-20 18:10发布

我是个初学者,请教下大家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 */
  }

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。