-->
Page 1 of 1

nodemcu spi slave interrupt handler

PostPosted: Mon Apr 24, 2017 10:26 am
by disideris
Hi there,

I just burned latest stable nodemcu firmware to esp8266 and it works fine.

My use case is that i m going to use esp8266 as an spi slave module to my spi master lpc microcontroller.

In official espressif SDK an spi interrupt handler is implemented (spi_slave_isr_sta) so that any incoming data to hspi triggers SPI_SLV_WR_BUF_DONE flag and you can handle incoming spi data.

How can i do this in terms of nodemcu?
Is there any spi interrupt hanlder implementaion for nodemcu lua?

Thanks a lot in advace!

Re: nodemcu spi slave interrupt handler

PostPosted: Tue Apr 25, 2017 2:36 am
by devsaurus
SPI slave mode is not supported by the firmware. There's a discussion started to add it, see https://github.com/nodemcu/nodemcu-firmware/issues/1922.