michi-jung commented on issue #8833:
URL: https://github.com/apache/nuttx/issues/8833#issuecomment-1633606840

   @laoniaokkk I believe you are loosing interrupte because of the issue 
described 
[here](https://github.com/apache/nuttx/blob/0ee304954a327394e493703ea78b8f6c221d2868/boards/arm/stm32/stm32f4discovery/src/stm32_w5500.c#L141).
   
   In the w5500_lower implementation of my custom board the enable method looks 
as follows:
   
   ```
   static void w5500_enable(const struct w5500_lower_s *lower,
                            bool enable)
   {     
     struct stm32_w5500_lower_s *self = (struct stm32_w5500_lower_s *)lower;
   
     stm32_gpiosetevent(self->gpio_intn,
                        false, /* rising edge  */
                        true,  /* falling edge */
                        false, /* event        */
                        enable ? self->handler : NULL,
                        enable ? self->arg : NULL);
         
     /* If interrupt is still pending trigger interrupt handler. */
         
     if (enable && !stm32_gpioread(self->gpio_intn))
       {
         stm32_gpioswirq(self->gpio_intn);
       }   
   }
   ```
   
   I think stm32_w5500.c should be modified accordingly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to