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

Refactoring to support multiple apps #230

Merged
merged 4 commits into from
Jan 20, 2021
Merged

Refactoring to support multiple apps #230

merged 4 commits into from
Jan 20, 2021

Conversation

ryan-summers
Copy link
Member

This PR closes #218 by configuring all hardware interfaces to a default-off state. They may be enabled by using the associated start() function, which allows for selective usage of adcs/dacs/timestampers. Additionally, all hardware configuration has been moved to src/hardware/configuration.rs to facilitate easily writing multiple applications without copying the initialization code.

@jordens Would you mind taking a look at the structure? I haven't touched the idle task as I believe that will be changing significantly as soon as we refactor to use MQTT and the new settings configurations.

Testing

I ran a square wave input signal to ADC0 and measured the expected output signal on DAC0 with the expected delay.

Copy link
Member

@jordens jordens left a comment

Choose a reason for hiding this comment

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

Nice.
I think that we'll want to have the files with src/main.rs -> bin/dual-iir.rs and then src/lib.rs collecting all the exports. Like https://github.com/knurling-rs/app-template/tree/main/src

@ryan-summers ryan-summers merged commit 058e474 into quartiq:master Jan 20, 2021
@ryan-summers ryan-summers deleted the feature/hardware-module branch January 20, 2021 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support selective feature usage and multiple binary support
2 participants