@@ -3,21 +3,17 @@ name = "stm32-hrtim"
33version = " 0.1.0"
44edition = " 2021"
55
6- [dependencies ]
6+ [patch .crates-io ]
7+ stm32-hrtim = { path = " ." }
8+
9+ [patch ."https://github .com/usbalbin/stm32-hrtim" ]
10+ stm32-hrtim = { path = " ." }
711
12+ [dependencies ]
813stm32f3 = { git = " https://github.com/stm32-rs/stm32-rs-nightlies" , optional = true }
9- stm32h7 = { git = " https://github.com/stm32-rs/stm32-rs-nightlies" , fatures = [" critical-section" ], optional = true }
10- # stm32g4 = { git = "", optional = true }
11-
12- # stm32f3xx-hal = { version = "0.10.0", optional = true }
13- stm32f3xx-hal = { git = " https://github.com/usbalbin/stm32f3xx-hal" , branch = " update_for_new_pac" , optional = true }
14- # stm32h7xx-hal = { version = "0.16.0", optional = true }
15- stm32h7xx-hal = { git = " https://github.com/usbalbin/stm32h7xx-hal" , branch = " update_for_new_pac" , optional = true }
16- # stm32h7xx-hal = { path = "../stm32h7xx-hal", optional = true }
17-
18- # stm32g4xx-hal = { version = "0.0.1", optional = true }
19- stm32g4xx-hal = { git = " https://github.com/stm32-rs/stm32g4xx-hal" , branch = " staged-pac" , optional = true }
20- # stm32g4xx-hal = { path = "../stm32g4xx-hal", optional = true }
14+ stm32h7 = { git = " https://github.com/stm32-rs/stm32-rs-nightlies" , features = [" critical-section" ], optional = true }
15+ stm32g4 = { version = " 0.22.0" , package = " stm32g4-staging" , optional = true }
16+
2117defmt = { version = " 0.3.10" , optional = true }
2218fugit = " 0.3.7"
2319
@@ -26,6 +22,7 @@ cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
2622defmt-rtt = " 0.4.0"
2723cortex-m-rt = " 0.7.2"
2824panic-probe = { version = " 0.3.0" , features = [" print-defmt" ] }
25+ stm32g4xx-hal = { git = " https://github.com/usbalbin/stm32g4xx-hal" , branch = " hrtim" , features = [" defmt" , " hrtim" ] }
2926
3027[features ]
3128default = []
@@ -38,30 +35,20 @@ stm32f3 = ["stm32f3/stm32f3x4"]
3835stm32h7 = [" dep:stm32h7" ]
3936stm32g4 = []
4037
41- stm32f334x4 = [" stm32f3" , " stm32f3xx-hal/stm32f334x4" , " hrtim_v1" ]
42- stm32f334x6 = [" stm32f3" , " stm32f3xx-hal/stm32f334x6" , " hrtim_v1" ]
43- stm32f334x8 = [" stm32f3" , " stm32f3xx-hal/stm32f334x8" , " hrtim_v1" ]
44-
45- stm32h742 = [" stm32h7" , " stm32h7xx-hal/stm32h742" , " hrtim_v1_1" ]
46- stm32h743 = [" stm32h7" , " stm32h7xx-hal/stm32h743" , " hrtim_v1_1" ]
47- # stm32h745 = ["stm32h7", "stm32h7xx-hal/stm32h745", "hrtim_v1_1"]
48- stm32h747cm7 = [" stm32h7" , " stm32h7xx-hal/stm32h747cm7" , " hrtim_v1_1" ]
49- stm32h750 = [" stm32h7" , " stm32h7xx-hal/stm32h750" , " hrtim_v1_1" ]
50- stm32h753 = [" stm32h7" , " stm32h7xx-hal/stm32h753" , " hrtim_v1_1" ]
51- # stm32h755 = ["stm32h7", "stm32h7xx-hal/stm32h755", "hrtim_v1_1"]
52- # stm32h757 = ["stm32h7", "stm32h7xx-hal/stm32h757", "hrtim_v1_1"]
53-
54- stm32g474 = [" stm32g4" , " stm32g4xx-hal/stm32g474" , " hrtim_v2" ]
55- stm32g484 = [" stm32g4" , " stm32g4xx-hal/stm32g484" , " hrtim_v2" ]
56- defmt = [" dep:defmt" , " fugit/defmt" ]
38+ stm32f334 = [" stm32f3/stm32f3x4" , " hrtim_v1" ]
5739
58- # F3
59-
60- [[example ]]
61- name = " stm32f3"
62- required-features = [" stm32f3" ]
63- path = " examples/stm32f3/hrtim.rs"
40+ stm32h742 = [" stm32h7/stm32h742" , " hrtim_v1_1" ]
41+ stm32h743 = [" stm32h7/stm32h743" , " hrtim_v1_1" ]
42+ # stm32h745 = ["stm32h7/stm32h745", "hrtim_v1_1"]
43+ stm32h747cm7 = [" stm32h7/stm32h747cm7" , " hrtim_v1_1" ]
44+ stm32h750 = [" stm32h7/stm32h750" , " hrtim_v1_1" ]
45+ stm32h753 = [" stm32h7/stm32h753" , " hrtim_v1_1" ]
46+ # stm32h755 = ["stm32h7/stm32h755", "hrtim_v1_1"]
47+ # stm32h757 = ["stm32h7/stm32h757", "hrtim_v1_1"]
6448
49+ stm32g474 = [" stm32g4/stm32g474" , " stm32g4xx-hal/stm32g474" , " hrtim_v2" ]
50+ stm32g484 = [" stm32g4/stm32g484" , " stm32g4xx-hal/stm32g484" , " hrtim_v2" ]
51+ defmt = [" dep:defmt" , " fugit/defmt" ]
6552
6653# G4
6754
@@ -108,11 +95,4 @@ path = "examples/stm32g4/hrtim.rs"
10895[[example ]]
10996name = " stm32g4-master"
11097required-features = [" stm32g4" ]
111- path = " examples/stm32g4/master.rs"
112-
113- # H7
114-
115- [[example ]]
116- name = " stm32h7"
117- required-features = [" stm32h7" ]
118- path = " examples/stm32h7/hrtim.rs"
98+ path = " examples/stm32g4/master.rs"
0 commit comments