SS pin back to output
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Wed, 6 Jan 2016 09:05:18 +0000 (01:05 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Wed, 6 Jan 2016 09:05:18 +0000 (01:05 -0800)
src/tmc2660.c

index 33e40afd48e6aa955ccbb0211a672dfe6c6a47b6..ddc1e9c337ff148d4c75f7444069b765fae7e154 100644 (file)
@@ -233,7 +233,7 @@ void tmc2660_init() {
   // Setup pins
   // Must set the SS pin either in/high or any/output for master mode to work
   TMC2660_SPI_PORT.OUTSET = 1 << TMC2660_SPI_SS_PIN;   // High
-  TMC2660_SPI_PORT.DIRCLR = 1 << TMC2660_SPI_SS_PIN;   // Input
+  TMC2660_SPI_PORT.DIRSET = 1 << TMC2660_SPI_SS_PIN;   // Output
 
   TMC2660_SPI_PORT.OUTSET = 1 << TMC2660_SPI_SCK_PIN;  // High
   TMC2660_SPI_PORT.DIRSET = 1 << TMC2660_SPI_SCK_PIN;  // Output