|
|
@@ -434,11 +434,9 @@ uint8_t SPI1Class::pinIsChipSelect(uint8_t pin) |
|
|
|
switch (pin) { |
|
|
|
case 6: return 0x01; // CS0 |
|
|
|
case 31: return 0x01; // CS0 |
|
|
|
#ifdef USE_SDCARD_PINS |
|
|
|
case 58: return 0x02; //CS1 |
|
|
|
case 62: return 0x01; //CS0 |
|
|
|
case 63: return 0x04; //CS2 |
|
|
|
#endif |
|
|
|
} |
|
|
|
return 0; |
|
|
|
} |
|
|
@@ -458,11 +456,9 @@ uint8_t SPI1Class::setCS(uint8_t pin) |
|
|
|
switch (pin) { |
|
|
|
case 6: CORE_PIN6_CONFIG = PORT_PCR_MUX(7); return 0x01; // PTD4 |
|
|
|
case 31: CORE_PIN31_CONFIG = PORT_PCR_MUX(2); return 0x01; // PTD5 |
|
|
|
#ifdef USE_SDCARD_PINS |
|
|
|
case 58: CORE_PIN58_CONFIG = PORT_PCR_MUX(2); return 0x02; //CS1 |
|
|
|
case 62: CORE_PIN62_CONFIG = PORT_PCR_MUX(2); return 0x01; //CS0 |
|
|
|
case 63: CORE_PIN63_CONFIG = PORT_PCR_MUX(2); return 0x04; //CS2 |
|
|
|
#endif |
|
|
|
} |
|
|
|
return 0; |
|
|
|
} |