From: Joseph Coffland Date: Wed, 6 Jan 2016 09:05:18 +0000 (-0800) Subject: SS pin back to output X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=dd56f59577aece368646fd74473ce77fbac0f65a;p=bbctrl-firmware SS pin back to output --- diff --git a/src/tmc2660.c b/src/tmc2660.c index 33e40af..ddc1e9c 100644 --- a/src/tmc2660.c +++ b/src/tmc2660.c @@ -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