/********************************************************************* * * GUI_Init * * Purpose: * Init of GUI internal data structures & variables */ int GUI_Init(void) { int r; GUI_DEBUG_LOG("\nGUI_Init()"); /* Init system wide globals first */ GUI_DecChar = '.'; GUI_X_Init(); /* Init context */ _InitContext(&GUI_Context); GUITASK_INIT(); r = LCD_Init(); #if GUI_WINSUPPORT WM_Init(); #endif GUITASK_COPY_CONTEXT(); #if defined(GUI_TRIAL_VERSION) #if GUI_TRIAL_VERSION GUI_DispString( "This software\n" "contains an eval-\n" "uC/GUI build.\n" "\n" "A license is\n" "required to use\n" "it in a product.\n\n" "www.segger.com\n"); GUI_GotoXY(0, 0); GUI_X_Delay(1000); GUI_Clear(); #endif #endif return r; }
int GUI_Init(void) { int r; GUI_DEBUG_LOG("\nGUI_Init()"); /* Init system wide globals first */ GUI_DecChar = '.'; GUI_X_Init(); /* Init context */ _InitContext(&GUI_Context); GUITASK_INIT(); r = LCD_Init(); #if GUI_WINSUPPORT WM_Init(); #endif return r; }