Use Arduino.h include wrapper (#13877)

This commit is contained in:
Scott Lahteine
2019-05-02 00:45:50 -05:00
committed by GitHub
parent 51d1e0f1dd
commit e7682eea42
32 changed files with 155 additions and 118 deletions

View File

@ -30,19 +30,7 @@
#include <stdint.h>
// these are going to be re-defined in Arduino.h
#undef DISABLED
#undef M_PI
#undef _BV
#include <Arduino.h>
// revert back to the correct (old) definition
#undef DISABLED
#define DISABLED(V...) DO(DIS,&&,V)
// re-define in case Arduino.h has been skipped due to earlier inclusion (i.e. in Marlin\src\HAL\HAL_ESP32\i2s.cpp)
#define _BV(b) (1UL << (b))
#include "../shared/Marduino.h"
#include "../shared/math_32bit.h"
#include "../shared/HAL_SPI.h"