-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
45 lines (42 loc) · 1.45 KB
/
BUILD.bazel
File metadata and controls
45 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//bazel:defs.bzl", "compatible_with_rp2")
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 = compatible_with_rp2(),
visibility = [
"//src/rp2_common/hardware_pll:__pkg__",
"//src/rp2_common/hardware_rosc:__pkg__",
"//src/rp2_common/hardware_xosc:__pkg__",
],
deps = [
"//src/common/pico_base_headers",
"//src/common/pico_util",
"//src/rp2_common:hardware_structs",
"//src/rp2_common/hardware_base",
],
)
cc_library(
name = "hardware_clocks",
srcs = ["clocks.c"],
hdrs = ["include/hardware/clocks.h"],
includes = ["include"],
target_compatible_with = compatible_with_rp2(),
deps = [
"//src/common/pico_base_headers",
"//src/rp2_common:hardware_regs",
"//src/rp2_common:hardware_structs",
"//src/rp2_common:platform_defs",
"//src/rp2_common/hardware_base",
"//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",
],
)