pw_spi_rp2040: Renamed from pw_spi_pico
Change-Id: I1d8c20e25e5b8d14c508b72e831353585d7aeb7b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/171702
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Erik Gilling <konkers@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/applications/app_common_impl/BUILD.gn b/applications/app_common_impl/BUILD.gn
index 9e05df3..559b2dd 100644
--- a/applications/app_common_impl/BUILD.gn
+++ b/applications/app_common_impl/BUILD.gn
@@ -139,7 +139,7 @@
"$dir_pw_ft6236",
"$dir_pw_i2c_rp2040",
"$dir_pw_log",
- "$dir_pw_spi_pico",
+ "$dir_pw_spi_rp2040",
"$dir_pw_sync:borrow",
"$dir_pw_sync:mutex",
]
diff --git a/applications/app_common_impl/common_pico.cc b/applications/app_common_impl/common_pico.cc
index bc35519..e4ac057 100644
--- a/applications/app_common_impl/common_pico.cc
+++ b/applications/app_common_impl/common_pico.cc
@@ -27,8 +27,8 @@
#include "pw_i2c_rp2040/initiator.h"
#include "pw_log/log.h"
#include "pw_pixel_pusher_rp2040_pio/pixel_pusher.h"
-#include "pw_spi_pico/chip_selector.h"
-#include "pw_spi_pico/initiator.h"
+#include "pw_spi_rp2040/chip_selector.h"
+#include "pw_spi_rp2040/initiator.h"
#include "pw_status/status.h"
#include "pw_sync/borrow.h"
#include "pw_sync/mutex.h"
diff --git a/build_overrides/pigweed.gni b/build_overrides/pigweed.gni
index bdf8f80..f1117f3 100644
--- a/build_overrides/pigweed.gni
+++ b/build_overrides/pigweed.gni
@@ -106,8 +106,8 @@
get_path_info("$dir_pigweed_experimental/pw_spi_arduino", "abspath")
dir_pw_i2c_rp2040 =
get_path_info("$dir_pigweed_experimental/pw_i2c_rp2040", "abspath")
- dir_pw_spi_pico =
- get_path_info("$dir_pigweed_experimental/pw_spi_pico", "abspath")
+ dir_pw_spi_rp2040 =
+ get_path_info("$dir_pigweed_experimental/pw_spi_rp2040", "abspath")
dir_pw_spi_stm32cube =
get_path_info("$dir_pigweed_experimental/pw_spi_stm32cube", "abspath")
dir_pw_spin_delay =
diff --git a/pw_spi_pico/BUILD.gn b/pw_spi_rp2040/BUILD.gn
similarity index 91%
rename from pw_spi_pico/BUILD.gn
rename to pw_spi_rp2040/BUILD.gn
index b77a1e4..6ec87d3 100644
--- a/pw_spi_pico/BUILD.gn
+++ b/pw_spi_rp2040/BUILD.gn
@@ -20,11 +20,11 @@
include_dirs = [ "public" ]
}
-pw_source_set("pw_spi_pico") {
+pw_source_set("pw_spi_rp2040") {
public_configs = [ ":default_config" ]
public = [
- "public/pw_spi_pico/chip_selector.h",
- "public/pw_spi_pico/initiator.h",
+ "public/pw_spi_rp2040/chip_selector.h",
+ "public/pw_spi_rp2040/initiator.h",
]
public_deps = [
"$PICO_ROOT/src/rp2_common/hardware_spi",
diff --git a/pw_spi_pico/chip_selector.cc b/pw_spi_rp2040/chip_selector.cc
similarity index 95%
rename from pw_spi_pico/chip_selector.cc
rename to pw_spi_rp2040/chip_selector.cc
index 54d9552..c0d4ac0 100644
--- a/pw_spi_pico/chip_selector.cc
+++ b/pw_spi_rp2040/chip_selector.cc
@@ -12,7 +12,7 @@
// License for the specific language governing permissions and limitations under
// the License.
-#include "pw_spi_pico/chip_selector.h"
+#include "pw_spi_rp2040/chip_selector.h"
using pw::digital_io::State;
diff --git a/pw_spi_pico/initiator.cc b/pw_spi_rp2040/initiator.cc
similarity index 98%
rename from pw_spi_pico/initiator.cc
rename to pw_spi_rp2040/initiator.cc
index ad03f8d..8b15e64 100644
--- a/pw_spi_pico/initiator.cc
+++ b/pw_spi_rp2040/initiator.cc
@@ -12,7 +12,7 @@
// License for the specific language governing permissions and limitations under
// the License.
-#include "pw_spi_pico/initiator.h"
+#include "pw_spi_rp2040/initiator.h"
#include <algorithm>
diff --git a/pw_spi_pico/public/pw_spi_pico/chip_selector.h b/pw_spi_rp2040/public/pw_spi_rp2040/chip_selector.h
similarity index 100%
rename from pw_spi_pico/public/pw_spi_pico/chip_selector.h
rename to pw_spi_rp2040/public/pw_spi_rp2040/chip_selector.h
diff --git a/pw_spi_pico/public/pw_spi_pico/initiator.h b/pw_spi_rp2040/public/pw_spi_rp2040/initiator.h
similarity index 100%
rename from pw_spi_pico/public/pw_spi_pico/initiator.h
rename to pw_spi_rp2040/public/pw_spi_rp2040/initiator.h