avr/spi/spi.h

19 lines
295 B
C
Raw Normal View History

#ifndef __MORSE_H__
#define __MORSE_H__
#include <base.h>
#include <stdlib.h>
typedef struct SPI {
io_pin_t clock;
io_pin_t data_out;
io_pin_t data_in;
io_pin_t chip_select;
} spi_t;
void initialize_spi(spi_t *spi);
uint8_t transfer_byte(spi_t *spi, uint8_t output);
#endif