lab 3
Diff: arch/TARGET_Freescale/k64f_emac.c
- Revision:
- 19:007f4e6b2776
- Parent:
- 17:eb2c8c3aa1cd
- Child:
- 20:620d381e7f4c
diff -r b15a12222890 -r 007f4e6b2776 arch/TARGET_Freescale/k64f_emac.c --- a/arch/TARGET_Freescale/k64f_emac.c Thu Sep 18 14:00:53 2014 +0100 +++ b/arch/TARGET_Freescale/k64f_emac.c Fri Sep 19 13:45:16 2014 +0100 @@ -844,14 +844,14 @@ } void eth_arch_enable_interrupts(void) { - enet_hal_config_interrupt(BOARD_DEBUG_ENET_INSTANCE, (kEnetTxFrameInterrupt | kEnetRxFrameInterrupt), true); - interrupt_enable(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetRxfInt]]); - interrupt_enable(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetTxfInt]]); + enet_hal_config_interrupt(BOARD_DEBUG_ENET_INSTANCE, (kEnetTxFrameInterrupt | kEnetRxFrameInterrupt), true); + INT_SYS_EnableIRQ(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetRxfInt]]); + INT_SYS_EnableIRQ(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetTxfInt]]); } void eth_arch_disable_interrupts(void) { - interrupt_disable(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetRxfInt]]); - interrupt_disable(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetTxfInt]]); + INT_SYS_DisableIRQ(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetRxfInt]]); + INT_SYS_DisableIRQ(enet_irq_ids[BOARD_DEBUG_ENET_INSTANCE][enetIntMap[kEnetTxfInt]]); } void ENET_Transmit_IRQHandler(void)