platform_esp32.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Squeezelite for esp32
  3. *
  4. * (c) Sebastien 2019
  5. * Philippe G. 2019, philippe_44@outlook.com
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. #pragma once
  22. #include "esp_pthread.h"
  23. #include "esp_log.h"
  24. #ifndef SQUEEZELITE_ESP32_RELEASE_URL
  25. #define SQUEEZELITE_ESP32_RELEASE_URL "https://github.com/sle118/squeezelite-esp32/releases"
  26. #endif
  27. extern bool is_recovery_running;
  28. extern bool wait_for_wifi();
  29. extern bool console_push(const char * data, size_t size);
  30. extern void console_start();
  31. extern pthread_cond_t wifi_connect_suspend_cond;
  32. extern pthread_t wifi_connect_suspend_mutex;
  33. extern void (*server_notify)(in_addr_t ip, uint16_t hport, uint16_t cport);