Skip to content

Commit d4b1e20

Browse files
update nrf-hal
1 parent fbb4f89 commit d4b1e20

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version = "0.0.1"
1010
edition = "2018"
1111

1212
[dependencies]
13-
nrf52840-hal = "0.11.0"
13+
nrf52840-hal = "0.12.0"
1414

1515
[dev-dependencies]
1616
cortex-m-rt = "0.6.13"

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![no_std]
22

33
pub extern crate nrf52840_hal as hal;
4-
use hal::gpio::{p0, p1, Floating, Input};
4+
use hal::gpio::{p0, p1, Disconnected};
55
pub use hal::pac;
66

77
macro_rules! define_pins {
@@ -15,8 +15,8 @@ macro_rules! define_pins {
1515

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

2222
impl $Type {

0 commit comments

Comments
 (0)