diff --git a/components/esp_system/include/esp_task.h b/components/esp_system/include/esp_task.h index adca9cde6b..a0bf28361f 100644 --- a/components/esp_system/include/esp_task.h +++ b/components/esp_system/include/esp_task.h @@ -1,16 +1,8 @@ -// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ /* Notes: * 1. Put all task priority and stack size definition in this file @@ -47,6 +39,9 @@ #define BT_TASK_EXTRA_STACK_SIZE TASK_EXTRA_STACK_SIZE #define ESP_TASK_BT_CONTROLLER_STACK (3584 + TASK_EXTRA_STACK_SIZE) +/* Ping Task */ +#define ESP_TASK_PING_STACK (2048 + TASK_EXTRA_STACK_SIZE) + /* idf task */ #define ESP_TASK_TIMER_PRIO (ESP_TASK_PRIO_MAX - 3) diff --git a/components/lwip/include/apps/ping/ping_sock.h b/components/lwip/include/apps/ping/ping_sock.h index 2eb0d21e70..9d3a060b48 100644 --- a/components/lwip/include/apps/ping/ping_sock.h +++ b/components/lwip/include/apps/ping/ping_sock.h @@ -80,7 +80,7 @@ typedef struct { .tos = 0, \ .ttl = IP_DEFAULT_TTL, \ .target_addr = *(IP_ANY_TYPE), \ - .task_stack_size = 2048, \ + .task_stack_size = ESP_TASK_PING_STACK, \ .task_prio = 2, \ .interface = 0,\ } diff --git a/tools/ci/check_copyright_ignore.txt b/tools/ci/check_copyright_ignore.txt index be4d34e02d..d460a5bfad 100644 --- a/tools/ci/check_copyright_ignore.txt +++ b/tools/ci/check_copyright_ignore.txt @@ -638,7 +638,6 @@ components/esp_system/include/esp_int_wdt.h components/esp_system/include/esp_private/dbg_stubs.h components/esp_system/include/esp_private/panic_internal.h components/esp_system/include/esp_private/system_internal.h -components/esp_system/include/esp_task.h components/esp_system/port/arch/riscv/expression_with_stack.c components/esp_system/port/arch/xtensa/expression_with_stack.c components/esp_system/port/public_compat/brownout.h @@ -1985,7 +1984,6 @@ tools/ldgen/output_commands.py tools/ldgen/samples/template.ld tools/ldgen/sdkconfig.py tools/ldgen/test/data/linker_script.ld -tools/mocks/esp_system/include/esp_task.h tools/templates/sample_component/include/main.h tools/templates/sample_component/main.c tools/test_apps/build_system/embed_test/main/test_main.c diff --git a/tools/mocks/esp_system/include/esp_task.h b/tools/mocks/esp_system/include/esp_task.h index b96a2c5bc8..6df80ceb21 100644 --- a/tools/mocks/esp_system/include/esp_task.h +++ b/tools/mocks/esp_system/include/esp_task.h @@ -1,16 +1,8 @@ -// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* + * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ /* Notes: * 1. Put all task priority and stack size definition in this file @@ -48,6 +40,9 @@ #define BT_TASK_EXTRA_STACK_SIZE TASK_EXTRA_STACK_SIZE #define ESP_TASK_BT_CONTROLLER_STACK (3584 + TASK_EXTRA_STACK_SIZE) +/* Ping Task */ +#define ESP_TASK_PING_STACK (2048 + TASK_EXTRA_STACK_SIZE) + /* idf task */ #define ESP_TASKD_EVENT_PRIO (ESP_TASK_PRIO_MAX - 5)