Commit graph

4 commits

Author SHA1 Message Date
Sean Cross
ca32e4f9c1 macros: call xous::init() at init-time
This allows for hooking things like the panic handler.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-29 19:39:34 +08:00
Sean Cross
ef33cc577f macros: use matches!() to fix build warning
This is a new feature, and Rust really wants us to use it.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-10-29 19:39:12 +08:00
Sean Cross
dfd11f846d hosted: fix hosted builds
We can now run `cargo xtask run` and it will do the right thing.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-18 13:52:43 +08:00
Sean Cross
3ed964507d xous: add #[xous::xous_main] proc-macro
This is used to annotate a main function that is compatible with both
hosted and baremetal environments.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-08-14 16:44:08 +08:00