Skip to content

Instantly share code, notes, and snippets.

View andrewjaykeller's full-sized avatar

AJ Keller andrewjaykeller

View GitHub Profile
@andrewjaykeller
andrewjaykeller / SlaveSPIClass.cpp
Created December 7, 2017 01:32 — forked from shaielc/SlaveSPIClass.cpp
SlaveSPIClass_esp32_Arduino
#include<SlaveSPIClass.h>
int SlaveSPI::size = 0;
SlaveSPI** SlaveSPI::SlaveSPIVector = NULL;
void setupIntr(spi_slave_transaction_t * trans)
{
for(int i=0 ; i<SlaveSPI::size;i++)
{
if(SlaveSPI::SlaveSPIVector[i]->match(trans))
SlaveSPI::SlaveSPIVector[i]->setup_intr(trans);
}