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