7 #define USE_SOFTWARE_SPI 9 #define BITORDER MSBFIRST 11 #if defined(USE_SOFTWARE_SPI) 13 #if defined(ARDUINO_attiny) 14 Software::Serial<BOARD::D0> Serial;
18 SRPI<BITORDER, BOARD::D2, BOARD::D3>
srpi;
23 SRPI<BITORDER, BOARD::D12, BOARD::D13>
srpi;
31 SRPI<BITORDER, BOARD::D12, BOARD::D13>
srpi;
34 #if defined(ARDUINO_attiny) 50 BENCHMARK_BASELINE(1000);
57 BENCHMARK(
"1. Arduino core shiftIn", 1000) {
63 BENCHMARK(
"2. SPI input operator", 1000) {
69 BENCHMARK(
"3, SRPI input operator", 1000) {
Software::SPI< BOARD::D11, BOARD::D12, BOARD::D13 > spi
virtual void acquire(uint8_t mode, uint8_t bitorder, uint8_t prescale)
SPI::Device< 0, BITORDER, SPI::MAX_FREQ, BOARD::D10 > dev(spi)
static const uint32_t MAX_FREQ
virtual uint8_t prescale(uint32_t frequency)
SRPI< BITORDER, BOARD::D12, BOARD::D13 > srpi