fork of StateScript

Dependencies:   mbed SOMO_II

Fork of stateScript_v2 by Mattias Karlsson

main.cpp

Committer:
alustig3
Date:
2017-04-28
Revision:
10:f65649c13b5b
Parent:
0:8dbd6bd9167f

File content as of revision 10:f65649c13b5b:

#include "behave.h"

#ifdef K64HARDWARE
extern uint32_t timeKeeper; //the master clock
extern bool resetTimer;
void tick(){
    timeKeeper++;
    if (resetTimer){
        timeKeeper = 0;
        resetTimer = false;
    }
}
Ticker keeptime;

int main() {
    keeptime.attach_us(&tick,1000);
#else
using namespace std;

int main() {
#endif
    mainLoop m;
    m.init();
    m.exec();
}