aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Kröger <[email protected]>2022-08-08 19:25:50 +0200
committerTimo Kröger <[email protected]>2022-08-26 15:44:58 +0200
commit308ca4b8e3c4a4ef6c1711528dd7561b75c61aa8 (patch)
tree4c4fcfb9739654249e6fd742f529d199b79bcb73
parent60ca5e8479e951b220299ea32bfc48b1909edd1c (diff)
Use `pub(crate)` visibility for internal SPI
SubGhz provides a public interface for the radio connected to internal SPI `#[allow(dead_code)]` is required for CI to succeed
-rw-r--r--embassy-stm32/src/spi/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/spi/mod.rs b/embassy-stm32/src/spi/mod.rs
index 1a00f4187..77609bd0f 100644
--- a/embassy-stm32/src/spi/mod.rs
+++ b/embassy-stm32/src/spi/mod.rs
@@ -181,7 +181,8 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
181 181
182 /// Useful for on chip peripherals like SUBGHZ which are hardwired. 182 /// Useful for on chip peripherals like SUBGHZ which are hardwired.
183 /// The bus can optionally be exposed externally with `Spi::new()` still. 183 /// The bus can optionally be exposed externally with `Spi::new()` still.
184 pub fn new_internal( 184 #[allow(dead_code)]
185 pub(crate) fn new_internal(
185 peri: impl Peripheral<P = T> + 'd, 186 peri: impl Peripheral<P = T> + 'd,
186 txdma: impl Peripheral<P = Tx> + 'd, 187 txdma: impl Peripheral<P = Tx> + 'd,
187 rxdma: impl Peripheral<P = Rx> + 'd, 188 rxdma: impl Peripheral<P = Rx> + 'd,