- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 3kb
- Update:
- 2014-07-07
- Downloads:
- 1 Times
- Uploaded by:
- 高飞
Description: Speaking on a cumulative timer interrupt frequency using LED lights flashing, this example also shows my first real full procedural framework:
With a switch statement to achieve a state machine, plus a timer interrupt. This framework may seem simple, actually so simple. I do all the development projects are based on this simple framework,
But it is very easy to use. Previous section only a single task LED lights flashing, this festival started, we multi-task a buzzer alarm increases, the knowledge to teach you four points:
First point: Driver Framework buzzer preparation.
The second point: the procedural framework of multi-tasking.
The third point: how to control the buzzer sounds and the short length is called is called.
The fourth point: How do you know how much a 1 second timer interrupt, which is how a pro rata correction time accuracy.
Details, see the source code to explain.
Function: run two tasks simultaneously, the first task to make a LED light fla
To Search:
File list (Check if you may need any files):
第05节:蜂鸣器的驱动程序.c