Skip to content

Instantly share code, notes, and snippets.

@kaycebasques
Last active January 13, 2024 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaycebasques/f5105ecd436ed6226189c64a2e54daff to your computer and use it in GitHub Desktop.
Save kaycebasques/f5105ecd436ed6226189c64a2e54daff to your computer and use it in GitHub Desktop.
stm32cube submodules
# Run from root repo dir
git submodule add https://pigweed.googlesource.com/third_party/github/FreeRTOS/FreeRTOS-Kernel third_party/freertos &&
git submodule add https://pigweed.googlesource.com/third_party/github/STMicroelectronics/cmsis_core third_party/cmsis_core &&
git submodule add https://pigweed.googlesource.com/third_party/github/STMicroelectronics/cmsis_device_f4 third_party/cmsis_device &&
git submodule add https://pigweed.googlesource.com/third_party/github/STMicroelectronics/stm32f4xx_hal_driver third_party/hal_driver
# Add to //WORKSPACE
new_local_repository(
name = "freertos",
path = "third_party/freertos",
build_file = "@pigweed//third_party/freertos:BUILD.bazel",
)
new_local_repository(
name = "cmsis_core",
path = "third_party/cmsis_core",
build_file = "@pigweed//third_party/stm32cube:cmsis_core.BUILD.bazel",
)
new_local_repository(
name = "cmsis_device",
path = "third_party/cmsis_device",
build_file = "@pigweed//third_party/stm32cube:cmsis_device.BUILD.bazel",
)
new_local_repository(
name = "hal_driver",
path = "third_party/hal_driver",
build_file = "@pigweed//third_party/stm32cube:stm32_hal_driver.BUILD.bazel",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment