esp32-tests 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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
  12. opt_enable WIFISUPPORT WEBSUPPORT GCODE_MACROS BAUD_RATE_GCODE M115_GEOMETRY_REPORT REPETIER_GCODE_M360
  13. opt_add WIFI_SSID "\"ssid\""
  14. opt_add WIFI_PWD "\"password\""
  15. opt_set TX_BUFFER_SIZE 64
  16. exec_test $1 $2 "ESP32 with WIFISUPPORT and WEBSUPPORT"
  17. #
  18. # Build with TMC drivers using hardware serial
  19. #
  20. restore_configs
  21. opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32
  22. opt_set X_DRIVER_TYPE TMC2209
  23. opt_set Y_DRIVER_TYPE TMC2208
  24. opt_set Z_DRIVER_TYPE TMC2209
  25. opt_set E0_DRIVER_TYPE TMC2209
  26. opt_set X_HARDWARE_SERIAL Serial1
  27. opt_set Y_HARDWARE_SERIAL Serial1
  28. opt_set Z_HARDWARE_SERIAL Serial1
  29. opt_set E0_HARDWARE_SERIAL Serial1
  30. opt_set X_SLAVE_ADDRESS 0
  31. opt_set Y_SLAVE_ADDRESS 1
  32. opt_set Z_SLAVE_ADDRESS 2
  33. opt_set E0_SLAVE_ADDRESS 3
  34. opt_enable HOTEND_IDLE_TIMEOUT
  35. exec_test $1 $2 "ESP32, TMC HW Serial, Hotend Idle"
  36. # cleanup
  37. restore_configs