driver: Move the update pump into its own file

driver.rs was 1288 lines holding four unrelated jobs. The update pump
is the one with its own state machine, and nothing else touches it.

It goes in driver/update.rs, a child module rather than a sibling, so
it can still read PlatformDriver's private fields. Pure move: the only
edits are the import lists on both sides, mod update, and the re-export
that keeps UpdatePoll's path the same.

Assisted-by: Claude
3 files changed
tree: 41e9f323416c855d6b7d8698ea73afc82a6c3072
  1. .github/
  2. docs/
  3. drivers/
  4. hal/
  5. openprot/
  6. patches/
  7. platform/
  8. presubmit/
  9. services/
  10. target/
  11. third_party/
  12. tools/
  13. util/
  14. .bazelignore
  15. .bazelrc
  16. .bazelversion
  17. .clang-format
  18. .gitignore
  19. .semgrepignore
  20. BUILD.bazel
  21. CONTRIBUTING.md
  22. LICENSE
  23. MODULE.bazel
  24. MODULE.bazel.lock
  25. pw
  26. README.md
  27. rust-toolchain.toml
  28. workflows.json
README.md

OpenPRoT

Technical Charter

The OpenPRoT Technical Charter can be found at https://github.com/OpenPRoT/.github/blob/main/GOVERNANCE.md

Getting Started

NOTE: We are converting our build system to bazel. We recommend installing bazelisk to automatically manage bazel versions.

Available Tasks

You can run tasks using the Pigweed workflow launcher pw or bazel.

  • ./pw presubmit - Run presubmit checks: formatting, license checks, C/C++ header checks and clippy.
  • ./pw format - Run the code formatters.
  • bazel test //... - Run all tests.
  • bazel build //docs - Build documentation.

Development

The project is structured as a bazel module.

Requirements

  • Bazel. We recommend installing bazelisk to automatically manage bazel versions.

No additional tools are required - all dependencies are managed by bazel.