From bcda7b7db8681e30c302d09359b5b07aa1c40e36 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 18 Dec 2022 14:12:34 +0800 Subject: [PATCH] 1 --- f8/timer.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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()