package(default_visibility = ["//visibility:public"]) | |
cc_library( | |
name = "pico_i2c_slave", | |
srcs = ["i2c_slave.c"], | |
hdrs = ["include/pico/i2c_slave.h"], | |
includes = ["include"], | |
target_compatible_with = select({ | |
"//bazel/constraint:rp2": [], | |
"//conditions:default": ["@platforms//:incompatible"], | |
}), | |
deps = [ | |
"//src/rp2_common/hardware_i2c", | |
"//src/rp2_common/hardware_irq", | |
], | |
) |