Fix issues in TCP QEMU Demo (#948)

* Fix issues in TCP QEMU Demo

* set the Ethernet interrupt priority

* Include CMSIS header files to fix build issues

* Review suggestion

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
pull/953/head
kar-rahul-aws 2 years ago committed by GitHub
parent b06d170861
commit 25d9826eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 <core_cm3.h> /* Processor and core peripherals */

@ -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 */

@ -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++ )
{

Loading…
Cancel
Save