blob: a13d1e4b9df95278713773155f03ec3f5d319a35 [file]
load("@rules_cc//cc:cc_library.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "hardware_rtc",
srcs = ["rtc.c"],
hdrs = ["include/hardware/rtc.h"],
includes = ["include"],
# TODO: Only rp2040 has a hardware/structs/rtc.h header.
target_compatible_with = ["//bazel/constraint:rp2040"],
deps = [
"//src/rp2_common:hardware_structs",
"//src/rp2_common:pico_platform_internal",
"//src/rp2_common/hardware_clocks",
"//src/rp2_common/hardware_irq",
"//src/rp2_common/hardware_resets",
],
)