mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
33 lines
751 B
C
33 lines
751 B
C
/*
|
|
* Squeezelite for esp32
|
|
*
|
|
* (c) Philippe G. 2019, philippe_44@outlook.com
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#define I2C_SYSTEM_PORT 1
|
|
#define SPI_SYSTEM_HOST SPI2_HOST
|
|
|
|
extern int i2c_system_port;
|
|
extern int i2c_system_speed;
|
|
extern int spi_system_host;
|
|
extern int spi_system_dc_gpio;
|
|
typedef struct {
|
|
int timer, base_channel, max;
|
|
} pwm_system_t;
|
|
extern pwm_system_t pwm_system;
|
|
#ifdef CONFIG_SQUEEZEAMP
|
|
#define ADAC dac_tas57xx
|
|
#elif defined(CONFIG_A1S)
|
|
#define ADAC dac_a1s
|
|
#else
|
|
#define ADAC dac_external
|
|
#endif
|
|
void * malloc_init_external(size_t sz);
|
|
void * clone_obj_psram(void * source, size_t source_sz);
|
|
char * strdup_psram(const char * source); |