mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-16 08:35:17 -05:00
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.
This commit is contained in:
parent
e7d39763db
commit
2d3b32c845
2 changed files with 4 additions and 4 deletions
|
|
@ -110,9 +110,6 @@
|
|||
{
|
||||
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++ )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
/* FreeRTOS includes. */
|
||||
#include <FreeRTOS.h>
|
||||
#include "task.h"
|
||||
|
|
@ -44,6 +43,7 @@
|
|||
#include "FreeRTOS_IP.h"
|
||||
#include "FreeRTOS_Sockets.h"
|
||||
#include "TCPEchoClient_SingleTasks.h"
|
||||
#include "CMSIS/CMSDK_CM3.h"
|
||||
|
||||
/* Echo client task parameters */
|
||||
#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.*/
|
||||
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 )
|
||||
/* Initialise the interface descriptor for WinPCap. */
|
||||
extern NetworkInterface_t * pxMPS2_FillInterfaceDescriptor( BaseType_t xEMACIndex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue