File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,11 @@ void SPIClass::begin()
44
44
45
45
PORTMUX.TWISPIROUTEA |= _uc_mux;
46
46
47
- // We don't need HW SS since salve/master mode is selected via registers, so make it simply INPUT
48
- pinMode (_uc_pinSS, INPUT);
49
47
pinMode (_uc_pinMosi, OUTPUT);
50
48
pinMode (_uc_pinSCK, OUTPUT);
51
49
// MISO is set to input by the controller
52
50
51
+ // We don't need HW SS since salve/master mode is selected via registers
53
52
SPI0.CTRLB |= (SPI_SSD_bm);
54
53
SPI0.CTRLA |= (SPI_ENABLE_bm | SPI_MASTER_bm);
55
54
Original file line number Diff line number Diff line change 44
44
#define PIN_SPI_MISO (12)
45
45
#define PIN_SPI_SCK (13)
46
46
#define PIN_SPI_MOSI (11)
47
- #define PIN_SPI_SS (10 )
47
+ #define PIN_SPI_SS (8 )
48
48
49
49
static const uint8_t SS = PIN_SPI_SS ;
50
50
static const uint8_t MOSI = PIN_SPI_MOSI ;
Original file line number Diff line number Diff line change 45
45
#define PIN_SPI_MISO (33)
46
46
#define PIN_SPI_SCK (34)
47
47
#define PIN_SPI_MOSI (32)
48
- #define PIN_SPI_SS (10 )
48
+ #define PIN_SPI_SS (22 )
49
49
50
50
static const uint8_t SS = PIN_SPI_SS ;
51
51
static const uint8_t MOSI = PIN_SPI_MOSI ;
You can’t perform that action at this time.
0 commit comments