This commit is contained in:
aozhiwei 2022-12-18 14:12:34 +08:00
parent ce0c7e6cfa
commit bcda7b7db8

View File

@ -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()