Revision fdf47c5d configurations/HelloWorld/modules/NUCLEO-F401RE/mainincludes.hpp
configurations/HelloWorld/modules/NUCLEO-F401RE/mainincludes.hpp | ||
---|---|---|
22 | 22 |
#include <urtware.h> |
23 | 23 |
#include <helloworld.h> |
24 | 24 |
|
25 |
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() { \ |
|
26 |
aosprintf("HELLO WORLD!\n"); \ |
|
27 |
urtCoreInit(); \ |
|
28 |
helloFunction helloWorld = &hello; \ |
|
29 |
helloFunction helloSvenja = &hello; \ |
|
25 |
static URT_THREAD_MEMORY(hellosvenja_thread, 256); |
|
26 |
static URT_THREAD_MEMORY(hellothomas_thread, 256); |
|
27 |
static urt_node_t hellosvenja_node; |
|
28 |
static urt_node_t hellothomas_node; |
|
29 |
|
|
30 |
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() { \ |
|
31 |
urtCoreInit(); \ |
|
32 |
helloWorldInit(&hellosvenja_node, (urt_osThread_t*)hellosvenja_thread); \ |
|
33 |
helloWorldInit(&hellothomas_node, (urt_osThread_t*)hellothomas_thread); \ |
|
30 | 34 |
} |
31 |
/*hellowInit(helloSvenja(3));*/ |
|
32 | 35 |
|
33 | 36 |
|
34 | 37 |
#endif /* MAININCLUDES_HPP */ |
Also available in: Unified diff