Call spi_device_transmit inside ISR
Posted: Wed Nov 15, 2017 11:40 am
Hi there,
I'm currently building a LED Matrix which is multiplexed. I want to achieve this by calling an ISR every x ms and send the data inside the ISR via SPI. When I do this it doesn't work, because it fails getting a result from spi_device_get_trans_result
Can I even use spi_device_transmit inside an ISR? If not how can I achieve a "timed" update call instead?
Thanks in advance.
I'm currently building a LED Matrix which is multiplexed. I want to achieve this by calling an ISR every x ms and send the data inside the ISR via SPI. When I do this it doesn't work, because it fails getting a result from spi_device_get_trans_result
Can I even use spi_device_transmit inside an ISR? If not how can I achieve a "timed" update call instead?
Thanks in advance.