[PATCH 13/18] config: Add _Thread_Idle_body

Gedare Bloom gedare at rtems.org
Sun Feb 16 04:31:23 UTC 2020


On Sat, Feb 15, 2020 at 4:36 PM Chris Johns <chrisj at rtems.org> wrote:

> On 2020-02-15 03:02, Sebastian Huber wrote:
> > Move the idle thread body configuration constant out of the
> > configuration table.
> >
> > Provide a default definition of the idle thread body constant.
>
> May be I am missing something simple here. How would I provide an custom
> IDLE task? Is it by providing something like ...
>
> #include <rtems/score/threadidledata.h>
>
> const Thread_Idle_body _Thread_Idle_body = My_Idle_body;
>
>
I think you do it by a configure macro that confdefs picks up by this line
added:
+const Thread_Idle_body _Thread_Idle_body = CONFIGURE_IDLE_TASK_BODY;

It needs some doco ;)



> Chris
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200215/3b1c6514/attachment.html>


More information about the devel mailing list