rp2040: enable pw_cpu_exception backends for the rp2040 target
Fixes: b/354811840
Bug: b/354767156
Change-Id: Ic28414574c8af37a86a56f362b192bf0b0e07d9b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/examples/+/225531
Commit-Queue: Dave Roth <davidroth@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/targets/rp2040/BUILD.gn b/targets/rp2040/BUILD.gn
index dc93a57..f3fea38 100644
--- a/targets/rp2040/BUILD.gn
+++ b/targets/rp2040/BUILD.gn
@@ -29,6 +29,14 @@
get_path_info("$dir_pigweed/targets/rp2040/pico_executable.gni",
"abspath")
+ pw_assert_BACKEND = dir_pw_assert_trap
+ pw_assert_LITE_BACKEND = dir_pw_assert_trap
+
+ pw_cpu_exception_ENTRY_BACKEND =
+ "$dir_pw_cpu_exception_cortex_m:cpu_exception_armv6m"
+ pw_cpu_exception_HANDLER_BACKEND = "$dir_pw_cpu_exception:basic_handler"
+ pw_cpu_exception_SUPPORT_BACKEND = "$dir_pw_cpu_exception_cortex_m:support"
+
pw_log_BACKEND = dir_pw_log_tokenized
pw_log_tokenized_HANDLER_BACKEND = "$dir_pw_system:log_backend.impl"
@@ -36,10 +44,14 @@
"$dir_pigweed/targets/rp2040:rp2040_freertos_config"
pw_third_party_freertos_PORT = "$dir_pw_third_party/freertos:arm_cm0"
+ pw_sync_INTERRUPT_SPIN_LOCK_BACKEND =
+ "$dir_pw_sync_freertos:interrupt_spin_lock"
+
pw_sys_io_BACKEND = dir_pw_sys_io_rp2040
pw_build_LINK_DEPS += [
"$dir_pigweed/targets/rp2040:pre_init",
"$dir_pw_assert:impl",
+ "$dir_pw_cpu_exception:entry_impl",
"$dir_pw_log:impl",
]