Browse Source

Extra pins are now always defined

main
PaulStoffregen 8 years ago
parent
commit
d1aff2a452
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      SPI.cpp

+ 0
- 4
SPI.cpp View File

switch (pin) { switch (pin) {
case 6: return 0x01; // CS0 case 6: return 0x01; // CS0
case 31: return 0x01; // CS0 case 31: return 0x01; // CS0
#ifdef USE_SDCARD_PINS
case 58: return 0x02; //CS1 case 58: return 0x02; //CS1
case 62: return 0x01; //CS0 case 62: return 0x01; //CS0
case 63: return 0x04; //CS2 case 63: return 0x04; //CS2
#endif
} }
return 0; return 0;
} }
switch (pin) { switch (pin) {
case 6: CORE_PIN6_CONFIG = PORT_PCR_MUX(7); return 0x01; // PTD4 case 6: CORE_PIN6_CONFIG = PORT_PCR_MUX(7); return 0x01; // PTD4
case 31: CORE_PIN31_CONFIG = PORT_PCR_MUX(2); return 0x01; // PTD5 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 58: CORE_PIN58_CONFIG = PORT_PCR_MUX(2); return 0x02; //CS1
case 62: CORE_PIN62_CONFIG = PORT_PCR_MUX(2); return 0x01; //CS0 case 62: CORE_PIN62_CONFIG = PORT_PCR_MUX(2); return 0x01; //CS0
case 63: CORE_PIN63_CONFIG = PORT_PCR_MUX(2); return 0x04; //CS2 case 63: CORE_PIN63_CONFIG = PORT_PCR_MUX(2); return 0x04; //CS2
#endif
} }
return 0; return 0;
} }

Loading…
Cancel
Save