globdefs.h 676 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. #define RMT_NEXT_TX_CHANNEL() rmt_system_base_tx_channel++;
  14. #define RMT_NEXT_RX_CHANNEL() rmt_system_base_rx_channel--;
  15. extern int i2c_system_port;
  16. extern int i2c_system_speed;
  17. extern int spi_system_host;
  18. extern int spi_system_dc_gpio;
  19. extern int rmt_system_base_tx_channel;
  20. extern int rmt_system_base_rx_channel;
  21. typedef struct {
  22. int timer, base_channel, max;
  23. } pwm_system_t;
  24. extern pwm_system_t pwm_system;