Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:6477530de2c0, 2015-11-27 (annotated)
- Committer:
- Huazhi
- Date:
- Fri Nov 27 21:43:33 2015 +0000
- Revision:
- 0:6477530de2c0
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Huazhi | 0:6477530de2c0 | 1 | #include "GlobalVar.h" |
Huazhi | 0:6477530de2c0 | 2 | #include "AMachine.h" |
Huazhi | 0:6477530de2c0 | 3 | #include "VMachine.h" |
Huazhi | 0:6477530de2c0 | 4 | #include "VRP.h" |
Huazhi | 0:6477530de2c0 | 5 | #include "PVARP.h" |
Huazhi | 0:6477530de2c0 | 6 | |
Huazhi | 0:6477530de2c0 | 7 | int main() |
Huazhi | 0:6477530de2c0 | 8 | { |
Huazhi | 0:6477530de2c0 | 9 | /*start timer */ |
Huazhi | 0:6477530de2c0 | 10 | RtosTimer global_timer = RtosTimer(tick_timer, osTimerPeriodic, (void *)0); |
Huazhi | 0:6477530de2c0 | 11 | global_timer.start(1); |
Huazhi | 0:6477530de2c0 | 12 | initTrans(); |
Huazhi | 0:6477530de2c0 | 13 | Thread t1(AMachine, (void *)1); |
Huazhi | 0:6477530de2c0 | 14 | Thread t2(VMachine, (void *)2); |
Huazhi | 0:6477530de2c0 | 15 | Thread t3(VRP, (void *)3); |
Huazhi | 0:6477530de2c0 | 16 | Thread t4(PVARP, (void *)4); |
Huazhi | 0:6477530de2c0 | 17 | while(1); |
Huazhi | 0:6477530de2c0 | 18 | } |