新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > STM32學習記錄16 ucosii+UCGUI

        STM32學習記錄16 ucosii+UCGUI

        作者: 時間:2016-11-13 來源:網絡 收藏
        主要介紹下UCGUI的修改:
        1:GUI_X_ucos.c文件夾,第80行,修改為:
        /*
        *********************************************************************************************************
        * GUI_X_ExecIdle()
        *********************************************************************************************************
        */
        void GUI_X_ExecIdle (void)
        {
        // OS_X_Delay(1);
        OSTimeDly(50);//自己修改的
        }
        2:GUI_X_ucos.c最后添加以下函數,從GUI_X.c文件拷貝的,工程中不需要添加GUI_X
        //下面是從GUI_X拷貝的
        /*********************************************************************
        *
        * Logging: OS dependent
        Note:
        Logging is used in higher debug levels only. The typical target
        build does not use logging and does therefor not require any of
        the logging routines below. For a release build without logging
        the routines below may be eliminated to save some space.
        (If the linker is not function aware and eliminates unreferenced
        functions automatically)
        */
        void GUI_X_Log (const char *s) { GUI_USE_PARA(s); }
        void GUI_X_Warn (const char *s) { GUI_USE_PARA(s); }
        void GUI_X_ErrorOut(const char *s) { GUI_USE_PARA(s); }
        工程文件截圖如下:


        評論


        技術專區

        關閉
        主站蜘蛛池模板: 安康市| 南投市| 曲靖市| 岐山县| 余庆县| 双城市| 上林县| 高碑店市| 辉南县| 无极县| 德州市| 南漳县| 金塔县| 阿克| 丹东市| 新民市| 勃利县| 长丰县| 尤溪县| 松江区| 中超| 夏河县| 赤壁市| 莫力| 巴南区| 大余县| 赤水市| 宿迁市| 三原县| 南靖县| 日土县| 柳林县| 泸定县| 望奎县| 茌平县| 巫溪县| 黔西县| 万源市| 通渭县| 酒泉市| 华蓥市|