[grblHAL/STM32F4xx Issue#125] Issue when both SPI_IRQ and I2C_STROBE are enabled

未分类 bolang 6个月前 (10-15) 58次浏览

Issue #125 | 状态: 已关闭 | 作者: andrewmarles | 创建时间: 2023-06-09


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)

#1 – terjeio 于 2023-06-09

Hmm, using switch(irq) would be better…


#2 – andrewmarles 于 2023-07-31

This appears to be fixed in the latest version of the driver. Thanks very much Terje.


原始Issue: https://github.com/grblHAL/STM32F4xx/issues/125

喜欢 (0)