pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

cyw43_arch_poll unneccessary IRQ's

Open essele opened this issue 3 years ago • 0 comments

Hi,

The current implementation of cyw43_arch_poll includes a GPIO IRQ mechanism presumably for triggering activity. The trigger for this is currently ignored (commented out) and the poll is executed every time anyway, however the IRQ setup and the ISR is left in place to unnecessarily consume resource.

Can this be tidied? And I'm with whoever left the note for Graham ... there's a polling function which is called regularly, do we really need to complicate things with an IRQ in this model ... surely you could just check the GPIO interrupt status in the polling function and avoid the unnecessary ISR?

Lee.

essele avatar Jul 14 '22 08:07 essele