Browse Source

#ifdef tweaks

pull/1/head
Scott Lahteine 7 years ago
parent
commit
0891b58c30
  1. 2
      Marlin/Marlin.ino
  2. 4
      Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_sw_spi.cpp
  3. 2
      Marlin/src/libs/softspi.h

2
Marlin/Marlin.ino

@ -50,7 +50,7 @@
#if ENABLED(HAVE_TMCDRIVER) #if ENABLED(HAVE_TMCDRIVER)
#include <SPI.h> #include <SPI.h>
#if defined(STM32F7) #ifdef STM32F7
#include "src/HAL/HAL_STM32F7/TMC2660.h" #include "src/HAL/HAL_STM32F7/TMC2660.h"
#else #else
#include <TMC26XStepper.h> #include <TMC26XStepper.h>

4
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_sw_spi.cpp

@ -55,7 +55,7 @@
*/ */
#if defined (TARGET_LPC1768) #ifdef TARGET_LPC1768
#include <U8glib.h> #include <U8glib.h>
#include "SoftwareSPI.h" #include "SoftwareSPI.h"
@ -125,4 +125,4 @@ uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val,
return 1; return 1;
} }
#endif // TARGET_LPC1768 #endif // TARGET_LPC1768

2
Marlin/src/libs/softspi.h

@ -195,7 +195,7 @@ static const pin_map_t pinMap[] = {
|| defined(__AVR_ATmega324__)\ || defined(__AVR_ATmega324__)\
|| defined(__AVR_ATmega16__) || defined(__AVR_ATmega16__)
#if defined(VARIANT_MIGHTY) #ifdef VARIANT_MIGHTY
// Mighty Layout // Mighty Layout
static const pin_map_t pinMap[] = { static const pin_map_t pinMap[] = {
{&DDRB, &PINB, &PORTB, 0}, // B0 0 {&DDRB, &PINB, &PORTB, 0}, // B0 0

Loading…
Cancel
Save