tmc2130: Define the SPI bus for the tmc drivers

pull/76/head
Alex Voinea 2021-07-17 13:31:03 +03:00 committed by DRracer
parent d484685e02
commit e2ba71fc03
1 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <stdint.h>
#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,