Use OUT_WRITE in SPI pin init

This commit is contained in:
Scott Lahteine 2019-06-15 14:57:42 -05:00
parent 24c23b60fa
commit 9a56a88200
4 changed files with 5 additions and 10 deletions

View file

@ -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) {

View file

@ -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)
WRITE(SS_PIN, HIGH);
SET_OUTPUT(SS_PIN);
OUT_WRITE(SS_PIN, HIGH);
#endif
#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);
#endif
USB_Init(); // USB Initialization

View file

@ -69,8 +69,7 @@ void spiBegin(void) {
#error "SS_PIN not defined!"
#endif
SET_OUTPUT(SS_PIN);
WRITE(SS_PIN, HIGH);
OUT_WRITE(SS_PIN, HIGH);
}
/** Configure SPI for specified SPI speed */

View file

@ -81,8 +81,7 @@ void spiBegin(void) {
#error SS_PIN not defined!
#endif
SET_OUTPUT(SS_PIN);
WRITE(SS_PIN, HIGH);
OUT_WRITE(SS_PIN, HIGH);
}
/** Configure SPI for specified SPI speed */