Skip to content

Instantly share code, notes, and snippets.

@wesen
wesen / spi_xfer.c
Last active December 30, 2017 23:27 — forked from C47D/spi_xfer.c
test to send an array of uint8_t's via SPI using both polling and interrupts
#include "project.h"
#include <string.h>
enum {
MAX_ITEMS = 10,
};
ring_buffer_t rx_buffer;
ring_buffer_t tx_buffer;