don't set up SPI pins unless we're using them for a max6675

This commit is contained in:
Michael Moon 2011-03-03 11:21:00 +11:00
parent 12516be978
commit c6a9f24e24
1 changed files with 8 additions and 6 deletions

View File

@ -151,11 +151,13 @@ void io_init(void) {
power_off();
#endif
#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