mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add LPC2368 demo.
This commit is contained in:
parent
0a6d59a611
commit
b36ba44e0d
43 changed files with 5064 additions and 2124 deletions
29
Demo/ARM7_LPC2368_Rowley/webserver/EMAC_ISR.c
Normal file
29
Demo/ARM7_LPC2368_Rowley/webserver/EMAC_ISR.c
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "FreeRTOS.h"
|
||||
#include "Semphr.h"
|
||||
#include "Task.h"
|
||||
|
||||
void vEMAC_ISR( void ) __attribute__((naked));
|
||||
|
||||
extern xSemaphoreHandle xEMACSemaphore;
|
||||
|
||||
void vEMAC_ISR( void )
|
||||
{
|
||||
portENTER_SWITCHING_ISR();
|
||||
|
||||
portBASE_TYPE xSwitchRequired = pdFALSE;
|
||||
|
||||
/* Clear the interrupt. */
|
||||
IntClear = 0xffff;
|
||||
VICVectAddr = 0;
|
||||
|
||||
/* Ensure the uIP task is not blocked as data has arrived. */
|
||||
if( xSemaphoreGiveFromISR( xEMACSemaphore, pdFALSE ) )
|
||||
{
|
||||
xSwitchRequired = pdTRUE;
|
||||
}
|
||||
|
||||
/* Switch to the uIP task. */
|
||||
portEXIT_SWITCHING_ISR( xSwitchRequired );
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue