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();
|
power_off();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// setup SPI
|
#ifdef TEMP_MAX6675
|
||||||
WRITE(SCK, 0); SET_OUTPUT(SCK);
|
// setup SPI
|
||||||
WRITE(MOSI, 1); SET_OUTPUT(MOSI);
|
WRITE(SCK, 0); SET_OUTPUT(SCK);
|
||||||
WRITE(MISO, 1); SET_INPUT(MISO);
|
WRITE(MOSI, 1); SET_OUTPUT(MOSI);
|
||||||
WRITE(SS, 1); SET_OUTPUT(SS);
|
WRITE(MISO, 1); SET_INPUT(MISO);
|
||||||
|
WRITE(SS, 1); SET_OUTPUT(SS);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TEMP_INTERCOM
|
#ifdef TEMP_INTERCOM
|
||||||
// Enable the RS485 transceiver
|
// Enable the RS485 transceiver
|
||||||
SET_OUTPUT(RX_ENABLE_PIN);
|
SET_OUTPUT(RX_ENABLE_PIN);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue