File tree Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Expand file tree Collapse file tree 8 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ embedded-hal = "0.2.3"
2323embedded-graphics-core = { version = " 0.3.2" , optional = true }
2424
2525[dev-dependencies ]
26- cortex-m = " 0.6.0 "
26+ cortex-m = " 0.7.3 "
2727cortex-m-rt = " 0.6.10"
2828embedded-graphics = " 0.7.1"
2929panic-semihosting = " 0.5.2"
3030
3131[dev-dependencies .stm32f1xx-hal ]
32- version = " 0.4 .0"
32+ version = " 0.7 .0"
3333features = [ " rt" , " stm32f103" ]
3434
3535[features ]
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() -> ! {
5858 (scl , sda ),
5959 & mut afio . mapr,
6060 Mode :: Fast {
61- frequency : 400_000 ,
61+ frequency : 100. khz () . into () ,
6262 duty_cycle : DutyCycle :: Ratio2to1 ,
6363 },
6464 clocks ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ fn main() -> ! {
5252 ( scl, sda) ,
5353 & mut afio. mapr ,
5454 Mode :: Fast {
55- frequency : 100_000 ,
55+ frequency : 100 . khz ( ) . into ( ) ,
5656 duty_cycle : DutyCycle :: Ratio2to1 ,
5757 } ,
5858 clocks,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ fn main() -> ! {
4242 ( scl, sda) ,
4343 & mut afio. mapr ,
4444 Mode :: Fast {
45- frequency : 100_000 ,
45+ frequency : 100 . khz ( ) . into ( ) ,
4646 duty_cycle : DutyCycle :: Ratio2to1 ,
4747 } ,
4848 clocks,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() -> ! {
5858 ( scl, sda) ,
5959 & mut afio. mapr ,
6060 Mode :: Fast {
61- frequency : 100_000 ,
61+ frequency : 100 . khz ( ) . into ( ) ,
6262 duty_cycle : DutyCycle :: Ratio2to1 ,
6363 } ,
6464 clocks,
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ fn main() -> ! {
5353 ( scl, sda) ,
5454 & mut afio. mapr ,
5555 Mode :: Fast {
56- frequency : 100_000 ,
56+ frequency : 100 . khz ( ) . into ( ) ,
5757 duty_cycle : DutyCycle :: Ratio2to1 ,
5858 } ,
5959 clocks,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() -> ! {
5858 ( scl, sda) ,
5959 & mut afio. mapr ,
6060 Mode :: Fast {
61- frequency : 100_000 ,
61+ frequency : 100 . khz ( ) . into ( ) ,
6262 duty_cycle : DutyCycle :: Ratio2to1 ,
6363 } ,
6464 clocks,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ fn main() -> ! {
5454 ( scl, sda) ,
5555 & mut afio. mapr ,
5656 Mode :: Fast {
57- frequency : 100_000 ,
57+ frequency : 100 . khz ( ) . into ( ) ,
5858 duty_cycle : DutyCycle :: Ratio2to1 ,
5959 } ,
6060 clocks,
You can’t perform that action at this time.
0 commit comments