Skip to content

Commit fa7668b

Browse files
committed
Implement a polling async SPI interface
1 parent 90a8c3c commit fa7668b

File tree

2 files changed

+414
-117
lines changed

2 files changed

+414
-117
lines changed

nrf52-hal-common/src/gpio.rs

+8
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,32 @@
55
use core::marker::PhantomData;
66

77
/// Input mode (type state)
8+
#[derive(Debug)]
89
pub struct Input<MODE> {
910
_mode: PhantomData<MODE>,
1011
}
1112

1213
/// Floating input (type state)
14+
#[derive(Debug)]
1315
pub struct Floating;
1416
/// Pulled down input (type state)
17+
#[derive(Debug)]
1518
pub struct PullDown;
1619
/// Pulled up input (type state)
20+
#[derive(Debug)]
1721
pub struct PullUp;
1822

1923
/// Output mode (type state)
24+
#[derive(Debug)]
2025
pub struct Output<MODE> {
2126
_mode: PhantomData<MODE>,
2227
}
2328

2429
/// Push pull output (type state)
30+
#[derive(Debug)]
2531
pub struct PushPull;
2632
/// Open drain output (type state)
33+
#[derive(Debug)]
2734
pub struct OpenDrain;
2835

2936
// /// Alternate function
@@ -43,6 +50,7 @@ pub enum Level {
4350
// across all of the possible pins
4451
// ===============================================================
4552
/// Generic $PX pin
53+
#[derive(Debug)]
4654
pub struct Pin<MODE> {
4755
pub pin: u8,
4856
#[cfg(feature = "52840")]

0 commit comments

Comments
 (0)