2024-06-13 22:50:04 +08:00
|
|
|
load("//bazel:defs.bzl", "compatible_with_rp2")
|
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "pico_divider_test",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["pico_divider_test.c"],
|
|
|
|
target_compatible_with = compatible_with_rp2(),
|
|
|
|
deps = [
|
2024-08-08 19:02:04 +08:00
|
|
|
"//src/rp2_common/pico_divider",
|
|
|
|
"//src/rp2_common/pico_stdlib",
|
2024-06-13 22:50:04 +08:00
|
|
|
] + select({
|
|
|
|
"//bazel/constraint:host": [],
|
|
|
|
"//conditions:default": [
|
|
|
|
"//src/rp2_common/hardware_dma",
|
|
|
|
"//src/rp2_common/hardware_irq",
|
|
|
|
"//src/rp2_common/hardware_vreg",
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "pico_divider_nesting_test",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["pico_divider_nesting_test.c"],
|
|
|
|
target_compatible_with = compatible_with_rp2(),
|
|
|
|
deps = [
|
2024-08-08 19:02:04 +08:00
|
|
|
"//src/rp2_common/pico_divider",
|
|
|
|
"//src/rp2_common/pico_stdlib",
|
2024-06-13 22:50:04 +08:00
|
|
|
] + select({
|
|
|
|
"//bazel/constraint:host": [],
|
|
|
|
"//conditions:default": [
|
|
|
|
"//src/rp2_common/hardware_dma",
|
|
|
|
"//src/rp2_common/hardware_irq",
|
|
|
|
"//src/rp2_common/hardware_vreg",
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
)
|