targets/rp2040: Link software atomic operations

This links in pw_atomic's software implementations of atomic operations
into the RP2040 target builds. These will be required by a future
pw_metric update.

This isn't required in the Bazel build as it already pulls in the Pico
SDK, which provides atomics.

Change-Id: I17ada5d74eadf04eb8481de511c25a96e376c1c5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/examples/+/261592
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Alexei Frolov <frolv@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
diff --git a/targets/rp2040/BUILD.gn b/targets/rp2040/BUILD.gn
index f3fea38..0313ed9 100644
--- a/targets/rp2040/BUILD.gn
+++ b/targets/rp2040/BUILD.gn
@@ -51,6 +51,7 @@
     pw_build_LINK_DEPS += [
       "$dir_pigweed/targets/rp2040:pre_init",
       "$dir_pw_assert:impl",
+      "$dir_pw_atomic:atomic_cortex_m",
       "$dir_pw_cpu_exception:entry_impl",
       "$dir_pw_log:impl",
     ]