rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

中断服务函数中无法使用spi的api

Open mttbx opened this issue 6 years ago • 2 comments

如题,有些设备驱动的中断函数会调用spi的api,请问这种情况有办法解决吗

mttbx avatar Feb 15 '20 10:02 mttbx

使用事件,异步处理。 中断里发消息给一个任务,然后任务里处理消息,然后调用spi

hellozimo avatar Feb 15 '20 15:02 hellozimo

谢了,我已解决。

mttbx avatar Feb 16 '20 05:02 mttbx