Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Viktor Sonesten
lpc43xx-hal
Commits
f1642e97
Commit
f1642e97
authored
5 years ago
by
Viktor Sonesten
Browse files
Options
Download
Patches
Plain Diff
spi/ssp: gate blocking SPI write behind feature
parent
60092d66
feat-ssp-write-only
No related merge requests found
Pipeline
#196
passed with stage
in 3 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Cargo.toml
+1
-0
Cargo.toml
src/spi/ssp.rs
+2
-1
src/spi/ssp.rs
with
3 additions
and
1 deletion
+3
-1
Cargo.toml
+
1
−
0
View file @
f1642e97
...
...
@@ -42,6 +42,7 @@ version = "0.5.1"
default
=
[
"stable"
]
stable
=
[]
nightly
=
[]
ssp-write-only
=
[]
[package.metadata.docs.rs]
features
=
[
"timer-queue"
]
...
...
This diff is collapsed.
Click to expand it.
src/spi/ssp.rs
+
2
−
1
View file @
f1642e97
...
...
@@ -137,7 +137,8 @@ macro_rules! hal_ssp {
// This will fill up and overrun the read FIFO, but it could be useful for use cases
// where the master _never_ wants to read.
//impl embedded_hal::blocking::spi::write::Default<u8> for SpiSsp<$SSP> {}
#[cfg(feature
=
"ssp-write-only"
)]
impl
embedded_hal
::
blocking
::
spi
::
write
::
Default
<
u8
>
for
SpiSsp
<
$SSP
>
{}
)
+
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets