1load("//bazel:defs.bzl", "compatible_with_rp2")
2
3package(default_visibility = ["//visibility:public"])
4
5cc_library(
6    name = "hardware_exception",
7    srcs = ["exception.c"],
8    hdrs = ["include/hardware/exception.h"],
9    includes = ["include"],
10    target_compatible_with = compatible_with_rp2(),
11    deps = [
12        "//src/rp2_common:hardware_structs",
13        "//src/rp2_common:pico_platform",
14        "//src/rp2_common:platform_defs",
15        "//src/rp2_common/hardware_base",
16        "//src/rp2_common/hardware_sync",
17    ],
18)
19
20# TODO: RISC-V support.
21filegroup(
22    name = "exception_table_riscv",
23    srcs = ["exception_table_riscv.S"],
24)
25