tmc2130: Define the SPI bus for the tmc drivers
parent
d484685e02
commit
e2ba71fc03
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "axis.h"
|
#include "axis.h"
|
||||||
|
#include "hal/spi.h"
|
||||||
|
|
||||||
/// Wrangler for assorted compile-time configuration and constants.
|
/// Wrangler for assorted compile-time configuration and constants.
|
||||||
namespace config {
|
namespace config {
|
||||||
|
|
@ -50,8 +51,15 @@ static constexpr uint8_t stepTimerFrequencyDivider = 8;
|
||||||
/// 16 = 8us (25us is the max frequency interval per maxStepFrequency)
|
/// 16 = 8us (25us is the max frequency interval per maxStepFrequency)
|
||||||
static constexpr uint8_t stepTimerQuantum = 16;
|
static constexpr uint8_t stepTimerQuantum = 16;
|
||||||
|
|
||||||
|
//<<<<<<< HEAD
|
||||||
/// Pulley axis configuration
|
/// Pulley axis configuration
|
||||||
static constexpr AxisConfig pulley = {
|
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,
|
.dirOn = true,
|
||||||
.vSense = false,
|
.vSense = false,
|
||||||
.iRun = 20,
|
.iRun = 20,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue