| # Copyright 2023 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. |
| |
| module(name = "examples") |
| |
| bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| bazel_dep(name = "freertos", version = "10.5.1.bcr.2") |
| bazel_dep(name = "nanopb", repo_name = "com_github_nanopb_nanopb") |
| bazel_dep(name = "pico-sdk", version = "2.0.0") |
| bazel_dep(name = "pigweed") |
| bazel_dep(name = "platforms", version = "0.0.10") |
| bazel_dep(name = "pw_toolchain") |
| bazel_dep(name = "rules_cc", version = "0.0.10") |
| bazel_dep(name = "rules_fuzzing", version = "0.5.2") |
| bazel_dep(name = "rules_python", version = "0.34.0") |
| |
| local_path_override( |
| module_name = "pigweed", |
| path = "third_party/pigweed", |
| ) |
| |
| local_path_override( |
| module_name = "pw_toolchain", |
| path = "third_party/pigweed/pw_toolchain_bazel", |
| ) |
| |
| git_override( |
| module_name = "nanopb", |
| commit = "7c6c581bc6f7406a4f01c3b9853251ff0a68458b", |
| remote = "https://github.com/nanopb/nanopb.git", |
| ) |
| |
| http_archive = use_repo_rule( |
| "@bazel_tools//tools/build_defs/repo:http.bzl", |
| "http_archive", |
| ) |
| |
| http_archive( |
| name = "hal_driver", |
| build_file = "@pigweed//third_party/stm32cube:stm32_hal_driver.BUILD.bazel", |
| sha256 = "c8741e184555abcd153f7bdddc65e4b0103b51470d39ee0056ce2f8296b4e835", |
| strip_prefix = "stm32f4xx_hal_driver-1.8.0", |
| urls = ["https://github.com/STMicroelectronics/stm32f4xx_hal_driver/archive/refs/tags/v1.8.0.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "cmsis_device", |
| build_file = "@pigweed//third_party/stm32cube:cmsis_device.BUILD.bazel", |
| sha256 = "6390baf3ea44aff09d0327a3c112c6ca44418806bfdfe1c5c2803941c391fdce", |
| strip_prefix = "cmsis_device_f4-2.6.8", |
| urls = ["https://github.com/STMicroelectronics/cmsis_device_f4/archive/refs/tags/v2.6.8.tar.gz"], |
| ) |
| |
| http_archive( |
| name = "cmsis_core", |
| build_file = "@pigweed//third_party/stm32cube:cmsis_core.BUILD.bazel", |
| sha256 = "32f226c31d7d1ff4a504404400603e047b99f405cd0c9a8f417f1f250251b829", |
| strip_prefix = "cmsis-core-5.4.0_cm4", |
| urls = ["https://github.com/STMicroelectronics/cmsis_core/archive/refs/tags/v5.4.0_cm4.tar.gz"], |
| ) |