@ -62,8 +62,7 @@ void spiBegin() {
#error "SS_PIN not defined!"
#endif
WRITE(SS_PIN, HIGH);
SET_OUTPUT(SS_PIN);
OUT_WRITE(SS_PIN, HIGH);
}
void spiInit(uint8_t spiRate) {
@ -78,13 +78,11 @@ void HAL_init() {
//_DBG("\n\nDebug running\n");
// Initialise the SD card chip select pins as soon as possible
#if PIN_EXISTS(SS)
#if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1
WRITE(ONBOARD_SD_CS, HIGH);
SET_OUTPUT(ONBOARD_SD_CS);
OUT_WRITE(ONBOARD_SD_CS, HIGH);
USB_Init(); // USB Initialization
@ -69,8 +69,7 @@ void spiBegin(void) {
/** Configure SPI for specified SPI speed */
@ -81,8 +81,7 @@ void spiBegin(void) {
#error SS_PIN not defined!