This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: how to implement EDF scheduling in eCos
>>> by using the sched_info parameter of the
>>> cyg_thread_create() call as the address of a scheduler-specific data
>>> structure.
>>
>> Can you give more detail explanation how to do it? Example will be great!
>
> I was envisaging something like this:
>
> ?struct cyg_edf_sched_info_t {
> ? ?cyg_tick_count_t deadline;
> ? ?cyg_tick_count_t wcet;
> ? ?cyg_tick_count_t period;
> ?};
>
> ?cyg_edf_sched_info_t myinfo = {11, 12, 13};
> ?cyg_thread_create((cyg_addrword_t) &myinfo, simple_program, ...
ah, sorry - the first parameter is meant to be some kind of generic
scheduler information parameter not necessarily a static priority. I
should have taken a closer look into the documentation before my first
comment.
Ciao, Fabian
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss