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

@@ -30,6 +30,13 @@
#endif
#endif

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

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

Loading…
Cancel
Save