diff --git a/f8/timer.cc b/f8/timer.cc index 607ed96..7b7f31b 100644 --- a/f8/timer.cc +++ b/f8/timer.cc @@ -18,16 +18,26 @@ namespace f8 void Timer::Init() { initialized_ = true; + xtimer_.Init + ( + [] (void* context) + { + return a8::XGetTickCount(); + }, + this, + 10, + 1000 + ); } void Timer::UnInit() { - + initialized_ = false; } bool Timer::Initialized() { - + return initialized_; } void Timer::Update()