platform_esp32.h 724 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Squeezelite for esp32
  3. *
  4. * (c) Sebastien 2019
  5. * Philippe G. 2019, philippe_44@outlook.com
  6. *
  7. * This software is released under the MIT License.
  8. * https://opensource.org/licenses/MIT
  9. *
  10. */
  11. #pragma once
  12. #include "esp_pthread.h"
  13. #ifndef SQUEEZELITE_ESP32_RELEASE_URL
  14. #define SQUEEZELITE_ESP32_RELEASE_URL "https://github.com/sle118/squeezelite-esp32/releases"
  15. #endif
  16. extern void run_command(char * line);
  17. extern bool wait_for_wifi();
  18. extern void console_start();
  19. extern pthread_cond_t wifi_connect_suspend_cond;
  20. extern pthread_t wifi_connect_suspend_mutex;
  21. typedef enum {
  22. INFO,
  23. WARNING,
  24. ERROR
  25. } message_severity_t;
  26. extern void set_status_message(message_severity_t severity, const char * message);