mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
static declaration in function
This commit is contained in:
@@ -39,10 +39,6 @@ static const char *TAG = "led_vu";
|
|||||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||||
|
|
||||||
struct led_strip_t* led_display = NULL;
|
struct led_strip_t* led_display = NULL;
|
||||||
static EXT_RAM_ATTR struct led_strip_t led_strip_config = {
|
|
||||||
.rgb_led_type = RGB_LED_TYPE_WS2812,
|
|
||||||
.gpio = -1,
|
|
||||||
};
|
|
||||||
|
|
||||||
static EXT_RAM_ATTR struct {
|
static EXT_RAM_ATTR struct {
|
||||||
int gpio;
|
int gpio;
|
||||||
@@ -94,6 +90,7 @@ void led_vu_init()
|
|||||||
strip.vu_odd = strip.length - 1;
|
strip.vu_odd = strip.length - 1;
|
||||||
|
|
||||||
// create driver configuration
|
// create driver configuration
|
||||||
|
static struct led_strip_t led_strip_config = { .rgb_led_type = RGB_LED_TYPE_WS2812};
|
||||||
led_strip_config.access_semaphore = xSemaphoreCreateBinary();
|
led_strip_config.access_semaphore = xSemaphoreCreateBinary();
|
||||||
led_strip_config.led_strip_length = strip.length;
|
led_strip_config.led_strip_length = strip.length;
|
||||||
led_strip_config.led_strip_working = heap_caps_malloc(strip.length * sizeof(struct led_color_t), MALLOC_CAP_8BIT);
|
led_strip_config.led_strip_working = heap_caps_malloc(strip.length * sizeof(struct led_color_t), MALLOC_CAP_8BIT);
|
||||||
|
|||||||
Reference in New Issue
Block a user