spi: specify expectations regarding peripheral state between transactions
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- embedded-iot
Hướng nghiên cứu
Start by reviewing the SPI device traits and transaction abstraction described in the issue, then compare HAL behavior for transactions and DMA transactions. Determine how expectations for peripheral state between transactions should be specified across implementations; done means generic device drivers can rely on a defined bus state during multi-transaction communication sequences.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, SPI device traits deal with a transaction concept, which implies transmission of some data, while the CS is set for the whole duration. There is currently no guidance on how should the peripheral behave between transactions.
Issue
Certain SPI devices require bus synchronization, which means that the bus must not be disabled for the entire communication sequence and all lines must be kept in a known state (especially CLK). Communications sequence spans multiple SPI transactions.
Cause
Some HAL implementations disable SPI after each transaction, some don't. Some do it only after DMA transaction, some do it after each transaction. This unpredictable behavior of bus lanes, prevents a creation of generic device drivers that require synchronization.
Proposed solution
Embedded-hal should allow for specifying certain expectations regarding SPI bus state, to allow for correct behavior of device drivers for different HAL implementations.
- Ngôn ngữ chính
- Rust
- Star
- 2.7k
- Fork
- 283
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rust-embedded/embedded-hal
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
rust-embedded/embedded-hal#742 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
rust-embedded/embedded-hal#747 · 5 bình luận · 1 reaction ·
-
Write without providing a bufferĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
rust-embedded/embedded-hal#746 · 2 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
rust-embedded/embedded-hal#745 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
rust-embedded/embedded-hal#744 · 1 bình luận ·
Tất cả issue của rust-embedded/embedded-hal
Issue tương tự
-
units: No `#` in rustdoc headingĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100
rust-bitcoin/rust-bitcoin#7089 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area/tools bug session-analysis
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Python OpenTelemetrySectionConfig has no file_sinksCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NVIDIA/NeMo-Relay#1514 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
prompting proposal tool triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
can1357/oh-my-pi#17041 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
README crane example out of dateĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
nix-community/fenix#262 ·