diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/CMSIS/CMSDK_CM3.h b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/CMSIS/CMSDK_CM3.h old mode 100644 new mode 100755 index b63b2bff0..da3cbe16c --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/CMSIS/CMSDK_CM3.h +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/CMSIS/CMSDK_CM3.h @@ -103,7 +103,7 @@ typedef enum IRQn /* -------- Configuration of the Cortex-M3 Processor and Core Peripherals ------- */ #define __CM3_REV 0x0201 /* Core revision r2p1 */ #define __MPU_PRESENT 1 /* MPU present or not */ -#define __NVIC_PRIO_BITS 3 /* Number of Bits used for Priority Levels */ +#define __NVIC_PRIO_BITS 8 /* Number of Bits used for Priority Levels */ #define __Vendor_SysTickConfig 0 /* Set to 1 if different SysTick Config is used */ #include /* Processor and core peripherals */ diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/FreeRTOSConfig.h b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/FreeRTOSConfig.h old mode 100644 new mode 100755 index 21949013d..5704118e9 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/FreeRTOSConfig.h +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/FreeRTOSConfig.h @@ -78,11 +78,11 @@ to exclude the API function. */ #define INCLUDE_vTaskDelay 1 -#define configKERNEL_INTERRUPT_PRIORITY 252 +#define configKERNEL_INTERRUPT_PRIORITY 255 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ #define configMAX_SYSCALL_INTERRUPT_PRIORITY 5 /* equivalent to 0xa0, or priority 5. */ -#define configMAC_INTERRUPT_PRIORITY 2 +#define configMAC_INTERRUPT_PRIORITY 5 /* networking definitions */ diff --git a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/TCPEchoClient_SingleTasks.c b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/TCPEchoClient_SingleTasks.c old mode 100644 new mode 100755 index 7c0bcaf96..457d6fcb7 --- a/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/TCPEchoClient_SingleTasks.c +++ b/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2/TCPEchoClient_SingleTasks.c @@ -45,6 +45,8 @@ #include "FreeRTOS.h" #include "task.h" #include "queue.h" +#include "CMSIS/CMSDK_CM3.h" +#include "CMSIS/core_cm3.h" /* FreeRTOS+TCP includes. */ #include "FreeRTOS_IP.h" @@ -108,6 +110,9 @@ { BaseType_t x; + /* Set Ethernet interrupt priority to configMAC_INTERRUPT_PRIORITY. */ + NVIC_SetPriority( ETHERNET_IRQn , configMAC_INTERRUPT_PRIORITY ); + /* Create the echo client tasks. */ for( x = 0; x < echoNUM_ECHO_CLIENTS; x++ ) {