Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run examples/mobc on c2a-sils-runtime #45

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

sksat
Copy link
Member

@sksat sksat commented Aug 2, 2023

概要

examples/mobcc2a-sils-runtime に載せて動作可能にします

Issue / PR

詳細

#44 と同様に,"c2a-runtime" と呼ばれている,C2A を Rust 製の runtime(ここでは c2a-sils-runtime)に載せ,ハードウェア抽象化レイヤ(c2a-hal)を Rust で実装可能にし,Cargo で一撃でビルド・単体動作(S2E 不要の SILS)可能にするものを examples/mobc に導入します.

また,examples/mobc の CCSDS のエミュレーションのため,c2a-example-mobc-ccsds-kble crate を実装しています.これにより,テレコマ接続を kble 経由で引き回すことが可能です.

  • runtime: c2a-sils-runtime
  • HAL impl
    • c2a-example-mobc-ccsds-kble
    • c2a-uart-kble
    • c2a-wdt-noop

検証結果

cargo run -p c2a-example-mobc
2023-08-02_17-05

影響範囲

OSS 版 c2a-core mobc example が cargo run できるようになる

@sksat sksat added enhancement New feature or request priority::high priorityg high tools labels Aug 2, 2023
@sksat sksat self-assigned this Aug 2, 2023
@sksat sksat changed the title Run mobc example on c2a runtime Run examples/mobc on c2a runtime Aug 2, 2023
Cargo.toml Outdated
"./examples/subobc",
]

[workspace.dependencies]
c2a-core = { path = "." }
c2a-bind-utils = { path = "./Library/bind-utils", version = "3.10" } # TODO: release
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは c2a-core crate 自身も使ってるので,c2a-corecargo publish のために cargo publish しないといけないやつです.まあでもこっちでは単に path 指定だけでいい気がするな.

@sksat sksat changed the title Run examples/mobc on c2a runtime Run examples/mobc on c2a-sils-runtime Aug 2, 2023
Copy link
Member

@meltingrabbit meltingrabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#49 を近日中に書く,という条件付きで Approve です

Base automatically changed from feature/run-subobc-example-on-c2a-runtime to develop August 3, 2023 01:05
@sksat sksat merged commit 2bb13f8 into develop Aug 3, 2023
24 checks passed
@sksat sksat deleted the feature/run-mobc-example-on-c2a-runtime branch August 3, 2023 01:05
sksat pushed a commit that referenced this pull request Oct 2, 2023
テレコマDBのパスを設定できるようにする
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority::high priorityg high tools
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants