diff --git a/src/rp2_common/hardware_flash/BUILD.bazel b/src/rp2_common/hardware_flash/BUILD.bazel index e443e261c..d50d0c73f 100644 --- a/src/rp2_common/hardware_flash/BUILD.bazel +++ b/src/rp2_common/hardware_flash/BUILD.bazel @@ -11,6 +11,7 @@ cc_library( target_compatible_with = compatible_with_rp2(), deps = [ "//src/rp2_common:hardware_structs", + "//src/rp2_common/hardware_xip_cache", "//src/rp2_common:pico_platform", "//src/rp2_common/pico_bootrom", "//src/rp2_common/pico_multicore", diff --git a/src/rp2_common/hardware_xip_cache/BUILD.bazel b/src/rp2_common/hardware_xip_cache/BUILD.bazel new file mode 100644 index 000000000..df81b8e31 --- /dev/null +++ b/src/rp2_common/hardware_xip_cache/BUILD.bazel @@ -0,0 +1,14 @@ +load("//bazel:defs.bzl", "compatible_with_rp2") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "hardware_xip_cache", + srcs = ["xip_cache.c"], + hdrs = ["include/hardware/xip_cache.h"], + includes = ["include"], + target_compatible_with = compatible_with_rp2(), + deps = [ + "//src/rp2_common/hardware_sync", + ], +) diff --git a/test/kitchen_sink/BUILD.bazel b/test/kitchen_sink/BUILD.bazel index ec3ea9fcf..9ecbe23e9 100644 --- a/test/kitchen_sink/BUILD.bazel +++ b/test/kitchen_sink/BUILD.bazel @@ -60,6 +60,7 @@ cc_library( "//src/rp2_common/hardware_uart", "//src/rp2_common/hardware_vreg", "//src/rp2_common/hardware_watchdog", + "//src/rp2_common/hardware_xip_cache", "//src/rp2_common/hardware_xosc", "//src/rp2_common/pico_aon_timer", "//src/rp2_common/pico_bootrom",