1# Copyright 2023 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 15include($ENV{PW_ROOT}/pw_build/pigweed.cmake) 16 17pw_add_library(pw_spi.initiator INTERFACE 18 HEADERS 19 public/pw_spi/initiator.h 20 PUBLIC_INCLUDES 21 public 22 PUBLIC_DEPS 23 pw_assert 24 pw_bytes 25 pw_status 26) 27 28pw_add_library(pw_spi.responder INTERFACE 29 HEADERS 30 public/pw_spi/responder.h 31 PUBLIC_INCLUDES 32 public 33 PUBLIC_DEPS 34 pw_bytes 35 pw_function 36 pw_status 37) 38 39pw_add_library(pw_spi.chip_selector INTERFACE 40 HEADERS 41 public/pw_spi/chip_selector.h 42 PUBLIC_INCLUDES 43 public 44 PUBLIC_DEPS 45 pw_status 46) 47 48pw_add_library(pw_spi.chip_selector_digital_out INTERFACE 49 HEADERS 50 public/pw_spi/chip_selector_digital_out.h 51 PUBLIC_INCLUDES 52 public 53 PUBLIC_DEPS 54 pw_digital_io 55 pw_status 56) 57 58pw_add_library(pw_spi.device INTERFACE 59 HEADERS 60 public/pw_spi/device.h 61 PUBLIC_INCLUDES 62 public 63 PUBLIC_DEPS 64 pw_bytes 65 pw_spi.chip_selector 66 pw_spi.initiator 67 pw_status 68 pw_sync.borrow 69) 70