Browse Source

Make sure MSBFIRST & LSBFIRST always defined

main
PaulStoffregen 10 years ago
parent
commit
2fae5ca5ae
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      SPI.h

+ 7
- 0
SPI.h View File

#endif #endif
#endif #endif


#ifndef LSBFIRST
#define LSBFIRST 0
#endif
#ifndef MSBFIRST
#define MSBFIRST 1
#endif

#define SPI_MODE0 0x00 #define SPI_MODE0 0x00
#define SPI_MODE1 0x04 #define SPI_MODE1 0x04
#define SPI_MODE2 0x08 #define SPI_MODE2 0x08

Loading…
Cancel
Save