display_count.c

来自「Embedded C 这本书的范例光碟程式」· C语言 代码 · 共 31 行

C
31
字号
/*   Display_count.C (v1.00) */

#include "Main.H"
#include "Port.H"

#include "Display_Count.H"

/*
  DISPLAY_COUNT_Init()
  Initialization function for the DISPLAY COUNT library.
*/
void DISPLAY_COUNT_Init(void)
{
   Count_port = 0x00;
}

/*
  DISPLAY_COUNT_Update()
  Simple function to display tByte data (COUNT) 
  on LEDs connected to port (Count_Port)
*/
void DISPLAY_COUNT_Update(const tByte COUNT)
{
   Count_port = COUNT;
} 

/*------------------------------------------------------------------*-
  ---- END OF FILE -------------------------------------------------
-*------------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?