STM32:Keil5下实现电子时钟


利用定时器、外部中断、GUI组件、串口等实现电子时钟
资源截图
代码片段和文件信息
/*
*********************************************************************************************************
*                                                uC/GUI
*                        Universal graphic software for embedded applications
*
*                       (c) Copyright 2002 Micrium Inc. Weston FL
*                       (c) Copyright 2002 SEGGER Microcontroller Systeme GmbH
*
*              礐/GUI is protected by international copyright laws. Knowledge of the
*              source code may not be used to write a similar product. This file may
*              only be used in accordance with a license and should not be redistributed
*              in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File        : GUI_X.C
Purpose     : Config / System dependent externals for GUI
---------------------------END-OF-HEADER------------------------------
*/

#include “GUI.h“
#include “GUI_X.h“

/*********************************************************************
*
*       Global data
*/
volatile int OS_TimeMS;

/*********************************************************************
*
*      Timing:
*                 GUI_X_GetTime()
*                 GUI_X_Delay(int)

  Some timing dependent routines require a GetTime
  and delay function. Default time unit (tick) normally is
  1 ms.
*/

int GUI_X_GetTime(void) { 
  return OS_TimeMS; 
}

void GUI_X_Delay(int ms) { 
  int tEnd = OS_TimeMS + ms;
  while ((tEnd - OS_TimeMS) > 0);
}

/*********************************************************************
*
*       GUI_X_Init()
*
* Note:
*     GUI_X_Init() is called from GUI_Init is a possibility to init
*     some hardware which needs to be up and running before the GUI.
*     If not required leave this routine blank.
*/

void GUI_X_Init(void) {}


/*********************************************************************
*
*       GUI_X_ExecIdle
*
* Note:
*  Called if WM is in idle state
*/

void GUI_X_ExecIdle(void) {}

/*********************************************************************
*
*      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); }

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-05-18 16:59  CLOCK
     目录           0  2017-05-18 16:59  CLOCKCORE
     文件       17273  2010-06-07 10:25  CLOCKCOREcore_cm3.c
     文件       85714  2011-02-09 14:59  CLOCKCOREcore_cm3.h
     文件       15503  2011-03-10 10:52  CLOCKCOREstartup_stm32f10x_hd.s
     文件       12765  2011-03-10 10:52  CLOCKCOREstartup_stm32f10x_md.s
     目录           0  2017-05-18 16:59  CLOCKConfig
     文件        1907  2016-06-20 10:49  CLOCKConfigGUIConf.h
     文件        1226  2004-08-19 08:08  CLOCKConfigGUITouchConf.h
     文件        2756  2004-08-19 08:08  CLOCKConfigGUI_X.c
     文件        7724  2016-06-12 11:42  CLOCKConfigLCDConf.h
     文件          80  2005-09-07 23:14  CLOCKConfigvssver.scc
     目录           0  2017-05-18 16:59  CLOCKGUI
     目录           0  2017-05-18 16:59  CLOCKGUIAntiAlias
     文件         242  2004-08-18 08:41  CLOCKGUIAntiAliasCCGUIAntiAlias.bat
     文件        2838  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAAArc.c
     文件        5489  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAAChar.c
     文件        6814  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAAChar2.c
     文件        4503  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAAChar4.c
     文件        4008  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAACircle.c
     文件        8388  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAALib.c
     文件        3369  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAALine.c
     文件        3584  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAAPoly.c
     文件        2092  2004-08-19 08:08  CLOCKGUIAntiAliasGUIAAPolyOut.c
     文件         192  2005-09-07 23:14  CLOCKGUIAntiAliasvssver.scc
     目录           0  2017-05-18 16:59  CLOCKGUIConvertColor
     文件         486  2004-08-18 08:41  CLOCKGUIConvertColorCCConvertColor.bat
     文件        3065  2004-08-19 08:08  CLOCKGUIConvertColorLCDP111.c
     文件        3103  2004-08-19 08:08  CLOCKGUIConvertColorLCDP222.c
     文件        2185  2004-08-19 08:08  CLOCKGUIConvertColorLCDP233.c
     文件        2185  2004-08-19 08:08  CLOCKGUIConvertColorLCDP323.c
............此处省略2858个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)