⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 Keil uVision2下用C语言开发的洗衣机嵌入式系统代码
💻 C
字号:
/*------------------------------------------------------------------*-

   Main.c (v1.00)

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

   Using sEOS to control a washing machine (demo) - see Chapter 8.


   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 "Washer.H"

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

void main(void)
   {
   // Prepare for washing task
   WASHER_Init();

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

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

⌨️ 快捷键说明

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