Skip to content
Snippets Groups Projects
Commit 5b09ee53 authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

Updated interface to Miosix 2.7

parent ed8a4d8c
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ void startKernel() {}
bool isKernelRunning() { return true; }
long long getTick() { return time(NULL); }
long long getTime() { return time(NULL); }
Thread *Thread::create(void *(*startfunc)(void *), unsigned int stacksize,
Priority priority, void *argv, unsigned short options)
......@@ -71,7 +71,9 @@ bool Thread::testTerminate() { return true; }
void Thread::sleep(unsigned int ms) {}
void Thread::sleepUntil(long long absoluteTime) {}
void Thread::nanoSleep(unsigned int ns) {}
void Thread::nanoSleepUntil(long long absoluteTime) {}
Thread *Thread::getCurrentThread() { return new Thread(); }
......
......@@ -87,7 +87,7 @@ void startKernel();
bool isKernelRunning();
long long getTick();
long long getTime();
class Thread
{
......@@ -112,7 +112,9 @@ public:
static void sleep(unsigned int ms);
static void sleepUntil(long long absoluteTime);
static void nanoSleep(unsigned int ns);
static void nanoSleepUntil(long long absoluteTime);
static Thread *getCurrentThread();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment