Skip to content

Commit

Permalink
[MC] Reduce task stack to save some heap
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Aug 9, 2022
1 parent 706b708 commit 864134b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main/bluetooth/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ int32_t bt_host_init(void) {
bt_host_load_keys_from_file(&bt_host_link_keys);
bt_host_load_le_keys_from_file(&bt_host_le_link_keys);

xTaskCreatePinnedToCore(&bt_host_task, "bt_host_task", 4096, NULL, 5, NULL, 0);
xTaskCreatePinnedToCore(&bt_host_task, "bt_host_task", 3072, NULL, 5, NULL, 0);
xTaskCreatePinnedToCore(&bt_fb_task, "bt_fb_task", 2048, NULL, 10, NULL, 0);
xTaskCreatePinnedToCore(&bt_tx_task, "bt_tx_task", 2048, NULL, 11, NULL, 0);

Expand Down
2 changes: 1 addition & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ void app_main()
adapter_init();

start_app_cpu(wired_init_task);
xTaskCreatePinnedToCore(wl_init_task, "wl_init_task", 4096, NULL, 10, NULL, 0);
xTaskCreatePinnedToCore(wl_init_task, "wl_init_task", 2048, NULL, 10, NULL, 0);
}

2 changes: 1 addition & 1 deletion main/system/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void err_led_init(void) {
ledc_fade_func_install(0);
ledc_set_duty_and_update(LEDC_HIGH_SPEED_MODE, LEDC_CHANNEL_0, 0, 0);

xTaskCreatePinnedToCore(&err_led_task, "err_led_task", 1024, NULL, 5, &err_led_task_hdl, 0);
xTaskCreatePinnedToCore(&err_led_task, "err_led_task", 768, NULL, 5, &err_led_task_hdl, 0);
err_led_clear();
}

Expand Down

0 comments on commit 864134b

Please sign in to comment.