globdefs.h 614 B

12345678910111213141516171819202122232425262728293031
  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. typedef struct {
  18. int timer, base_channel, max;
  19. } pwm_system_t;
  20. extern pwm_system_t pwm_system;
  21. #ifdef CONFIG_SQUEEZEAMP
  22. #define ADAC dac_tas57xx
  23. #elif defined(CONFIG_A1S)
  24. #define ADAC dac_a1s
  25. #else
  26. #define ADAC dac_external
  27. #endif