Skip to content

Commit 6c84882

Browse files
committed
SPI NoPin
1 parent e78625e commit 6c84882

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/spi.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@ pub enum Error {
133133

134134
use core::marker::PhantomData;
135135

136+
#[allow(non_upper_case_globals)]
136137
pub trait SpiExt: Sized + Instance {
138+
const NoSck: Option<Self::MSck> = None;
139+
const NoMiso: Option<Self::Mi<Floating>> = None;
140+
const NoMosi: Option<Self::Mo> = None;
141+
const NoSSck: Option<Self::SSck> = None;
142+
const NoSo: Option<Self::So<PushPull>> = None;
143+
const NoSi: Option<Self::Si<Floating>> = None;
137144
fn spi<PULL: UpMode>(
138145
self,
139146
pins: (

0 commit comments

Comments
 (0)