1# Copyright 2020 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15declare_args() { 16 # If compiling backends with freertos, this variable is set to the path to the 17 # freertos installation. When set, a pw_source_set for the freertos library is 18 # created at "$dir_pw_third_party/freertos". 19 dir_pw_third_party_freertos = "" 20 21 # The pw_source_set which provides the FreeRTOS config header. 22 pw_third_party_freertos_CONFIG = "" 23 24 # The pw_source_set which provides the port specific includes and sources. 25 pw_third_party_freertos_PORT = "" 26 27 # In order to link against internal kernel data structures through the use of 28 # extern "C", statics can be optionally disabled for the tasks.c source file 29 # to enable use of things like pw_thread_freertos/util.h's ForEachThread. 30 # 31 # WARNING: If you use this, make sure that your FreeRTOSConfig.h and port 32 # does not rely on any statics inside of tasks.c. For example, you cannot use 33 # PW_CHECK for configASSERT when this is enabled. 34 # 35 # As a helper PW_THIRD_PARTY_FREERTOS_NO_STATICS=1 is defined when statics are 36 # disabled to help manage conditional configuration. In addition a helper 37 # pw_third_party_freertos/assert_config.h header is provided which correctly 38 # sets configASSERT to use PW_CHECK or PW_ASSERT for you. 39 pw_third_party_freertos_DISABLE_TASKS_STATICS = false 40} 41