-
Notifications
You must be signed in to change notification settings - Fork 191
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
splitting app source code in multiple files #639
Comments
You can implement tasks external to the app macro. (I think for now init/idle needs to be internal in the app, eventually we will support all task types, there is a PR on the way, but some implementation work remains...) For a small example see: /Per |
Ok thanks for the tip |
Hmm.. been fighting with this for some time.. but I really don't seem to be able to access the RTIC main The |
In my secondary file I have |
Hi @sakian thanks for your response on this (long dead) topic! I got things working (more or less) the way I desire. In my app I have When I chuck all the Another thing I noticed is that having a qualified/mod name in the extern block's function name, seems to break things. This does not work: ( One has to extern "Rust" {
#[task()]
fn mymod::foo(_c: foo::Context, _x: i32, _y: u32);
} All in all I got working what was needed, so that's good. Some more elaborate (multi file) examples resembling a "real" application would be a welcome addition for RTIC imho.. |
Is there a way to split the app module source code into different files ? Each of my attempts feels like hitting some wall. The main issue seems to be that having a non-inline module inside a macro is currently unstable. Is everybody else keeping the whole app in a single file ?
The text was updated successfully, but these errors were encountered: