blob: 76f52a99c6ca15fdf365a5fa7da84e80bc7b1005 [file] [log] [blame] [edit]
package(default_visibility = ["//visibility:public"])
# This exists to break a dependency cycle between
# this library and //src/rp2_common/hardware_xosc.
# Application code should always use :hardware_clocks instead.
cc_library(
name = "hardware_clocks_headers",
hdrs = ["include/hardware/clocks.h"],
includes = ["include"],
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
visibility = [
"//src/rp2_common/hardware_pll:__pkg__",
"//src/rp2_common/hardware_xosc:__pkg__",
],
deps = [
"//src/common/pico_base:pico_base_interface",
"//src/rp2_common/pico_platform:hardware_structs",
],
)
cc_library(
name = "hardware_clocks",
srcs = ["clocks.c"],
hdrs = ["include/hardware/clocks.h"],
includes = ["include"],
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
deps = [
"//src/common/pico_base:pico_base_interface",
"//src/rp2_common/hardware_gpio",
"//src/rp2_common/hardware_irq",
"//src/rp2_common/hardware_pll",
"//src/rp2_common/hardware_watchdog",
"//src/rp2_common/hardware_xosc",
"//src/rp2_common/pico_platform:hardware_regs",
"//src/rp2_common/pico_platform:hardware_structs",
"//src/rp2_common/pico_platform:platform_defs",
],
)