Skip to content

Commit

Permalink
Update SPI.h (#208)
Browse files Browse the repository at this point in the history
- define SPI_MODE0,  SPI_MODE1,  SPI_MODE2,  SPI_MODE3 for back work compatibility
  • Loading branch information
pammyleong authored Feb 15, 2024
1 parent f3920d0 commit f506ccb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Arduino_package/hardware/libraries/SPI/src/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ extern "C" {
#define SPI_DATA_MODE2 0x02
#define SPI_DATA_MODE3 0x03

#define SPI_MODE0 SPI_DATA_MODE0
#define SPI_MODE1 SPI_DATA_MODE1
#define SPI_MODE2 SPI_DATA_MODE2
#define SPI_MODE3 SPI_DATA_MODE3

#define SPI_MODE_MASTER 'M'
#define SPI_MODE_SLAVE 'S'

Expand Down

0 comments on commit f506ccb

Please sign in to comment.