SPI Slave w/ Interrupt On Receive

10 Oct 2011

The SPISlave class doesn't seem to have an .attach method that will allow me to hook in an interrupt routine.

I have found code snippets that allow me to set up the NVIC and create SPI_IRQHandler() but I can't convince myself that the SPISlave class will generate interrupts. I haven't found any way to get down to the hardware registers and set up the SPI gadget directly. I really don't need the class if I can get down far enough.

Any suggestions on how I can get down to the hardware? I don't need much, just receive the incoming stream byte by byte and generate interrupts. This stream is placed in a rather large queue, processed as required and, finally, sent out over TCP. I have the TCP client working.

Richard

11 Oct 2011

OK, I got it working...

The real hassle was with the baseboard. NGX Technologies uses p11 as an EXT_SW input. No problem! Just don't push the switch. Well, except for that 100 nF capacitor that just mushes the MOSI signal coming in. Too bad there isn't a jumper to work around that. I unsoldered the capacitor.

Richard