Skip to content

Commit

Permalink
Use LPC versions on LPC hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
gloomyandy committed Jun 2, 2020
1 parent 2a134a2 commit 8885856
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Movement/StepperDrivers/TMC22xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* Created on: 23 Jan 2016
* Author: David
*/

// On the LPC17xx platform we have a replacement for this
#ifndef __LPC17xx__
#include "RepRapFirmware.h"

#if SUPPORT_TMC22xx
Expand Down Expand Up @@ -1243,6 +1244,7 @@ namespace SmartDrivers

}; // end namespace

#endif
#endif

// End
5 changes: 5 additions & 0 deletions src/Movement/StepperDrivers/TMC22xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* Author: David
*/

// Ugly hack to make sure we use the LPC version
#ifdef __LPC17xx__
#include "LPC/Movement/StepperDrivers/TMC22xx.h"
#else
// NB - must #include some file that includes Pins.h before including this one, so that SUPPORT_TMC22xx is defined

#ifndef TMC22xx_H_
Expand Down Expand Up @@ -61,3 +65,4 @@ namespace SmartDrivers
#endif

#endif /* TMC22xx_H_ */
#endif /* __LPC17xx__ */

0 comments on commit 8885856

Please sign in to comment.