Browse Source

update en28j60 driver

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1572 bbd45198-f89e-11dd-88c7-29a3b14d5316
wuyangyong 14 years ago
parent
commit
07b16c0664
1 changed files with 4 additions and 4 deletions
  1. 4 4
      bsp/stm32f10x/stm32f10x_it.c

+ 4 - 4
bsp/stm32f10x/stm32f10x_it.c

@@ -272,18 +272,18 @@ void ETH_IRQHandler(void)
 * Output         : None
 * Return         : None
 *******************************************************************************/
-void EXTI0_IRQHandler(void)
+void EXTI2_IRQHandler(void)
 {
     extern void enc28j60_isr(void);
 
     /* enter interrupt */
     rt_interrupt_enter();
 
-    /* Clear the Key Button EXTI line pending bit */
-    EXTI_ClearITPendingBit(EXTI_Line0);
-
     enc28j60_isr();
 
+    /* Clear the Key Button EXTI line pending bit */
+    EXTI_ClearITPendingBit(EXTI_Line2);
+
     /* leave interrupt */
     rt_interrupt_leave();
 }