Skip to content

Commit

Permalink
Fix SPI default pinouts to SPI0, not SPI1 pins (#135)
Browse files Browse the repository at this point in the history
Should fix #134 .  The SPI pin macros were set using the SPI1 set, not
the SPI0 set of pins it should have been using.
  • Loading branch information
earlephilhower committed May 15, 2021
1 parent cdc2831 commit 9725155
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions variants/generic/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static const uint8_t A1 = (27u);
static const uint8_t A2 = (28u);
static const uint8_t A3 = (29u);

static const uint8_t SS = PIN_SPI1_SS;
static const uint8_t MOSI = PIN_SPI1_MOSI;
static const uint8_t MISO = PIN_SPI1_MISO;
static const uint8_t SCK = PIN_SPI1_SCK;
static const uint8_t SS = PIN_SPI0_SS;
static const uint8_t MOSI = PIN_SPI0_MOSI;
static const uint8_t MISO = PIN_SPI0_MISO;
static const uint8_t SCK = PIN_SPI0_SCK;

0 comments on commit 9725155

Please sign in to comment.