Revision 67844205

View differences:

src/urt_node.c
113 113
 * @brief  Initalize a node.
114 114
 *
115 115
 * @param[in] node  The node to initialize. Must not be NULL.
116
 * @param[in] thread  The already initialized, exclusive thread for the node. Must not be NULL.
116
 * @param[in] thread  The thread to intialize. Must be NULL.
117 117
 * @param[in] setupcallback  Callback function to be executed during setup.
118 118
 *                           May be NULL if no custom setup is required.
119 119
 * @param[in] setupparams  Parameters for the setup callback function.
......
133 133
                 urt_nodeShutdownCallback_t* shutdowncallback, void* shutdownparams)
134 134
{
135 135
  urtDebugAssert(node != NULL);
136
  urtDebugAssert(thread != NULL);
136
  urtDebugAssert(thread == NULL);
137 137
  if (setupcallback == NULL)
138 138
    urtDebugAssert(setupparams == NULL);
139 139

  
140 140
  node->next = NULL;
141
  void *memory = (void*)0x28ff44;
142
  urt_osThreadFunction_t func; //TODO: Here the hello world func?
143
  thread = urtThreadInit(memory, SIZEOF_PTR, URT_THREAD_PRIO_NORMAL_MIN, func, NULL);
141 144
  node->thread = thread;
142 145
  node->setupcallback = setupcallback;
143 146
  node->setupparams = setupparams;

Also available in: Unified diff