DevC refactor #40

Merged
sb10q merged 1 commits from pca006132/zynq-rs:devc into master 2020-06-16 15:56:36 +08:00
  • Refactored raw u32 pointers into enum type with slice.
  • Made DMA transaction blocking, so it should be safe as the user cannot drop the slice before DMA complete. Still thinking if a non-blocking unsafe interface would be needed later. Ref: Embedonomicon DMA chapter
  • Implemented timeout checking for reset, DMA complete and done signal.
* Refactored raw `u32` pointers into enum type with slice. * Made DMA transaction blocking, so it should be safe as the user cannot drop the slice before DMA complete. Still thinking if a non-blocking unsafe interface would be needed later. Ref: [Embedonomicon DMA chapter](https://docs.rust-embedded.org/embedonomicon/dma.html) * Implemented timeout checking for reset, DMA complete and done signal.

Still thinking if a non-blocking unsafe interface would be needed later.

No, in our case the CPU has nothing to do until the PL is loaded.

> Still thinking if a non-blocking unsafe interface would be needed later. No, in our case the CPU has nothing to do until the PL is loaded.
sb10q closed this pull request 2020-06-16 15:56:36 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/zynq-rs#40
There is no content yet.