Here in the driver:
https://github.com/grblHAL/STM32F4xx/blob/master/Src/driver.c#L488
When both are enabled the I2C strobe fails the second condition even if both are on separate IRQ pins. In my quick testing this fixed it on line 493:
“
#ifdef SPIIRQPIN
else if((ok = irq == IRQSPI && spiirq.callback == NULL))
spi_irq.callback = handler;
#endif
“
but above is not a universal fix.
评论 (2)
#2 – andrewmarles 于 2023-07-31
This appears to be fixed in the latest version of the driver. Thanks very much Terje.
#1 – terjeio 于 2023-06-09
Hmm, using switch(irq) would be better…