aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/generics.rs4
-rw-r--r--examples/late-resources.rs4
2 files changed, 4 insertions, 4 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,
}
diff --git a/examples/late-resources.rs b/examples/late-resources.rs
index 337fbdfa..69a0ce8a 100644
--- a/examples/late-resources.rs
+++ b/examples/late-resources.rs
@@ -55,7 +55,7 @@ app! {
}
// The signature of `init` is now required to have a specific return type.
-fn init(_p: init::Peripherals, _r: init::Resources) -> init::LateResourceValues {
+fn init(_p: init::Peripherals, _r: init::Resources) -> init::LateResources {
// `init::Resources` does not contain `IP_ADDRESS`, since it is not yet
// initialized.
//_r.IP_ADDRESS; // doesn't compile
@@ -63,7 +63,7 @@ fn init(_p: init::Peripherals, _r: init::Resources) -> init::LateResourceValues
// ...obtain value for IP_ADDRESS from EEPROM/DHCP...
let ip_address = 0x7f000001;
- init::LateResourceValues {
+ init::LateResources {
// This struct will contain fields for all resources with omitted
// initializers.
IP_ADDRESS: ip_address,