mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
allocate led_vu TCB to gain a few bytes & set non-existing GPIO in default config for esp32s3
This commit is contained in:
@@ -289,7 +289,7 @@ static bool led_strip_init_rmt(struct led_strip_t *led_strip)
|
||||
bool led_strip_init(struct led_strip_t *led_strip)
|
||||
{
|
||||
static EXT_RAM_ATTR TaskHandle_t task_created;
|
||||
static DRAM_ATTR StaticTask_t xTaskBuffer __attribute__ ((aligned (4)));
|
||||
StaticTask_t* xTaskBuffer = (StaticTask_t*) heap_caps_malloc(sizeof(StaticTask_t), MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
|
||||
static EXT_RAM_ATTR StackType_t xStack[LED_STRIP_TASK_SIZE] __attribute__ ((aligned (4)));
|
||||
|
||||
if ((led_strip == NULL) ||
|
||||
@@ -320,7 +320,7 @@ bool led_strip_init(struct led_strip_t *led_strip)
|
||||
LED_STRIP_TASK_SIZE,
|
||||
led_strip,
|
||||
LED_STRIP_TASK_PRIORITY,
|
||||
xStack, &xTaskBuffer);
|
||||
xStack, xTaskBuffer);
|
||||
|
||||
if (!task_created) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user