1 # Copyright 2020 The Pigweed Authors
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
7 # https://www.apache.org/licenses/LICENSE-2.0
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
16 "//pw_build:pigweed.bzl",
20 package(default_visibility = ["//visibility:public"])
22 licenses(["notice"]) # Apache License 2.0
24 # TODO(pwbug/101): Need to add support for facades/backends to Bazel.
25 PW_INTERRUPT_CONTEXT_BACKEND = "//pw_interrupt_context_cortex_m:context_armv7m"
28 name = "context_facade",
30 "public/pw_interrupt/context.h",
32 includes = ["public"],
37 PW_INTERRUPT_CONTEXT_BACKEND + "_headers",
45 PW_INTERRUPT_CONTEXT_BACKEND + "_headers",
50 name = "context_backend",
52 PW_INTERRUPT_CONTEXT_BACKEND,