main.c

来自「Keil uVision2下用C语言开发的牛奶巴斯德杀菌嵌入式系统代码」· C语言 代码 · 共 51 行

C
51
字号
/*------------------------------------------------------------------*-

   Main.c (v1.00)

  ------------------------------------------------------------------

   Milk monitoring example.


   COPYRIGHT
   ---------

   This code is associated with the book:

   EMBEDDED C by Michael J. Pont 
   [Pearson Education, 2002: ISBN: 0-201-79523-X].

   This code is copyright (c) 2001 by Michael J. Pont.
 
   See book for copyright details and other information.

-*------------------------------------------------------------------*/

#include "Main.H"
#include "Port.H"
#include "Simple_EOS.H"
#include "Bargraph.H"

#include "Pulse_Count.H"

/* --------------------------------------------------------------- */

void main(void)
   {
   PULSE_COUNT_Init();
   BARGRAPH_Init();

   // Set up simple EOS (30ms tick interval)
   sEOS_Init_Timer2(30);   
   
   while(1) // Super Loop
      {
      // Enter idle mode to save power
      sEOS_Go_To_Sleep();  
      }
   }

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

⌨️ 快捷键说明

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