Switch SD2cadrLib to fastio
Replace all fastDigitalRead/Write() with READ/WRITE() Define SCK_PIN, MISO_PIN, MOSI_PIN in pins.h if not already defined in the pins_*.h files. Remove these conditional pin definitions from the pin-files. They are now always defined. Define separate sets of SPI-pins for AT90USB with and without Teensy support in fastio.h. Likely this was the main reason for all that confusion about the AT90USB-SPI pins.
This commit is contained in:
@ -29,7 +29,6 @@
|
||||
#include "temperature.h"
|
||||
#include "thermistortables.h"
|
||||
#include "language.h"
|
||||
#include "Sd2PinMap.h"
|
||||
|
||||
#if ENABLED(USE_WATCHDOG)
|
||||
#include "watchdog.h"
|
||||
@ -1021,8 +1020,7 @@ void Temperature::init() {
|
||||
OUT_WRITE(MOSI_PIN, HIGH);
|
||||
OUT_WRITE(MISO_PIN, HIGH);
|
||||
#else
|
||||
pinMode(SS_PIN, OUTPUT);
|
||||
digitalWrite(SS_PIN, HIGH);
|
||||
OUT_WRITE(SS_PIN, HIGH);
|
||||
#endif
|
||||
|
||||
OUT_WRITE(MAX6675_SS, HIGH);
|
||||
|
Reference in New Issue
Block a user