Revision ee6c9a9f
| apps/HelloWorld/helloworld.c | ||
|---|---|---|
| 29 | 29 |
urt_osEventMask_t helloSetup(urt_node_t* node, void* arg) |
| 30 | 30 |
{
|
| 31 | 31 |
urtPrintf("Hello %c setup!\n", arg);
|
| 32 |
urtThreadSleep(10); |
|
| 32 | 33 |
return URT_EVENTMASK_ALL; |
| 33 | 34 |
} |
| 34 | 35 |
|
| 35 | 36 |
urt_osEventMask_t helloLoop(urt_node_t* node, urt_osEventMask_t events, void* arg) |
| 36 | 37 |
{
|
| 37 | 38 |
urtPrintf("Hello loop!\n");
|
| 39 |
urtThreadSleep(10); |
|
| 38 | 40 |
return URT_EVENTMASK_ALL; |
| 39 | 41 |
} |
| 40 | 42 |
|
| configurations/HelloWorld/modules/NUCLEO-F401RE/mainincludes.hpp | ||
|---|---|---|
| 35 | 35 |
helloWorldInit(&hellothomas_node, (urt_osThread_t*)hellothomas_thread, (void*)temp2); \ |
| 36 | 36 |
} |
| 37 | 37 |
|
| 38 |
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() { \
|
|
| 39 |
urtCoreStartNodes(); \ |
|
| 38 |
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() { \
|
|
| 39 |
urtCoreStartNodes(); \
|
|
| 40 | 40 |
} |
| 41 | 41 |
|
| 42 |
#define AMIROOS_CFG_MAIN_SHUTDOWN_HOOK_1() { \
|
|
| 43 |
urtCoreStopNodes(URT_STATUS_OK); \ |
|
| 44 |
} |
|
| 42 | 45 |
|
| 43 | 46 |
|
| 44 | 47 |
|
| middleware/uRtWare | ||
|---|---|---|
| 1 |
Subproject commit 8378a78b2d9c66f1f55430c500b90a8ef7e903c1 |
|
| 1 |
Subproject commit 37cd5dc23a96a58cc7524ba55b49594cc1a79fc8 |
|
Also available in: Unified diff