blob: 72c61c8d25a177a8289defabdea4520d3f2395a7 [file] [log] [blame] [edit]
package(default_visibility = ["//visibility:public"])
alias(
name = "platform_defs",
actual = select({
"//bazel/constraint:rp2040": "//src/rp2040/hardware_regs:platform_defs",
}),
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
)
alias(
name = "hardware_regs",
actual = select({
"//bazel/constraint:rp2040": "//src/rp2040/hardware_regs:hardware_regs",
}),
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
)
alias(
name = "hardware_structs",
actual = select({
"//bazel/constraint:rp2040": "//src/rp2040/hardware_structs:hardware_structs",
}),
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
)
cc_library(
name = "pico_platform",
srcs = ["platform.c"],
hdrs = [
"include/pico/asm_helper.S",
"include/pico/platform.h",
],
includes = ["include"],
target_compatible_with = select({
"//bazel/constraint:rp2": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
deps = [
":hardware_regs",
":platform_defs",
"//src/common/pico_base:pico_base_interface",
"//src/rp2_common/hardware_base",
],
)