Set ETHERNET_IRQn priority in main_networking.c

This allows the qemu-mps2 demo to use DHCP which requires ethernet mac
functionality prior to when vApplicationIPNetworkEventHook or
vApplicationIPNetworkEventHook_Multi are called.
pull/1105/head^2
Paul Bartell 1 year ago committed by Paul Bartell
parent e7d39763db
commit 2d3b32c845

@ -110,9 +110,6 @@
{ {
BaseType_t x; BaseType_t x;
/* Set Ethernet interrupt priority to configMAC_INTERRUPT_PRIORITY. */
NVIC_SetPriority( ETHERNET_IRQn, configMAC_INTERRUPT_PRIORITY );
/* Create the echo client tasks. */ /* Create the echo client tasks. */
for( x = 0; x < echoNUM_ECHO_CLIENTS; x++ ) for( x = 0; x < echoNUM_ECHO_CLIENTS; x++ )
{ {

@ -35,7 +35,6 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
/* FreeRTOS includes. */ /* FreeRTOS includes. */
#include <FreeRTOS.h> #include <FreeRTOS.h>
#include "task.h" #include "task.h"
@ -44,6 +43,7 @@
#include "FreeRTOS_IP.h" #include "FreeRTOS_IP.h"
#include "FreeRTOS_Sockets.h" #include "FreeRTOS_Sockets.h"
#include "TCPEchoClient_SingleTasks.h" #include "TCPEchoClient_SingleTasks.h"
#include "CMSIS/CMSDK_CM3.h"
/* Echo client task parameters */ /* Echo client task parameters */
#define mainECHO_CLIENT_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 ) /* Not used in the linux port. */ #define mainECHO_CLIENT_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 ) /* Not used in the linux port. */
@ -162,6 +162,9 @@ void main_tcp_echo_client_tasks( void )
/* Initialise the network interface.*/ /* Initialise the network interface.*/
FreeRTOS_debug_printf( ( "FreeRTOS_IPInit\r\n" ) ); FreeRTOS_debug_printf( ( "FreeRTOS_IPInit\r\n" ) );
/* Set Ethernet interrupt priority to configMAC_INTERRUPT_PRIORITY. */
NVIC_SetPriority( ETHERNET_IRQn, configMAC_INTERRUPT_PRIORITY );
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 ) #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 )
/* Initialise the interface descriptor for WinPCap. */ /* Initialise the interface descriptor for WinPCap. */
extern NetworkInterface_t * pxMPS2_FillInterfaceDescriptor( BaseType_t xEMACIndex, extern NetworkInterface_t * pxMPS2_FillInterfaceDescriptor( BaseType_t xEMACIndex,

Loading…
Cancel
Save