-
Notifications
You must be signed in to change notification settings - Fork 22
/
Cargo.toml
145 lines (129 loc) · 5.53 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[package]
name = "ch32-hal"
version = "0.1.0"
edition = "2021"
authors = ["Andelf <[email protected]>"]
repository = "https://github.com/ch32-rs/ch32-hal"
documentation = "https://docs.rs/ch32-hal"
homepage = "https://github.com/andech32-rslf/ch32-hal"
categories = ["embedded", "no-std", "hardware-support"]
description = "HAL for the WCH's RISC-V family of microcontrollers"
keywords = ["ch32v", "risc-v", "hal"]
readme = "README.md"
license = "MIT OR Apache-2.0"
[dependencies]
ch32-metapac = { features = [
"rt",
], git = "https://github.com/ch32-rs/ch32-metapac", rev = "b1cbc7a98e43af3fd3170821654784e2c01cb26b" }
qingke = { version = "0.5.0", features = ["critical-section-impl"] }
qingke-rt = { version = "0.5.0", optional = true }
# TODO: remove this
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [
"unproven",
] }
embedded-hal = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = "1.0.0"
critical-section = { version = "1.2.0" }
defmt = { version = "0.3.8", optional = true }
embassy-sync = { version = "0.6.0" }
embassy-futures = { version = "0.1.1" }
embassy-time-driver = { version = "0.1.0", optional = true }
embassy-time = { version = "0.3.2", optional = true }
embassy-usb-driver = "0.1.0"
nb = "1.1.0"
embedded-hal-nb = "1.0.0"
futures = { version = "0.3.31", default-features = false, features = [
"async-await",
] }
rand_core = "0.6.3"
sdio-host = "0.5.0"
embassy-hal-internal = "0.2.0"
[build-dependencies]
ch32-metapac = { features = [
"metadata",
], git = "https://github.com/ch32-rs/ch32-metapac", rev = "b1cbc7a98e43af3fd3170821654784e2c01cb26b" }
proc-macro2 = "1.0"
quote = "1.0"
[features]
default = ["embassy", "rt"]
rt = ["dep:qingke-rt"]
highcode = ["qingke-rt/highcode"]
embassy = [
"dep:embassy-time-driver",
"dep:embassy-time",
]
defmt = ["dep:defmt"]
memory-x = ["ch32-metapac/memory-x"]
# Features starting with `_` are for internal use only. They're not intended
# to be enabled by other crates, and are not covered by semver guarantees.
_time-driver = []
## Use any time driver
time-driver-any = ["_time-driver"]
## Use TIM1 as time driver
time-driver-tim1 = ["_time-driver"]
## Use TIM2 as time driver
time-driver-tim2 = ["_time-driver"]
## Use TIM3 as time driver
time-driver-tim3 = ["_time-driver"]
## Use TIM4 as time driver
time-driver-tim4 = ["_time-driver"]
## Use TIM5 as time driver
time-driver-tim5 = ["_time-driver"]
## Use TIM8 as time driver
time-driver-tim8 = ["_time-driver"]
## Use TIM9 as time driver
time-driver-tim9 = ["_time-driver"]
## Use TIM10 as time driver
time-driver-tim10 = ["_time-driver"]
# Chip-selection features
ch32l103c8t6 = ["ch32-metapac/ch32l103c8t6", "qingke-rt/v4"]
ch32l103f7p6 = ["ch32-metapac/ch32l103f7p6", "qingke-rt/v4"]
ch32l103f8p6 = ["ch32-metapac/ch32l103f8p6", "qingke-rt/v4"]
ch32l103f8u6 = ["ch32-metapac/ch32l103f8u6", "qingke-rt/v4"]
ch32l103g8r6 = ["ch32-metapac/ch32l103g8r6", "qingke-rt/v4"]
ch32l103k8u6 = ["ch32-metapac/ch32l103k8u6", "qingke-rt/v4"]
ch32v003a4m6 = ["ch32-metapac/ch32v003a4m6", "qingke-rt/v2"]
ch32v003f4p6 = ["ch32-metapac/ch32v003f4p6", "qingke-rt/v2"]
ch32v003f4u6 = ["ch32-metapac/ch32v003f4u6", "qingke-rt/v2"]
ch32v003j4m6 = ["ch32-metapac/ch32v003j4m6", "qingke-rt/v2"]
ch32v103c6t6 = ["ch32-metapac/ch32v103c6t6", "qingke-rt/v3"]
ch32v103c8t6 = ["ch32-metapac/ch32v103c8t6", "qingke-rt/v3"]
ch32v103c8u6 = ["ch32-metapac/ch32v103c8u6", "qingke-rt/v3"]
ch32v103r8t6 = ["ch32-metapac/ch32v103r8t6", "qingke-rt/v3"]
ch32v203c6t6 = ["ch32-metapac/ch32v203c6t6", "qingke-rt/v4"]
ch32v203c8t6 = ["ch32-metapac/ch32v203c8t6", "qingke-rt/v4"]
ch32v203c8u6 = ["ch32-metapac/ch32v203c8u6", "qingke-rt/v4"]
ch32v203f6p6 = ["ch32-metapac/ch32v203f6p6", "qingke-rt/v4"]
ch32v203f8p6 = ["ch32-metapac/ch32v203f8p6", "qingke-rt/v4"]
ch32v203f8u6 = ["ch32-metapac/ch32v203f8u6", "qingke-rt/v4"]
ch32v203g6u6 = ["ch32-metapac/ch32v203g6u6", "qingke-rt/v4"]
ch32v203g8r6 = ["ch32-metapac/ch32v203g8r6", "qingke-rt/v4"]
ch32v203k6t6 = ["ch32-metapac/ch32v203k6t6", "qingke-rt/v4"]
ch32v203k8t6 = ["ch32-metapac/ch32v203k8t6", "qingke-rt/v4"]
ch32v203rbt6 = ["ch32-metapac/ch32v203rbt6", "qingke-rt/v4"]
ch32v208cbu6 = ["ch32-metapac/ch32v208cbu6", "qingke-rt/v4"]
ch32v208gbu6 = ["ch32-metapac/ch32v208gbu6", "qingke-rt/v4"]
ch32v208rbt6 = ["ch32-metapac/ch32v208rbt6", "qingke-rt/v4"]
ch32v208wbu6 = ["ch32-metapac/ch32v208wbu6", "qingke-rt/v4"]
ch32v303cbt6 = ["ch32-metapac/ch32v303cbt6", "qingke-rt/v4"]
ch32v303rbt6 = ["ch32-metapac/ch32v303rbt6", "qingke-rt/v4"]
ch32v303rct6 = ["ch32-metapac/ch32v303rct6", "qingke-rt/v4"]
ch32v303vct6 = ["ch32-metapac/ch32v303vct6", "qingke-rt/v4"]
ch32v305fbp6 = ["ch32-metapac/ch32v305fbp6", "qingke-rt/v4"]
ch32v305gbu6 = ["ch32-metapac/ch32v305gbu6", "qingke-rt/v4"]
ch32v305rbt6 = ["ch32-metapac/ch32v305rbt6", "qingke-rt/v4"]
ch32v307rct6 = ["ch32-metapac/ch32v307rct6", "qingke-rt/v4"]
ch32v307vct6 = ["ch32-metapac/ch32v307vct6", "qingke-rt/v4"]
ch32v307wcu6 = ["ch32-metapac/ch32v307wcu6", "qingke-rt/v4"]
ch32x033f8p6 = ["ch32-metapac/ch32x033f8p6", "qingke-rt/v4"]
ch32x034f8p6 = ["ch32-metapac/ch32x034f8p6", "qingke-rt/v4"]
ch32x034f8u6 = ["ch32-metapac/ch32x034f8u6", "qingke-rt/v4"]
ch32x035c8t6 = ["ch32-metapac/ch32x035c8t6", "qingke-rt/v4"]
ch32x035f7p6 = ["ch32-metapac/ch32x035f7p6", "qingke-rt/v4"]
ch32x035f8u6 = ["ch32-metapac/ch32x035f8u6", "qingke-rt/v4"]
ch32x035g8r6 = ["ch32-metapac/ch32x035g8r6", "qingke-rt/v4"]
ch32x035g8u6 = ["ch32-metapac/ch32x035g8u6", "qingke-rt/v4"]
ch32x035r8t6 = ["ch32-metapac/ch32x035r8t6", "qingke-rt/v4"]
ch641 = ["ch32-metapac/ch641", "qingke-rt/v2"]
# TODO
# ch643 = []