Skip to content

Commit

Permalink
Added TMC2160 driver that is essentially the same as TMC5160
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Nov 30, 2024
1 parent 74c0fac commit 7497ae9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions FluidNC/src/Motors/TMC2160Driver.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) 2020 - Bart Dring
// Use of this source code is governed by a GPLv3 license that can be found in the LICENSE file.

#include "TMC2160Driver.h"
#include "../Machine/MachineConfig.h"

namespace MotorDrivers {
// Configuration registration
namespace {
MotorFactory::InstanceBuilder<TMC2160Driver> registration("tmc_2160");
}
}
13 changes: 13 additions & 0 deletions FluidNC/src/Motors/TMC2160Driver.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) 2020 - Bart Dring
// Use of this source code is governed by a GPLv3 license that can be found in the LICENSE file.

#pragma once

#include "TMC5160Driver.h"

namespace MotorDrivers {
class TMC2160Driver : public TMC5160Driver {
public:
TMC2160Driver(const char* name) : TMC5160Driver(name) {}
};
}

0 comments on commit 7497ae9

Please sign in to comment.