Skip to content

Commit 29ceb06

Browse files
Cryowatteldruin
authored andcommitted
Bumping package versions
Rolled back dev-dependencies to previous versions to avoid breaking all of the examples
1 parent 53bbd79 commit 29ceb06

File tree

6 files changed

+40
-40
lines changed

6 files changed

+40
-40
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ as-slice = "0.2"
2121
cortex-m = "0.7.4"
2222
cortex-m-rt = ">=0.6.15, <0.8"
2323
nb = "1.0"
24-
stm32f7 = "0.14.0"
24+
stm32f7 = "0.15"
2525
micromath = "2.0"
26-
synopsys-usb-otg = { version = "0.2.3", features = ["cortex-m"], optional = true }
27-
stm32-fmc = { version = "0.2.0", features = ["sdram"], optional = true }
26+
synopsys-usb-otg = { version = "0.3", features = ["cortex-m"], optional = true }
27+
stm32-fmc = { version = "0.3", features = ["sdram"], optional = true }
2828
rand_core = "0.6"
2929
bxcan = "0.7"
3030
bare-metal = "1.0"

src/dma.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,22 +741,22 @@ pub trait SupportedWordSize: private::Sealed + Unpin + 'static {
741741
impl private::Sealed for u8 {}
742742
impl SupportedWordSize for u8 {
743743
fn msize() -> cr::MSIZE_A {
744-
cr::MSIZE_A::BITS8
744+
cr::MSIZE_A::Bits8
745745
}
746746

747747
fn psize() -> cr::PSIZE_A {
748-
cr::MSIZE_A::BITS8
748+
cr::MSIZE_A::Bits8
749749
}
750750
}
751751

752752
impl private::Sealed for u16 {}
753753
impl SupportedWordSize for u16 {
754754
fn msize() -> cr::MSIZE_A {
755-
cr::MSIZE_A::BITS16
755+
cr::MSIZE_A::Bits16
756756
}
757757

758758
fn psize() -> cr::PSIZE_A {
759-
cr::MSIZE_A::BITS16
759+
cr::MSIZE_A::Bits16
760760
}
761761
}
762762

src/rcc.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,33 +1277,33 @@ impl BusTimerClock for APB2 {
12771277
impl From<MCO1> for crate::pac::rcc::cfgr::MCO1_A {
12781278
fn from(input: MCO1) -> Self {
12791279
match input {
1280-
MCO1::Hsi => Self::HSI,
1281-
MCO1::Lse => Self::LSE,
1282-
MCO1::Hse => Self::HSE,
1283-
MCO1::Pll => Self::PLL,
1280+
MCO1::Hsi => Self::Hsi,
1281+
MCO1::Lse => Self::Lse,
1282+
MCO1::Hse => Self::Hse,
1283+
MCO1::Pll => Self::Pll,
12841284
}
12851285
}
12861286
}
12871287

12881288
impl From<MCO2> for crate::pac::rcc::cfgr::MCO2_A {
12891289
fn from(input: MCO2) -> Self {
12901290
match input {
1291-
MCO2::Sysclk => Self::SYSCLK,
1292-
MCO2::Plli2s => Self::PLLI2S,
1293-
MCO2::Hse => Self::HSE,
1294-
MCO2::Pll => Self::PLL,
1291+
MCO2::Sysclk => Self::Sysclk,
1292+
MCO2::Plli2s => Self::Plli2s,
1293+
MCO2::Hse => Self::Hse,
1294+
MCO2::Pll => Self::Pll,
12951295
}
12961296
}
12971297
}
12981298

12991299
impl From<MCOPRE> for crate::pac::rcc::cfgr::MCO2PRE_A {
13001300
fn from(input: MCOPRE) -> Self {
13011301
match input {
1302-
MCOPRE::Div1_no_div => Self::DIV1,
1303-
MCOPRE::Div2 => Self::DIV2,
1304-
MCOPRE::Div3 => Self::DIV3,
1305-
MCOPRE::Div4 => Self::DIV4,
1306-
MCOPRE::Div5 => Self::DIV5,
1302+
MCOPRE::Div1_no_div => Self::Div1,
1303+
MCOPRE::Div2 => Self::Div2,
1304+
MCOPRE::Div3 => Self::Div3,
1305+
MCOPRE::Div4 => Self::Div4,
1306+
MCOPRE::Div5 => Self::Div5,
13071307
}
13081308
}
13091309
}

src/spi.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,22 +759,22 @@ pub trait SupportedWordSize: dma::SupportedWordSize + private::Sealed {
759759
impl private::Sealed for u8 {}
760760
impl SupportedWordSize for u8 {
761761
fn frxth() -> cr2::FRXTH_A {
762-
cr2::FRXTH_A::QUARTER
762+
cr2::FRXTH_A::Quarter
763763
}
764764

765765
fn ds() -> cr2::DS_A {
766-
cr2::DS_A::EIGHTBIT
766+
cr2::DS_A::EightBit
767767
}
768768
}
769769

770770
impl private::Sealed for u16 {}
771771
impl SupportedWordSize for u16 {
772772
fn frxth() -> cr2::FRXTH_A {
773-
cr2::FRXTH_A::HALF
773+
cr2::FRXTH_A::Half
774774
}
775775

776776
fn ds() -> cr2::DS_A {
777-
cr2::DS_A::SIXTEENBIT
777+
cr2::DS_A::SixteenBit
778778
}
779779
}
780780

src/timer.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ macro_rules! with_pwm {
376376
let tim = unsafe { &*<$TIM>::ptr() };
377377
match channel {
378378
0 => {
379-
tim.ccr1.read().bits()
379+
tim.ccr1().read().bits()
380380
}
381381
_ => 0,
382382
}
@@ -388,7 +388,7 @@ macro_rules! with_pwm {
388388
#[allow(unused_unsafe)]
389389
match channel {
390390
0 => {
391-
tim.ccr1.write(|w| unsafe { w.bits(value) })
391+
tim.ccr1().write(|w| unsafe { w.bits(value) })
392392
}
393393
_ => {},
394394
}
@@ -433,10 +433,10 @@ macro_rules! with_pwm {
433433
let tim = unsafe { &*<$TIM>::ptr() };
434434
match channel {
435435
0 => {
436-
tim.ccr1.read().bits()
436+
tim.ccr1().read().bits()
437437
}
438438
1 => {
439-
tim.ccr2.read().bits()
439+
tim.ccr2().read().bits()
440440
}
441441
_ => 0,
442442
}
@@ -448,10 +448,10 @@ macro_rules! with_pwm {
448448
#[allow(unused_unsafe)]
449449
match channel {
450450
0 => {
451-
tim.ccr1.write(|w| unsafe { w.bits(value) })
451+
tim.ccr1().write(|w| unsafe { w.bits(value) })
452452
}
453453
1 => {
454-
tim.ccr2.write(|w| unsafe { w.bits(value) })
454+
tim.ccr2().write(|w| unsafe { w.bits(value) })
455455
}
456456
_ => {},
457457
}
@@ -500,16 +500,16 @@ macro_rules! with_pwm {
500500
let tim = unsafe { &*<$TIM>::ptr() };
501501
let ccr = match channel {
502502
0 => {
503-
&tim.ccr1
503+
tim.ccr1()
504504
}
505505
1 => {
506-
&tim.ccr2
506+
tim.ccr2()
507507
}
508508
2 => {
509-
&tim.ccr3
509+
tim.ccr3()
510510
}
511511
_ => {
512-
&tim.ccr4
512+
tim.ccr4()
513513
}
514514
};
515515
ccr.read().bits()
@@ -520,16 +520,16 @@ macro_rules! with_pwm {
520520
let tim = unsafe { &*<$TIM>::ptr() };
521521
let ccr = match channel {
522522
0 => {
523-
&tim.ccr1
523+
tim.ccr1()
524524
}
525525
1 => {
526-
&tim.ccr2
526+
tim.ccr2()
527527
}
528528
2 => {
529-
&tim.ccr3
529+
tim.ccr3()
530530
}
531531
_ => {
532-
&tim.ccr4
532+
tim.ccr4()
533533
}
534534
};
535535
ccr.write(|w| unsafe { w.bits(value) })

src/timer/pwm_input.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ macro_rules! hal {
182182
{
183183
/// Period of PWM signal in terms of clock cycles
184184
pub fn get_period_clocks(&self) -> <$TIM as General>::Width {
185-
self.tim.ccr1.read().ccr().bits()
185+
self.tim.ccr1().read().ccr().bits()
186186
}
187187
/// Duty cycle in terms of clock cycles
188188
pub fn get_duty_cycle_clocks(&self) -> <$TIM as General>::Width {
189-
self.tim.ccr2.read().ccr().bits()
189+
self.tim.ccr2().read().ccr().bits()
190190
}
191191
/// Observed duty cycle as a float in range [0.00, 1.00]
192192
pub fn get_duty_cycle(&self) -> f32 {

0 commit comments

Comments
 (0)