-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.c.orig
37 lines (25 loc) · 937 Bytes
/
Main.c.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*------------------------------------------------------------------*-
Main.c (v1.00)
-*------------------------------------------------------------------*/
#include "Main.h"
#include "2_01_12h.h"
#include "ReadKeyBoard.h"
/* ............................................................... */
/* ............................................................... */
void main(void)
{
// Set up the scheduler 设置调度器
hSCH_Init_T2();
LED_Short_Init();
hSCH_Add_Task(LED_Short_Update, 0, 1000, 0);
hSCH_Add_Task(LED_Long_Update, 0, 20000, 1);
// Start the scheduler
hSCH_Start();
while(1)
{
hSCH_Dispatch_Tasks();
}
}
/*------------------------------------------------------------------*-
---- END OF FILE -------------------------------------------------
-*------------------------------------------------------------------*/