pw_package: Add Pi Pico SDK

Change-Id: I5a4c984a020c6a9ed6681249b7ea0268c150154c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/89147
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/pw_package/py/BUILD.gn b/pw_package/py/BUILD.gn
index 03d49e7..bfc46a8 100644
--- a/pw_package/py/BUILD.gn
+++ b/pw_package/py/BUILD.gn
@@ -36,6 +36,7 @@
     "pw_package/packages/mbedtls.py",
     "pw_package/packages/micro_ecc.py",
     "pw_package/packages/nanopb.py",
+    "pw_package/packages/pico_sdk.py",
     "pw_package/packages/protobuf.py",
     "pw_package/packages/stm32cube.py",
     "pw_package/pigweed_packages.py",
diff --git a/pw_package/py/pw_package/packages/pico_sdk.py b/pw_package/py/pw_package/packages/pico_sdk.py
new file mode 100644
index 0000000..2a68fc6
--- /dev/null
+++ b/pw_package/py/pw_package/packages/pico_sdk.py
@@ -0,0 +1,40 @@
+# Copyright 2022 The Pigweed Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#     https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+"""Install and check status of the Raspberry Pi Pico SDK."""
+
+import pathlib
+from typing import Sequence
+
+import pw_package.git_repo
+import pw_package.package_manager
+
+
+class PiPicoSdk(pw_package.git_repo.GitRepo):
+    """Install and check status of the Raspberry Pi Pico SDK."""
+    def __init__(self, *args, **kwargs):
+        super().__init__(*args,
+                         name='pico_sdk',
+                         url='https://github.com/raspberrypi/pico-sdk',
+                         commit='2062372d203b372849d573f252cf7c6dc2800c0a',
+                         **kwargs)
+
+    def info(self, path: pathlib.Path) -> Sequence[str]:
+        return (
+            f'{self.name} installed in: {path}',
+            "Enable by running 'gn args out' and adding this line:",
+            f'  PICO_SRC_DIR = "{path}"',
+        )
+
+
+pw_package.package_manager.register(PiPicoSdk)
diff --git a/pw_package/py/pw_package/pigweed_packages.py b/pw_package/py/pw_package/pigweed_packages.py
index 98c3a82..59e0919 100644
--- a/pw_package/py/pw_package/pigweed_packages.py
+++ b/pw_package/py/pw_package/pigweed_packages.py
@@ -25,6 +25,7 @@
 from pw_package.packages import mbedtls  # pylint: disable=unused-import
 from pw_package.packages import micro_ecc  # pylint: disable=unused-import
 from pw_package.packages import nanopb
+from pw_package.packages import pico_sdk  # pylint: disable=unused-import
 from pw_package.packages import protobuf  # pylint: disable=unused-import
 from pw_package.packages import stm32cube  # pylint: disable=unused-import