From e2ba71fc03fed76d525ac1d7bc77338af008fed1 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Sat, 17 Jul 2021 13:31:03 +0300 Subject: [PATCH] tmc2130: Define the SPI bus for the tmc drivers --- src/config/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config/config.h b/src/config/config.h index 11cfdd7..dcad1d8 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -1,6 +1,7 @@ #pragma once #include #include "axis.h" +#include "hal/spi.h" /// Wrangler for assorted compile-time configuration and constants. namespace config { @@ -50,8 +51,15 @@ static constexpr uint8_t stepTimerFrequencyDivider = 8; /// 16 = 8us (25us is the max frequency interval per maxStepFrequency) static constexpr uint8_t stepTimerQuantum = 16; +//<<<<<<< HEAD /// Pulley axis configuration static constexpr AxisConfig pulley = { +//======= +//static constexpr hal::spi::SPI_TypeDef *TmcSpiBus = SPI0; + +///// Idler configuration +//static constexpr AxisConfig idler = { +//>>>>>>> tmc2130: Define the SPI bus for the tmc drivers .dirOn = true, .vSense = false, .iRun = 20,