• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 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
15import("//build_overrides/pigweed.gni")
16
17PW_SYSTEM_FREERTOS_BACKENDS = {
18  pw_chrono_SYSTEM_CLOCK_BACKEND = "$dir_pw_chrono_freertos:system_clock"
19  pw_chrono_SYSTEM_TIMER_BACKEND = "$dir_pw_chrono_freertos:system_timer"
20  pw_sync_BINARY_SEMAPHORE_BACKEND = "$dir_pw_sync_freertos:binary_semaphore"
21  pw_sync_THREAD_NOTIFICATION_BACKEND =
22      "$dir_pw_sync_freertos:thread_notification"
23  pw_sync_TIMED_THREAD_NOTIFICATION_BACKEND =
24      "$dir_pw_sync_freertos:timed_thread_notification"
25  pw_sync_MUTEX_BACKEND = "$dir_pw_sync_freertos:mutex"
26  pw_sync_TIMED_MUTEX_BACKEND = "$dir_pw_sync_freertos:timed_mutex"
27  pw_sync_INTERRUPT_SPIN_LOCK_BACKEND =
28      "$dir_pw_sync_freertos:interrupt_spin_lock"
29  pw_thread_ID_BACKEND = "$dir_pw_thread_freertos:id"
30  pw_thread_SLEEP_BACKEND = "$dir_pw_thread_freertos:sleep"
31  pw_thread_THREAD_BACKEND = "$dir_pw_thread_freertos:thread"
32  pw_thread_THREAD_ITERATION_BACKEND =
33      "$dir_pw_thread_freertos:thread_iteration"
34  pw_thread_YIELD_BACKEND = "$dir_pw_thread_freertos:yield"
35  pw_system_TARGET_HOOKS_BACKEND = "$dir_pw_system:freertos_target_hooks"
36
37  # Enable pw_third_party_freertos_DISABLE_TASKS_STATICS so thread iteration
38  # works out-of-the-box.
39  pw_third_party_freertos_DISABLE_TASKS_STATICS = true
40}
41