Skip to content

Refactoring to support multiple apps#230

Merged
ryan-summers merged 4 commits into
quartiq:masterfrom
vertigo-designs:feature/hardware-module
Jan 20, 2021
Merged

Refactoring to support multiple apps#230
ryan-summers merged 4 commits into
quartiq:masterfrom
vertigo-designs:feature/hardware-module

Conversation

@ryan-summers

Copy link
Copy Markdown
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.

@jordens jordens left a comment

Copy link
Copy Markdown
Member

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