STIMA
3
platformio
stima_v3
test_sdfat16
src
mSPI.h
1
#ifndef SPI_H
2
#define SPI_H
3
4
/* SPI CONFIG */
5
/* No interrupts, SPI enabled, MSB, Master, Mode 0, DIV4 */
6
//#define SPI_SPCR_CONFIG 0b01010000
7
#define SPI_SPCR_CONFIG _BV(SPE) | _BV(MSTR)
8
9
#include <inttypes.h>
10
#include <avr/io.h>
11
12
void
SPI_begin(
void
);
13
uint8_t SPI_transfer(uint8_t data);
14
15
#endif
Generated by
1.9.1