Code: Select all
ETS_INTR_LOCK();
_xt_isr_attach(ETS_SPI_INUM, HSpi_Interrupt, NULL);
ETS_INTR_UNLOCK();
SET_PERI_REG_MASK(SPI_SLAVE(1), SPI_TRANS_DONE_EN); // | SPI_SLV_WR_BUF_DONE_EN
_xt_isr_unmask(1 << ETS_SPI_INUM);
The interrupt is not firing so I know something is wrong.
Please advise me where I'm wrong.
I fond very little documentation about this when dealing with RTOS and had to take a best guess on what I found relative to standard SDK.
Thanks.