Introduction - If you have any usage issues, please Google them yourself
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