Page 1 of 1
HIGHPRIO+
Posted: Wed May 27, 2015 2:10 pm
by JoVM
How to configure for a HIGHPRIO+n, n>0?
Re: HIGHPRIO+
Posted: Wed May 27, 2015 2:14 pm
by Giovanni
Hi,
You should not do that, it is an upper limit.
Giovanni
Re: HIGHPRIO+
Posted: Wed May 27, 2015 2:18 pm
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.
Re: HIGHPRIO+
Posted: Wed May 27, 2015 2:23 pm
by Giovanni
Maybe LOWPRIO+1 ?
Giovanni
Re: HIGHPRIO+
Posted: Wed May 27, 2015 2:29 pm
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
Re: HIGHPRIO+
Posted: Wed May 27, 2015 2:47 pm
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