Add needed platform defined gaurds to compile with Arduino IDE
Also removed explicit platform HAL directory inclusion from platformio.ini to make sure these errors are caught by Travis in the future
This commit is contained in:
parent
a037ddbf7b
commit
b908e38d08
@ -20,6 +20,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef TARGET_LPC1768
|
||||||
|
|
||||||
#include "../../../macros.h"
|
#include "../../../macros.h"
|
||||||
#include "../HAL.h"
|
#include "../HAL.h"
|
||||||
#include "HardwareSerial.h"
|
#include "HardwareSerial.h"
|
||||||
@ -634,3 +636,5 @@ void UART3_IRQHandler (void)
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // TARGET_LPC1768
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef TARGET_LPC1768
|
||||||
|
|
||||||
#if HAS_SERVOS
|
#if HAS_SERVOS
|
||||||
|
|
||||||
@ -166,5 +167,5 @@
|
|||||||
|
|
||||||
#endif // HAS_SERVOS
|
#endif // HAS_SERVOS
|
||||||
|
|
||||||
|
#endif // TARGET_LPC1768
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ The latest version of this library can always be found at
|
|||||||
http://arduiniana.org.
|
http://arduiniana.org.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef TARGET_LPC1768
|
||||||
|
|
||||||
//
|
//
|
||||||
// Includes
|
// Includes
|
||||||
@ -396,3 +397,5 @@ int SoftwareSerial::peek()
|
|||||||
// Read from "head"
|
// Read from "head"
|
||||||
return _receive_buffer[_receive_buffer_head];
|
return _receive_buffer[_receive_buffer_head];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // TARGET_LPC1768
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef TARGET_LPC1768
|
||||||
|
|
||||||
#include "../../../macros.h"
|
#include "../../../macros.h"
|
||||||
#include "../HAL.h"
|
#include "../HAL.h"
|
||||||
#include "arduino.h"
|
#include "arduino.h"
|
||||||
@ -222,3 +224,5 @@ return; //silences warning
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // TARGET_LPC1768
|
||||||
|
@ -25,7 +25,7 @@ lib_deps =
|
|||||||
https://github.com/lincomatic/LiquidTWI2.git
|
https://github.com/lincomatic/LiquidTWI2.git
|
||||||
https://github.com/teemuatlut/TMC2130Stepper.git
|
https://github.com/teemuatlut/TMC2130Stepper.git
|
||||||
https://github.com/adafruit/Adafruit_NeoPixel.git
|
https://github.com/adafruit/Adafruit_NeoPixel.git
|
||||||
default_src_filter = +<*> -<example_configurations> -<src/HAL/HAL_*> -<frameworks>
|
default_src_filter = +<*> -<example_configurations> -<frameworks>
|
||||||
|
|
||||||
[env:megaatmega2560]
|
[env:megaatmega2560]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
@ -34,7 +34,7 @@ board = megaatmega2560
|
|||||||
build_flags = -I $BUILDSRC_DIR
|
build_flags = -I $BUILDSRC_DIR
|
||||||
board_f_cpu = 16000000L
|
board_f_cpu = 16000000L
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:megaatmega1280]
|
[env:megaatmega1280]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
@ -43,7 +43,7 @@ board = megaatmega1280
|
|||||||
build_flags = -I $BUILDSRC_DIR
|
build_flags = -I $BUILDSRC_DIR
|
||||||
board_f_cpu = 16000000L
|
board_f_cpu = 16000000L
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:printrboard]
|
[env:printrboard]
|
||||||
platform = teensy
|
platform = teensy
|
||||||
@ -53,7 +53,7 @@ build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_PRINTRBOARD
|
|||||||
# Bug in arduino framework does not allow boards running at 20Mhz
|
# Bug in arduino framework does not allow boards running at 20Mhz
|
||||||
#board_f_cpu = 20000000L
|
#board_f_cpu = 20000000L
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:printrboard_revf]
|
[env:printrboard_revf]
|
||||||
platform = teensy
|
platform = teensy
|
||||||
@ -68,7 +68,7 @@ framework = arduino
|
|||||||
board = teensy20pp
|
board = teensy20pp
|
||||||
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_BRAINWAVE_PRO
|
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_BRAINWAVE_PRO
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:rambo]
|
[env:rambo]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
@ -77,7 +77,7 @@ board = reprap_rambo
|
|||||||
build_flags = -I $BUILDSRC_DIR
|
build_flags = -I $BUILDSRC_DIR
|
||||||
board_f_cpu = 16000000L
|
board_f_cpu = 16000000L
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:anet10]
|
[env:anet10]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
@ -98,7 +98,7 @@ framework = arduino
|
|||||||
board = due
|
board = due
|
||||||
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_RAMPS4DUE_EFB
|
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_RAMPS4DUE_EFB
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:teensy35]
|
[env:teensy35]
|
||||||
platform = teensy
|
platform = teensy
|
||||||
@ -107,7 +107,7 @@ board = teensy35
|
|||||||
build_flags = -I $BUILDSRC_DIR
|
build_flags = -I $BUILDSRC_DIR
|
||||||
lib_deps = ${common.lib_deps}
|
lib_deps = ${common.lib_deps}
|
||||||
lib_ignore = Adafruit NeoPixel
|
lib_ignore = Adafruit NeoPixel
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
|
src_filter = ${common.default_src_filter}
|
||||||
|
|
||||||
[env:Re-ARM]
|
[env:Re-ARM]
|
||||||
platform = nxplpc
|
platform = nxplpc
|
||||||
@ -115,5 +115,5 @@ board_f_cpu = 100000000L
|
|||||||
build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
||||||
lib_ldf_mode = off
|
lib_ldf_mode = off
|
||||||
lib_deps = U8glib-ARM
|
lib_deps = U8glib-ARM
|
||||||
src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768> +<frameworks/CMSIS/LPC1768>
|
src_filter = ${common.default_src_filter} +<frameworks/CMSIS/LPC1768>
|
||||||
extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
|
||||||
|
Loading…
Reference in New Issue
Block a user