Skip to content

Commit

Permalink
allocate led_vu TCB to gain a few bytes & set non-existing GPIO in de…
Browse files Browse the repository at this point in the history
…fault config for esp32s3
  • Loading branch information
philippe44 committed Aug 16, 2023
1 parent 50543bf commit 5d24995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/led_strip/led_strip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/led_strip/led_vu.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static EXT_RAM_ATTR struct led_strip_t led_strip_config = {
.rgb_led_type = RGB_LED_TYPE_WS2812,
.rmt_channel = RMT_CHANNEL_1,
.rmt_interrupt_num = LED_VU_RMT_INTR_NUM,
.gpio = GPIO_NUM_22,
.gpio = -1,
};

static EXT_RAM_ATTR struct {
Expand Down

0 comments on commit 5d24995

Please sign in to comment.