globdefs.h 642 B

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