xref: /aosp_15_r20/external/pigweed/pw_i2c_mcuxpresso/BUILD.bazel (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2022 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.
14load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test")
15
16package(default_visibility = ["//visibility:public"])
17
18licenses(["notice"])
19
20cc_library(
21    name = "pw_i2c_mcuxpresso",
22    srcs = ["initiator.cc"],
23    hdrs = ["public/pw_i2c_mcuxpresso/initiator.h"],
24    strip_include_prefix = "public",
25    deps = [
26        "//pw_chrono:system_clock",
27        "//pw_i2c:address",
28        "//pw_i2c:initiator",
29        "//pw_status",
30        "//pw_sync:interrupt_spin_lock",
31        "//pw_sync:lock_annotations",
32        "//pw_sync:mutex",
33        "//pw_sync:timed_thread_notification",
34        "//targets:mcuxpresso_sdk",
35    ],
36)
37
38pw_cc_test(
39    name = "initiator_test",
40    srcs = ["initiator_test.cc"],
41    deps = [":pw_i2c_mcuxpresso"],
42)
43
44cc_library(
45    name = "i3c_ccc",
46    hdrs = [
47        "public/pw_i2c_mcuxpresso/i3c_ccc.h",
48    ],
49    strip_include_prefix = "public",
50)
51
52cc_library(
53    name = "i3c_initiator",
54    srcs = ["i3c_initiator.cc"],
55    hdrs = [
56        "public/pw_i2c_mcuxpresso/i3c_initiator.h",
57    ],
58    strip_include_prefix = "public",
59    deps = [
60        ":i3c_ccc",
61        "//pw_bytes",
62        "//pw_chrono:system_clock",
63        "//pw_containers:vector",
64        "//pw_i2c:address",
65        "//pw_i2c:initiator",
66        "//pw_log",
67        "//pw_status",
68        "//pw_sync:mutex",
69        "//targets:mcuxpresso_sdk",
70        "//third_party/fuchsia:stdcompat",
71    ],
72)
73