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
This commit is contained in:
parent
60ca5e8479
commit
308ca4b8e3
@ -181,7 +181,8 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
|
|||||||
|
|
||||||
/// Useful for on chip peripherals like SUBGHZ which are hardwired.
|
/// Useful for on chip peripherals like SUBGHZ which are hardwired.
|
||||||
/// The bus can optionally be exposed externally with `Spi::new()` still.
|
/// The bus can optionally be exposed externally with `Spi::new()` still.
|
||||||
pub fn new_internal(
|
#[allow(dead_code)]
|
||||||
|
pub(crate) fn new_internal(
|
||||||
peri: impl Peripheral<P = T> + 'd,
|
peri: impl Peripheral<P = T> + 'd,
|
||||||
txdma: impl Peripheral<P = Tx> + 'd,
|
txdma: impl Peripheral<P = Tx> + 'd,
|
||||||
rxdma: impl Peripheral<P = Rx> + 'd,
|
rxdma: impl Peripheral<P = Rx> + 'd,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user