amiro-os / devices / LightRing / userthread.cpp @ ba75ee1d
History | View | Annotate | Download (392 Bytes)
1 |
#include "userthread.hpp" |
---|---|
2 |
|
3 |
#include <global.hpp> |
4 |
|
5 |
using namespace amiro; |
6 |
|
7 |
extern Global global;
|
8 |
|
9 |
UserThread::UserThread() : |
10 |
chibios_rt::BaseStaticThread<USER_THREAD_STACK_SIZE>() |
11 |
{ |
12 |
} |
13 |
|
14 |
UserThread::~UserThread() |
15 |
{ |
16 |
} |
17 |
|
18 |
msg_t |
19 |
UserThread::main() |
20 |
{ |
21 |
while (!this->shouldTerminate()) |
22 |
{ |
23 |
/*
|
24 |
* INSERT CUSTOM CODE HERE
|
25 |
*/
|
26 |
|
27 |
|
28 |
|
29 |
this->sleep(MS2ST(1000)); |
30 |
} |
31 |
|
32 |
return RDY_OK;
|
33 |
} |
34 |
|