WIP Remove static muts from examples#513
Closed
tlevora wants to merge 3 commits into
Closed
Conversation
For the future, need to investigate: * How to implement DMA without requiring the lifetime of the buffer to be 'static * How to specific the link_section of non-static buffers
This was referenced Dec 7, 2024
Member
|
As discussed in #512, dereferencing a I think it should be something like #[link_section = ".axisram.eth"]
static DES_RING: MaybeUninit<SomeKindOfUnsafeCell<ethernet::DesRing<4, 4>>> = MaybeUninit::uninit();but need to work out what |
Member
|
Also related rust-embedded/cortex-m#538 |
|
Is it OK to use stm32h7xx-hal/examples/adc_dma.rs Line 49 in 0735f79 |
Contributor
Author
|
I am sorry I haven't replied here for a long time. I like #518 and do not have a better solution, so that closing this PR. In specific situations I would use something like https://crates.io/crates/linker-sections, but probably not here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.