esp32 988 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for ESP32
  4. #
  5. # exit on first failure
  6. set -e
  7. #
  8. # Build with the default configurations
  9. #
  10. restore_configs
  11. opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32 TX_BUFFER_SIZE 64 \
  12. WIFI_SSID '"ssid"' WIFI_PWD '"password"'
  13. opt_enable WIFISUPPORT WEBSUPPORT OTASUPPORT GCODE_MACROS BAUD_RATE_GCODE M115_GEOMETRY_REPORT REPETIER_GCODE_M360
  14. exec_test $1 $2 "ESP32 with WIFISUPPORT and WEBSUPPORT and OTASUPPORT" "$3"
  15. #
  16. # Build with TMC drivers using hardware serial
  17. #
  18. restore_configs
  19. opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32 \
  20. X_DRIVER_TYPE TMC2209 Y_DRIVER_TYPE TMC2208 Z_DRIVER_TYPE TMC2209 E0_DRIVER_TYPE TMC2209 \
  21. X_HARDWARE_SERIAL Serial1 Y_HARDWARE_SERIAL Serial1 Z_HARDWARE_SERIAL Serial1 E0_HARDWARE_SERIAL Serial1 \
  22. X_SLAVE_ADDRESS 0 Y_SLAVE_ADDRESS 1 Z_SLAVE_ADDRESS 2 E0_SLAVE_ADDRESS 3
  23. opt_enable HOTEND_IDLE_TIMEOUT SOFTWARE_DRIVER_ENABLE
  24. exec_test $1 $2 "ESP32, TMC HW Serial, Hotend Idle" "$3"
  25. # cleanup
  26. restore_configs