Revision 5d321afa
apps/HelloWorld/helloworld.c | ||
---|---|---|
19 | 19 |
#include <helloworld.h> |
20 | 20 |
|
21 | 21 |
#pragma message "Hello World! (.c)" |
22 |
|
|
23 |
void hello(int i) { |
|
24 |
/* urt_node_t* node; |
|
25 |
urt_osThread_t* thread; |
|
26 |
urt_nodeSetupCallback_t* setupcallback; |
|
27 |
void* setupparams; |
|
28 |
urt_nodeLoopCallback_t* loopcallback; |
|
29 |
void* loopparams; |
|
30 |
urt_nodeShutdownCallback_t* shutdowncallback; |
|
31 |
void* shutdownparams; |
|
32 |
urtNodeInit(node, thread, setupcallback, setupparams, loopcallback, loopparams, shutdowncallback, shutdownparams); */ |
|
33 |
return; |
|
34 |
} |
apps/HelloWorld/helloworld.h | ||
---|---|---|
19 | 19 |
#ifndef HELLOWORLD_H |
20 | 20 |
#define HELLOWORLD_H |
21 | 21 |
|
22 |
//#include <urtware.h> |
|
23 |
|
|
22 | 24 |
#pragma message "Hello World! (.h)" |
23 | 25 |
|
26 |
typedef void (*helloFunction)(int); |
|
27 |
void hello(int arg); |
|
28 |
|
|
24 | 29 |
#endif /* HELLOWORLD_H */ |
configurations/HelloWorld/modules/NUCLEO-F401RE/mainincludes.hpp | ||
---|---|---|
20 | 20 |
#define MAININCLUDES_HPP |
21 | 21 |
|
22 | 22 |
#include <urtware.h> |
23 |
#include <helloworld.h> |
|
24 |
|
|
25 |
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() { \ |
|
26 |
aosprintf("HELLO WORLD!\n"); \ |
|
27 |
urtCoreInit(); \ |
|
28 |
helloFunction helloWorld = &hello; \ |
|
29 |
helloFunction helloSvenja = &hello; \ |
|
30 |
} |
|
31 |
/*hellowInit(helloSvenja(3));*/ |
|
32 |
|
|
23 | 33 |
|
24 | 34 |
#endif /* MAININCLUDES_HPP */ |
configurations/HelloWorld/modules/NUCLEO-F401RE/osconf.h | ||
---|---|---|
20 | 20 |
#define OSCONF_H |
21 | 21 |
|
22 | 22 |
#include <HelloWorld_osconf.h> |
23 |
#include <helloworld.h> |
|
24 | 23 |
|
25 | 24 |
#define OS_CFG_TESTS_ENABLE false |
26 | 25 |
|
27 | 26 |
#define OS_CFG_SSSP_ENABLE false |
28 | 27 |
|
29 |
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() { \ |
|
30 |
aosprintf("HELLO WORLD!\n"); \ |
|
31 |
urtCoreInit(); \ |
|
32 |
urt_node_t* node; \ |
|
33 |
urt_osThread_t* thread; \ |
|
34 |
urt_nodeSetupCallback_t* setupcallback; \ |
|
35 |
void* setupparams; \ |
|
36 |
urt_nodeLoopCallback_t* loopcallback; \ |
|
37 |
void* loopparams; \ |
|
38 |
urt_nodeShutdownCallback_t* shutdowncallback; \ |
|
39 |
void* shutdownparams; \ |
|
40 |
urtNodeInit(node, thread, setupcallback, setupparams, loopcallback, loopparams, shutdowncallback, shutdownparams); \ |
|
41 |
} |
|
42 |
|
|
43 | 28 |
#endif /* OSCONF_H */ |
middleware/uRtWare | ||
---|---|---|
1 |
Subproject commit 792f6c74a64a058e6967ccabc2a14d726a145910 |
|
1 |
Subproject commit f6e5368ee3663579507904074df6f96f77fc5f84 |
Also available in: Unified diff