@@ -267,13 +267,13 @@ pub trait TransferConfigProvider {
267
267
#[ derive( Copy , Clone , Debug ) ]
268
268
pub struct TransferConfigWithHwcs < HwCs > {
269
269
pub hw_cs : Option < HwCs > ,
270
- pub cfg : CommonTransferConfig ,
270
+ pub cfg : TransferConfig ,
271
271
}
272
272
273
273
/// Type erased variant of the transfer configuration. This is required to avoid generics in
274
274
/// the SPI constructor.
275
275
#[ derive( Copy , Clone , Debug ) ]
276
- pub struct CommonTransferConfig {
276
+ pub struct TransferConfig {
277
277
pub clk_cfg : Option < SpiClkConfig > ,
278
278
pub mode : Option < Mode > ,
279
279
pub sod : bool ,
@@ -293,7 +293,7 @@ impl TransferConfigWithHwcs<NoneT> {
293
293
) -> Self {
294
294
TransferConfigWithHwcs {
295
295
hw_cs : None ,
296
- cfg : CommonTransferConfig {
296
+ cfg : TransferConfig {
297
297
clk_cfg,
298
298
mode,
299
299
sod,
@@ -314,7 +314,7 @@ impl<HwCs: HwCsProvider> TransferConfigWithHwcs<HwCs> {
314
314
) -> Self {
315
315
TransferConfigWithHwcs {
316
316
hw_cs,
317
- cfg : CommonTransferConfig {
317
+ cfg : TransferConfig {
318
318
clk_cfg,
319
319
mode,
320
320
sod,
@@ -324,7 +324,7 @@ impl<HwCs: HwCsProvider> TransferConfigWithHwcs<HwCs> {
324
324
}
325
325
}
326
326
327
- pub fn downgrade ( self ) -> CommonTransferConfig {
327
+ pub fn downgrade ( self ) -> TransferConfig {
328
328
self . cfg
329
329
}
330
330
}
@@ -591,7 +591,7 @@ where
591
591
spi : SpiI ,
592
592
pins : ( Sck , Miso , Mosi ) ,
593
593
spi_cfg : SpiConfig ,
594
- transfer_cfg : Option < & CommonTransferConfig > ,
594
+ transfer_cfg : Option < & TransferConfig > ,
595
595
) -> Self {
596
596
enable_peripheral_clock ( syscfg, SpiI :: PERIPH_SEL ) ;
597
597
let SpiConfig {
0 commit comments