mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Merge #259
259: Fixed peripherals -> device typo r=japaric a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
This commit is contained in:
commit
f9b30a1ff8
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ Change this:
|
|||
const APP: () = {
|
||||
#[init]
|
||||
fn init() {
|
||||
peripherals.SOME_PERIPHERAL.write(something);
|
||||
device.SOME_PERIPHERAL.write(something);
|
||||
}
|
||||
|
||||
// ..
|
||||
|
@ -128,7 +128,7 @@ const APP: () = {
|
|||
#[init]
|
||||
fn init(cx: init::Context) {
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
cx.peripherals.SOME_PERIPHERAL.write(something);
|
||||
cx.device.SOME_PERIPHERAL.write(something);
|
||||
// ^^^
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue