blob: 7152804c25f45db59f7c5eecdd390f772a565ace [file] [log] [blame]
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"],
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"],
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",
],
)