Revision e66111dc

View differences:

apps/HelloWorld/helloworld.c
22 22

  
23 23
void helloShutdown(urt_node_t* node, urt_status_t cause, void* arg)
24 24
{
25
    urtPrintf("Hello %p shutdown!\n", arg);
25
    urtPrintf("Hello %c shutdown!\n", arg);
26 26
    return;
27 27
}
28 28

  
29 29
urt_osEventMask_t helloSetup(urt_node_t* node, void* arg)
30 30
{
31
  urtPrintf("Hello %p setup!\n", arg);
31
  urtPrintf("Hello %c setup!\n", arg);
32 32
  return URT_EVENTMASK_ALL;
33 33
}
34 34

  
35 35
urt_osEventMask_t helloLoop(urt_node_t* node, urt_osEventMask_t events, void* arg)
36 36
{
37
  urtPrintf("Hello %p loop!\n", arg);
37
  urtPrintf("Hello loop!\n");
38 38
  return URT_EVENTMASK_ALL;
39 39
}
40 40

  
41 41
void helloWorldInit(urt_node_t* node, urt_osThread_t* thread, void* arg)
42 42
{
43 43
    urtNodeInit(node, thread, URT_THREAD_PRIO_LOW_MIN, &helloSetup, arg, &helloLoop, arg, &helloShutdown, arg);
44
    //urtNodeInit(node, thread, URT_THREAD_PRIO_LOW_MIN, NULL, NULL, NULL, NULL, NULL, NULL);
45 44
}
configurations/HelloWorld/modules/NUCLEO-F401RE/mainincludes.hpp
27 27
static urt_node_t hellosvenja_node;
28 28
static urt_node_t hellothomas_node;
29 29

  
30
#define AMIROOS_CFG_MAIN_INIT_HOOK_3() {                                              \
31
    urtCoreInit();                                                                    \
32
    helloWorldInit(&hellosvenja_node, (urt_osThread_t*)hellosvenja_thread, NULL);     \
33
    helloWorldInit(&hellothomas_node, (urt_osThread_t*)hellothomas_thread, NULL);     \
30
#define AMIROOS_CFG_MAIN_INIT_HOOK_3() {                                                   \
31
    urtCoreInit();                                                                         \
32
    char temp = 's';                                                                       \
33
    char temp2 = 't';                                                                      \
34
    helloWorldInit(&hellosvenja_node, (urt_osThread_t*)hellosvenja_thread, (void*)temp);   \
35
    helloWorldInit(&hellothomas_node, (urt_osThread_t*)hellothomas_thread, (void*)temp2);  \
34 36
}
35 37

  
36 38
#define AMIROOS_CFG_MAIN_INIT_HOOK_4() {                                                \

Also available in: Unified diff