amiro-os / devices / LightRing / userthread.cpp @ a47d64ad
History | View | Annotate | Download (385 Bytes)
1 | 58fe0e0b | Thomas Schöpping | #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 | this->sleep(MS2ST(1000)); |
||
28 | } |
||
29 | |||
30 | return RDY_OK;
|
||
31 | } |