aboutsummaryrefslogtreecommitdiff
path: root/examples/generics.rs
diff options
context:
space:
mode:
authorGravatar homunkulus <homunkulus@gmx.com> 2017-12-09 13:47:10 +0000
committerGravatar homunkulus <homunkulus@gmx.com> 2017-12-09 13:47:10 +0000
commit0a0e0e2b382d826ac7b423c91f39d2abf91a010f (patch)
tree5b4e2a8c3319f73a2e74a0ea498067f72c560dc3 /examples/generics.rs
parente78ca98c42a2af1ca9c04d176441b045cd5e8c65 (diff)
parent512091e8a36a4e561500be81533516736ec49340 (diff)
downloadrtic-0a0e0e2b382d826ac7b423c91f39d2abf91a010f.tar.gz
rtic-0a0e0e2b382d826ac7b423c91f39d2abf91a010f.tar.zst
rtic-0a0e0e2b382d826ac7b423c91f39d2abf91a010f.zip
Auto merge of #55 - japaric:late-resources, r=japaric
[RFC] rename LateResourceValues to LateResources After writing `LateResourceValues` several times I now think it's too long to type. I'd like that struct to be renamed to `LateResources`. I don't think there would be a loss in readability with the rename because you can think of "late resources" as resources that "don't exist" until `init` ends instead of as resources that are not initialized after `init` ends -- the second meaning maps better to `LateResourceValues`. This would be a breaking-change but we are moving to v0.3.0 due to #50 in any case. cc jonas-schievink
Diffstat (limited to 'examples/generics.rs')
-rw-r--r--examples/generics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/generics.rs b/examples/generics.rs
index afcafa0a..bc2fe7a8 100644
--- a/examples/generics.rs
+++ b/examples/generics.rs
@@ -32,8 +32,8 @@ app! {
},
}
-fn init(p: init::Peripherals) -> init::LateResourceValues {
- init::LateResourceValues {
+fn init(p: init::Peripherals) -> init::LateResources {
+ init::LateResources {
GPIOA: p.device.GPIOA,
SPI1: p.device.SPI1,
}