Fix PlatformIO dependencies

master
Thomas Moore 7 years ago
parent 4e19c59ab3
commit 97c19de8b9

3
.gitignore vendored

@ -118,6 +118,8 @@ tags
# PlatformIO files/dirs # PlatformIO files/dirs
.pio* .pio*
.pioenvs
.piolibdeps
lib/readme.txt lib/readme.txt
#Visual Studio #Visual Studio
@ -131,6 +133,7 @@ Marlin/.vs/
#VScode #VScode
.vscode .vscode
.vscode/c_cpp_properties.json
#cmake #cmake
CMakeLists.txt CMakeLists.txt

@ -20,8 +20,8 @@
* *
*/ */
#ifndef __SPI_H__ #ifndef __MARLIN_SPI_H__
#define __SPI_H__ #define __MARLIN_SPI_H__
#include <stdint.h> #include <stdint.h>
#include "softspi.h" #include "softspi.h"
@ -54,4 +54,4 @@ class SPI<MISO_PIN, MOSI_PIN, SCK_PIN> {
}; };
#endif // __SPI_H__ #endif // __MARLIN_SPI_H__

@ -10325,16 +10325,20 @@ inline void gcode_M502() {
SERIAL_ECHOLNPGM(" prewarn flag cleared"); SERIAL_ECHOLNPGM(" prewarn flag cleared");
} }
#if ENABLED(HYBRID_THRESHOLD)
static void tmc2130_get_pwmthrs(TMC2130Stepper &st, const char name, const uint16_t spmm) { static void tmc2130_get_pwmthrs(TMC2130Stepper &st, const char name, const uint16_t spmm) {
SERIAL_CHAR(name); SERIAL_CHAR(name);
SERIAL_ECHOPGM(" stealthChop max speed set to "); SERIAL_ECHOPGM(" stealthChop max speed set to ");
SERIAL_ECHOLN(12650000UL * st.microsteps() / (256 * st.stealth_max_speed() * spmm)); SERIAL_ECHOLN(12650000UL * st.microsteps() / (256 * st.stealth_max_speed() * spmm));
} }
static void tmc2130_set_pwmthrs(TMC2130Stepper &st, const char name, const int32_t thrs, const uint32_t spmm) { static void tmc2130_set_pwmthrs(TMC2130Stepper &st, const char name, const int32_t thrs, const uint32_t spmm) {
st.stealth_max_speed(12650000UL * st.microsteps() / (256 * thrs * spmm)); st.stealth_max_speed(12650000UL * st.microsteps() / (256 * thrs * spmm));
tmc2130_get_pwmthrs(st, name, spmm); tmc2130_get_pwmthrs(st, name, spmm);
} }
#endif
#if ENABLED(SENSORLESS_HOMING)
static void tmc2130_get_sgt(TMC2130Stepper &st, const char name) { static void tmc2130_get_sgt(TMC2130Stepper &st, const char name) {
SERIAL_CHAR(name); SERIAL_CHAR(name);
SERIAL_ECHOPGM(" driver homing sensitivity set to "); SERIAL_ECHOPGM(" driver homing sensitivity set to ");
@ -10344,6 +10348,7 @@ inline void gcode_M502() {
st.sgt(sgt_val); st.sgt(sgt_val);
tmc2130_get_sgt(st, name); tmc2130_get_sgt(st, name);
} }
#endif
/** /**
* M906: Set motor current in milliamps using axis codes X, Y, Z, E * M906: Set motor current in milliamps using axis codes X, Y, Z, E

@ -32,7 +32,7 @@
#include "language.h" #include "language.h"
#if ENABLED(HEATER_0_USES_MAX6675) #if ENABLED(HEATER_0_USES_MAX6675)
#include "spi.h" #include "MarlinSPI.h"
#endif #endif
#if ENABLED(BABYSTEPPING) #if ENABLED(BABYSTEPPING)

@ -19,7 +19,12 @@ libdeps_dir = .piolibdeps
env_default = megaatmega2560 env_default = megaatmega2560
[common] [common]
lib_deps = U8glib@1.19.1 lib_deps =
U8glib@1.19.1
TMC2130Stepper
Adafruit NeoPixel
https://github.com/lincomatic/LiquidTWI2.git
https://github.com/trinamic/TMC26XStepper.git
[env:megaatmega2560] [env:megaatmega2560]
platform = atmelavr platform = atmelavr

Loading…
Cancel
Save