Browse Source

Pin 45 is valid CS for SPI0 on new boards

main
Kurt Eckhardt 8 years ago
parent
commit
c94fa644e8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      SPI.cpp

+ 2
- 0
SPI.cpp View File

case 15: return 0x10; // PTC0 case 15: return 0x10; // PTC0
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
case 26: return 0x01; case 26: return 0x01;
case 45: return 0x20; // CS5
#endif #endif
} }


case 15: CORE_PIN15_CONFIG = PORT_PCR_MUX(2); return 0x10; // PTC0 case 15: CORE_PIN15_CONFIG = PORT_PCR_MUX(2); return 0x10; // PTC0
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
case 26: CORE_PIN26_CONFIG = PORT_PCR_MUX(2);return 0x01; case 26: CORE_PIN26_CONFIG = PORT_PCR_MUX(2);return 0x01;
case 45: CORE_PIN45_CONFIG = PORT_PCR_MUX(3);return 0x20;
#endif #endif
} }
return 0; return 0;

Loading…
Cancel
Save