globdefs.h 544 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Squeezelite for esp32
  3. *
  4. * (c) Philippe G. 2019, philippe_44@outlook.com
  5. *
  6. * This software is released under the MIT License.
  7. * https://opensource.org/licenses/MIT
  8. *
  9. */
  10. #pragma once
  11. #define I2C_SYSTEM_PORT 1
  12. #define SPI_SYSTEM_HOST SPI2_HOST
  13. extern int i2c_system_port;
  14. extern int i2c_system_speed;
  15. extern int spi_system_host;
  16. extern int spi_system_dc_gpio;
  17. extern bool gpio36_39_used;
  18. #ifdef CONFIG_SQUEEZEAMP
  19. #define ADAC dac_tas57xx
  20. #elif defined(CONFIG_A1S)
  21. #define ADAC dac_a1s
  22. #else
  23. #define ADAC dac_external
  24. #endif