don't set up SPI pins unless we're using them for a max6675
This commit is contained in:
parent
12516be978
commit
c6a9f24e24
14
mendel.c
14
mendel.c
|
|
@ -151,12 +151,14 @@ void io_init(void) {
|
|||
power_off();
|
||||
#endif
|
||||
|
||||
// setup SPI
|
||||
WRITE(SCK, 0); SET_OUTPUT(SCK);
|
||||
WRITE(MOSI, 1); SET_OUTPUT(MOSI);
|
||||
WRITE(MISO, 1); SET_INPUT(MISO);
|
||||
WRITE(SS, 1); SET_OUTPUT(SS);
|
||||
|
||||
#ifdef TEMP_MAX6675
|
||||
// setup SPI
|
||||
WRITE(SCK, 0); SET_OUTPUT(SCK);
|
||||
WRITE(MOSI, 1); SET_OUTPUT(MOSI);
|
||||
WRITE(MISO, 1); SET_INPUT(MISO);
|
||||
WRITE(SS, 1); SET_OUTPUT(SS);
|
||||
#endif
|
||||
|
||||
#ifdef TEMP_INTERCOM
|
||||
// Enable the RS485 transceiver
|
||||
SET_OUTPUT(RX_ENABLE_PIN);
|
||||
|
|
|
|||
Loading…
Reference in New Issue