[PATCH 13/18] config: Add _Thread_Idle_body
Sebastian Huber
sebastian.huber at embedded-brains.de
Sun Feb 16 07:12:48 UTC 2020
On 16/02/2020 00:36, Chris Johns 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;
No, definitely not. An application designer should use the documented API:
https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#configure-idle-task-body
The goal of this and follow up change sets is to split this 3k LOC file
(confdefs.h) in easier to review pieces.
The file contains also comments which should be in the Classic API
Guide, e.g. how to configure the filesystems:
https://docs.rtems.org/branches/master/c-user/configuring_a_system.html#file-system-configuration-parameters
This is just an enumeration of the options. The user has no idea how
things are related after reading this section.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200216/07495634/attachment.html>
More information about the devel
mailing list