HIGHPRIO+

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

HIGHPRIO+

Post by JoVM »

How to configure for a HIGHPRIO+n, n>0?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: HIGHPRIO+

Post by Giovanni »

Hi,

You should not do that, it is an upper limit.

Giovanni
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

Re: HIGHPRIO+

Post by JoVM »

I have an example for LWip + webserver where the LWip thread is set at HIGHPRIO+1? I think I got this example from ST.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: HIGHPRIO+

Post by Giovanni »

Maybe LOWPRIO+1 ?

Giovanni
JoVM
Posts: 89
Joined: Thu Mar 12, 2015 12:13 pm

Re: HIGHPRIO+

Post by JoVM »

Code: Select all

/*
   * Creates the LWIP threads (it changes priority internally).
   */
  chThdCreateStatic(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, HIGHPRIO + 1,
               lwip_thread, NULL);


It change PRIO in the thread. But how does it pass the assert from createThread? prio <= HIGHPRIO
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: HIGHPRIO+

Post by Giovanni »

It is an error, I found the same code in our demos but it is:

Code: Select all

  /*
   * Creates the LWIP threads (it changes priority internally).
   */
  chThdCreateStatic(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, NORMALPRIO + 1,
                    lwip_thread, NULL);


Giovanni
Post Reply