lego1: implement MxTimer + dependencies

This commit is contained in:
Thomas May
2023-06-14 01:22:42 +01:00
parent 0827ca8040
commit a925aec046
16 changed files with 296 additions and 9 deletions

15
LEGO1/mxomni.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "mxomni.h"
MxResult MxOmni::Create(const MxOmniCreateParam &p)
{
if (p.CreateFlags().CreateTimer())
{
MxTimer *timer = new MxTimer();
this->m_Timer = timer;
if (timer == NULL)
return FAILURE;
}
return SUCCESS;
}