Skip to content

Commit

Permalink
update nrf-hal
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobrosenthal committed Dec 6, 2020
1 parent fbb4f89 commit d4b1e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version = "0.0.1"
edition = "2018"

[dependencies]
nrf52840-hal = "0.11.0"
nrf52840-hal = "0.12.0"

[dev-dependencies]
cortex-m-rt = "0.6.13"
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_std]

pub extern crate nrf52840_hal as hal;
use hal::gpio::{p0, p1, Floating, Input};
use hal::gpio::{p0, p1, Disconnected};
pub use hal::pac;

macro_rules! define_pins {
Expand All @@ -15,8 +15,8 @@ macro_rules! define_pins {

$(#[$topattr])*
pub struct $Type {
$($(#[$attr])* pub $name: p0:: $pin_type <Input<Floating>>,)+
$($(#[$attr1])* pub $name1: p1:: $pin_type1 <Input<Floating>>,)+
$($(#[$attr])* pub $name: p0:: $pin_type <Disconnected>,)+
$($(#[$attr1])* pub $name1: p1:: $pin_type1 <Disconnected>,)+
}

impl $Type {
Expand Down

0 comments on commit d4b1e20

Please sign in to comment.