mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 12:07:09 +03:00
create queue before task...
This commit is contained in:
@@ -131,8 +131,8 @@ struct gpio_exp_s* gpio_exp_create(const gpio_exp_config_t *config) {
|
||||
StaticTask_t* xTaskBuffer = (StaticTask_t*) heap_caps_malloc(sizeof(StaticTask_t), MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
|
||||
static EXT_RAM_ATTR StackType_t xStack[2*1024] __attribute__ ((aligned (4)));
|
||||
|
||||
xTaskCreateStatic(async_handler, "gpio_expander", sizeof(xStack), NULL, ESP_TASK_PRIO_MIN + 1, xStack, xTaskBuffer);
|
||||
async_queue = xQueueCreate(4, sizeof(async_request_t));
|
||||
xTaskCreateStatic(async_handler, "gpio_expander", sizeof(xStack), NULL, ESP_TASK_PRIO_MIN + 1, xStack, xTaskBuffer);
|
||||
}
|
||||
|
||||
// set interrupt if possible
|
||||
|
||||
Reference in New Issue
Block a user