Skip to content

Commit

Permalink
Friendly layout for Arduino IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Sep 21, 2017
1 parent 06a02dd commit f37ed31
Show file tree
Hide file tree
Showing 14 changed files with 3,081 additions and 17 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ before_script:
#
script:
#
# Backup Configuration.h, Configuration_adv.h, and pins_RAMPS.h
# Backup pins_RAMPS.h
#
- cp Marlin/src/config/Configuration.h Marlin/src/config/Configuration.h.backup
- cp Marlin/src/config/Configuration_adv.h Marlin/src/config/Configuration_adv.h.backup
- cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
#
# Build with the default configurations
Expand Down Expand Up @@ -335,8 +333,8 @@ script:
- export TEST_PLATFORM="-e teensy35"
- restore_configs
- opt_set MOTHERBOARD BOARD_TEENSY35_36
- cp Marlin/src/config/Configuration.h Marlin/src/config/Configuration.h.backup
- cp Marlin/src/config/Configuration_adv.h Marlin/src/config/Configuration_adv.h.backup
- cp Marlin/Configuration.h Marlin/src/config/default/Configuration.h
- cp Marlin/Configuration_adv.h Marlin/src/config/default/Configuration_adv.h
- cp Marlin/src/pins/pins_RAMPS.h Marlin/src/pins/pins_RAMPS.h.backup
#
# Test Teensy3.5 with default config
Expand Down
File renamed without changes.
File renamed without changes.
1,657 changes: 1,657 additions & 0 deletions Marlin/src/config/default/Configuration.h

Large diffs are not rendered by default.

1,409 changes: 1,409 additions & 0 deletions Marlin/src/config/default/Configuration_adv.h

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Marlin/src/inc/MarlinConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include "../core/boards.h"
#include "../core/macros.h"
#include "Version.h"
#include "../config/Configuration.h"
#include "../../Configuration.h"
#include "Conditionals_LCD.h"
#include "../config/Configuration_adv.h"
#include "../../Configuration_adv.h"
#include "../HAL/HAL.h"
#include "../pins/pins.h"
#if defined(ARDUINO_ARCH_AVR) && !defined(USBCON)
Expand Down
2 changes: 1 addition & 1 deletion buildroot/bin/opt_disable
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

for opt in "$@" ; do
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/src/config/Configuration.h"
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration.h"
done
2 changes: 1 addition & 1 deletion buildroot/bin/opt_disable_adv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

for opt in "$@" ; do
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/src/config/Configuration_adv.h"
eval "sed -i 's/\([[:blank:]]*\)\(#define \b${opt}\b\)/\1\/\/\2/g' Marlin/Configuration_adv.h"
done
2 changes: 1 addition & 1 deletion buildroot/bin/opt_enable
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

for opt in "$@" ; do
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/src/config/Configuration.h"
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration.h"
done
2 changes: 1 addition & 1 deletion buildroot/bin/opt_enable_adv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

for opt in "$@" ; do
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/src/config/Configuration_adv.h"
eval "sed -i 's/\/\/[[:blank:]]*\(#define \b${opt}\b\)/\1/g' Marlin/Configuration_adv.h"
done
2 changes: 1 addition & 1 deletion buildroot/bin/opt_set
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/src/config/Configuration.h"
eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration.h"
2 changes: 1 addition & 1 deletion buildroot/bin/opt_set_adv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/src/config/Configuration_adv.h"
eval "sed -i 's/\(#define \b${1}\b\).*$/\1 ${2}/g' Marlin/Configuration_adv.h"
6 changes: 3 additions & 3 deletions buildroot/bin/restore_configs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

cp Marlin/src/config/Configuration.h.backup Marlin/src/config/Configuration.h
cp Marlin/src/config/Configuration_adv.h.backup Marlin/src/config/Configuration_adv.h
cp Marlin/src/pins/pins_RAMPS.h.backup Marlin/src/pins/pins_RAMPS.h
cp Marlin/src/config/default/Configuration.h Marlin/Configuration.h
cp Marlin/src/config/default/Configuration_adv.h Marlin/Configuration_adv.h
cp Marlin/src/pins/pins_RAMPS.h.backup Marlin/src/pins/pins_RAMPS.h

if [ -f Marlin/src/config/_Bootscreen.h ]; then
rm Marlin/src/config/_Bootscreen.h
Expand Down
2 changes: 1 addition & 1 deletion buildroot/bin/use_example_configs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

restore_configs

eval "cp Marlin/src/config/examples/${1}/Configuration* Marlin/src/config/"
eval "cp Marlin/src/config/examples/${1}/Configuration* Marlin/"

if [ -f "Marlin/src/config/examples/${1}/_Bootscreen.h" ]; then
cp "Marlin/src/config/examples/${1}/_Bootscreen.h" Marlin/src/config/
Expand Down

0 comments on commit f37ed31

Please sign in to comment.