Пример #1
0
int _EMAC_IntGetStatus(uint8_t * args)
{
	uint8_t * arg_ptr;
	uint32_t ulIntType;

	if ((arg_ptr = (uint8_t *) strtok(NULL, " ")) == NULL) return 1;
	ulIntType = (uint32_t) strtoul((char *) arg_ptr, NULL, 16);

	sprintf((char *) str, "%x\r\n", (unsigned int) EMAC_IntGetStatus(ulIntType));
	writeUSBOutString(str);
	return 0;
}
Пример #2
0
/***************************************************************************************************************************
**函数名称:	 	ENET_IRQHandler
**函数功能:	 	
**入口参数:
**返回参数:
***************************************************************************************************************************/
void ENET_IRQHandler(void)
{
	//OSIntEnter();
	if(EMAC_IntGetStatus(EMAC_INT_RX_DONE))
	{
		if(NULL != flyEhternetInfo.LwIPSem)
		{
			OSSemPost(flyEhternetInfo.LwIPSem);
		}
	}
	
	LPC_EMAC->IntClear = LPC_EMAC->IntStatus;
	//OSIntExit();
}