Skip to content

Commit c34fbb0

Browse files
committed
renaming
1 parent 8434ec8 commit c34fbb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

va108xx-hal/src/spi.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@ pub trait TransferConfigProvider {
267267
#[derive(Copy, Clone, Debug)]
268268
pub struct TransferConfigWithHwcs<HwCs> {
269269
pub hw_cs: Option<HwCs>,
270-
pub cfg: CommonTransferConfig,
270+
pub cfg: TransferConfig,
271271
}
272272

273273
/// Type erased variant of the transfer configuration. This is required to avoid generics in
274274
/// the SPI constructor.
275275
#[derive(Copy, Clone, Debug)]
276-
pub struct CommonTransferConfig {
276+
pub struct TransferConfig {
277277
pub clk_cfg: Option<SpiClkConfig>,
278278
pub mode: Option<Mode>,
279279
pub sod: bool,
@@ -293,7 +293,7 @@ impl TransferConfigWithHwcs<NoneT> {
293293
) -> Self {
294294
TransferConfigWithHwcs {
295295
hw_cs: None,
296-
cfg: CommonTransferConfig {
296+
cfg: TransferConfig {
297297
clk_cfg,
298298
mode,
299299
sod,
@@ -314,7 +314,7 @@ impl<HwCs: HwCsProvider> TransferConfigWithHwcs<HwCs> {
314314
) -> Self {
315315
TransferConfigWithHwcs {
316316
hw_cs,
317-
cfg: CommonTransferConfig {
317+
cfg: TransferConfig {
318318
clk_cfg,
319319
mode,
320320
sod,
@@ -324,7 +324,7 @@ impl<HwCs: HwCsProvider> TransferConfigWithHwcs<HwCs> {
324324
}
325325
}
326326

327-
pub fn downgrade(self) -> CommonTransferConfig {
327+
pub fn downgrade(self) -> TransferConfig {
328328
self.cfg
329329
}
330330
}
@@ -591,7 +591,7 @@ where
591591
spi: SpiI,
592592
pins: (Sck, Miso, Mosi),
593593
spi_cfg: SpiConfig,
594-
transfer_cfg: Option<&CommonTransferConfig>,
594+
transfer_cfg: Option<&TransferConfig>,
595595
) -> Self {
596596
enable_peripheral_clock(syscfg, SpiI::PERIPH_SEL);
597597
let SpiConfig {

0 commit comments

Comments
 (0)