-#if !( OS_CFG_API_VERSION)
-\r
-#define GEN_ETASK( _id, _priority, _autostart, _timing_protection, _application_id, _resource_int_p ) \\r
-{ \\r
- .pid = TASK_ID_##_id, \\r
- .name = #_id, \\r
- .entry = _id, \\r
- .prio = _priority, \\r
- .proc_type = PROC_EXTENDED, \\r
- .stack.size = sizeof stack_##_id, \\r
- .stack.top = stack_##_id, \\r
- .autostart = _autostart, \\r
- .timing_protection = _timing_protection,\\r
- .application_id = _application_id, \\r
- .resource_int_p = _resource_int_p, \
- .scheduling = FULL, \
- .resourceAccess = -1UL \\r
-}\r
-\r
-#define GEN_BTASK( _id, _priority, _autostart, _timing_protection, _application_id, _resource_int_p ) \\r
-{ \\r
- .pid = TASK_ID_##_id, \\r
- .name = #_id, \\r
- .entry = _id, \\r
- .prio = _priority, \\r
- .proc_type = PROC_BASIC, \\r
- .stack.size = sizeof stack_##_id, \\r
- .stack.top = stack_##_id, \\r
- .autostart = _autostart, \\r
- .timing_protection = _timing_protection,\\r
- .application_id = _application_id, \\r
- .resource_int_p = _resource_int_p, \
- .scheduling = FULL, \
- .resourceAccess = -1UL \\r
-}
-#else
-
-#define GEN_ETASK( _id, _priority, _autostart, _timing_protection, _application_id, \
- _resource_int_p, _scheduling, _resource_mask ) \
+/**
+ * _id
+ * _priority The task priority
+ * _autostart true/false
+ * _resource_int_p Pointer to internal resource.
+ * NULL - if no internal resource or scheduling==NON
+ * Pointer to
+ * _scheduling FULL or NON
+ * _resource_mask Mask of the resources used. Applies to STANDARD and LINKED (NOT INTERNAL)
+ * For example if this task would use resource with id 2 and 4 the mask would
+ * become (1<<2)|(1<<4) = 0x14 (limits resources to 32).
+ * Currently used for calculating the ceiling priority.
+ */
+#define GEN_ETASK( _id, _priority, _scheduling, _autostart, _resource_int_p, _resource_mask ) \