Browse Source

Fix `sq`/`min`/`max` macros after platform headers

pull/1/head
Scott Lahteine 7 years ago
parent
commit
8836623e0f
  1. 7
      Marlin/src/HAL/HAL_LPC1768/HAL.h
  2. 4
      Marlin/src/HAL/HAL_TEENSY35_36/HAL_Teensy.h

7
Marlin/src/HAL/HAL_LPC1768/HAL.h

@ -35,6 +35,10 @@
#include <stdint.h>
#include <stdarg.h>
#undef min
#undef max
#include <algorithm>
void _printf (const char *format, ...);
@ -52,7 +56,8 @@ extern "C" volatile uint32_t _millis;
#define B01 1
#define B10 2
#include "arduino.h"
#include "include/arduino.h"
#include "pinmapping.h"
#include "fastio.h"
#include "watchdog.h"

4
Marlin/src/HAL/HAL_TEENSY35_36/HAL_Teensy.h

@ -32,6 +32,10 @@
#include <Arduino.h>
// Redefine sq macro defined by teensy3/wiring.h
#undef sq
#define sq(x) ((x)*(x))
#include "fastio_Teensy.h"
#include "watchdog_Teensy.h"

Loading…
Cancel
Save