2019-03-13 05:48:08 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
2019-10-15 21:54:37 +00:00
|
|
|
# Build tests for ESP32
|
2019-03-13 05:48:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# exit on first failure
|
|
|
|
set -e
|
|
|
|
|
2019-08-19 04:29:59 +00:00
|
|
|
#
|
|
|
|
# Build with the default configurations
|
|
|
|
#
|
2019-03-13 05:48:08 +00:00
|
|
|
restore_configs
|
2019-10-15 21:54:37 +00:00
|
|
|
opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32
|
2020-07-21 09:00:39 +00:00
|
|
|
opt_enable WIFISUPPORT WEBSUPPORT GCODE_MACROS BAUD_RATE_GCODE M115_GEOMETRY_REPORT REPETIER_GCODE_M360
|
2020-02-04 05:29:01 +00:00
|
|
|
opt_add WIFI_SSID "\"ssid\""
|
|
|
|
opt_add WIFI_PWD "\"password\""
|
2019-03-13 05:48:08 +00:00
|
|
|
opt_set TX_BUFFER_SIZE 64
|
2020-11-18 02:04:28 +00:00
|
|
|
exec_test $1 $2 "ESP32 with WIFISUPPORT and WEBSUPPORT" "$3"
|
2019-03-13 05:48:08 +00:00
|
|
|
|
2020-02-23 19:55:24 +00:00
|
|
|
#
|
|
|
|
# Build with TMC drivers using hardware serial
|
|
|
|
#
|
|
|
|
restore_configs
|
|
|
|
opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32
|
|
|
|
opt_set X_DRIVER_TYPE TMC2209
|
|
|
|
opt_set Y_DRIVER_TYPE TMC2208
|
|
|
|
opt_set Z_DRIVER_TYPE TMC2209
|
|
|
|
opt_set E0_DRIVER_TYPE TMC2209
|
|
|
|
opt_set X_HARDWARE_SERIAL Serial1
|
|
|
|
opt_set Y_HARDWARE_SERIAL Serial1
|
|
|
|
opt_set Z_HARDWARE_SERIAL Serial1
|
|
|
|
opt_set E0_HARDWARE_SERIAL Serial1
|
2020-09-23 01:36:31 +00:00
|
|
|
opt_set X_SLAVE_ADDRESS 0
|
|
|
|
opt_set Y_SLAVE_ADDRESS 1
|
|
|
|
opt_set Z_SLAVE_ADDRESS 2
|
|
|
|
opt_set E0_SLAVE_ADDRESS 3
|
2020-05-18 05:50:35 +00:00
|
|
|
opt_enable HOTEND_IDLE_TIMEOUT
|
2020-11-18 02:04:28 +00:00
|
|
|
exec_test $1 $2 "ESP32, TMC HW Serial, Hotend Idle" "$3"
|
2020-02-23 19:55:24 +00:00
|
|
|
|
2019-03-13 05:48:08 +00:00
|
|
|
# cleanup
|
|
|
|
restore_configs
|