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.
Diff: main.cpp
- Revision:
- 0:6477530de2c0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 27 21:43:33 2015 +0000 @@ -0,0 +1,18 @@ +#include "GlobalVar.h" +#include "AMachine.h" +#include "VMachine.h" +#include "VRP.h" +#include "PVARP.h" + +int main() +{ + /*start timer */ + RtosTimer global_timer = RtosTimer(tick_timer, osTimerPeriodic, (void *)0); + global_timer.start(1); + initTrans(); + Thread t1(AMachine, (void *)1); + Thread t2(VMachine, (void *)2); + Thread t3(VRP, (void *)3); + Thread t4(PVARP, (void *)4); + while(1); +} \ No newline at end of file