[2.0.x] TMC2130 support for LPC platform (#9114)

This commit is contained in:
teemuatlut
2018-02-02 05:49:40 +02:00
committed by Scott Lahteine
parent 34160806c0
commit 5c69d45f5b
55 changed files with 328 additions and 12 deletions

View File

@ -82,8 +82,8 @@ typedef int8_t pin_t;
#define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
#define CRITICAL_SECTION_END SREG = _sreg;
// On AVR this is in math.h?
#define square(x) ((x)*(x))
#undef sq
#define sq(x) ((x)*(x))
#ifndef strncpy_P
#define strncpy_P(dest, src, num) strncpy((dest), (src), (num))