[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] stm32 ethernet interrup priority
From: |
FreeRTOS Info |
Subject: |
Re: [lwip-users] stm32 ethernet interrup priority |
Date: |
Mon, 22 Aug 2016 13:13:21 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 22/08/2016 13:00, Erkan Ersoy wrote:
Thank you Noam;
Somethings are confusing but i think i get it
Yes, confusing.
#define configKERNEL_INTERRUPT_PRIORITY (
configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
#define configMAX_SYSCALL_INTERRUPT_PRIORITY (
configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
those values are
configKERNEL_INTERRUPT_PRIORITY : 240
configMAX_SYSCALL_INTERRUPT_PRIORITY: 80
Those values are used by FreeRTOS itself, which is portable across all
ARM Cortex devices, which have varying number of implemented priority
bits (in hardware).
but they never used those defines so they used only values above 5
without defines. Those defines stay there idle.
Some libraries want the full 8 bit values (which is how the hardware
always sees the values), other libraries want unshifted values.
I use 6 for ethernet interrupt and 7 for USART interrupt now it seems
work fine
So 7 have a logically lower priority, despite being a higher numeric value.
The following link may make things clearer, or alternatively, murkier :o)
http://www.freertos.org/RTOS-Cortex-M3-M4.html
Regards,
Richard.
+ http://www.FreeRTOS.org
The de facto standard, downloaded every 4.2 minutes during 2015.
+ http://www.FreeRTOS.org/plus
IoT, Trace, Certification, TCP/IP, FAT FS, Training, and more...