This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
79 lines (68 loc) · 2.07 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
[package]
name = "ch32v20x-hal"
version = "0.1.0"
edition = "2021"
authors = ["Andelf <[email protected]>"]
categories = ["embedded", "hardware-support", "no-std"]
description = "HAL for the CH32V20x family of microcontrollers"
keywords = ["risc-v", "wch", "ch32", "hal"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ch32-rs/ch32v20x-hal"
documentation = "https://docs.rs/ch32v20x-hal"
readme = "README.md"
[dependencies]
ch32v2 = { path = "../ch32-rs-nightlies/ch32v2", version = "0.1.6", features = [
"ch32v20x",
"critical-section",
] }
# ch32v2 = { version = "0.1.5", features = ["ch32v20x", "critical-section"] }
# provide implementation for critical-section
riscv = { version = "0.10.0", features = ["critical-section-single-hart"] }
riscv-rt = "0.11"
nb = "1.0"
fugit = "0.3.6"
fugit-timer = "0.1.3"
embedded-hal = { version = "0.2.7", features = ["unproven"] }
embedded-hal-alpha = { version = "=1.0.0-alpha.9", package = "embedded-hal" }
[dev-dependencies.time]
version = "0.3"
default-features = false
features = ["macros"]
[features]
default = ["ch32v203"]
device-selected = []
ch32v203 = [] # svd-feature
ch32v208 = []
#
ch32v203f6 = [] # 32K Flash 10K SRAM
ch32v203g6 = ["device-selected", "ch32v203"] # 32K 10K
ch32v203k6 = [] # 32K 10K
ch32v203c6 = [] # 32K 10K
ch32v203f8 = [] # 64K 20K
ch32v203g8 = [] # 64K 20K
ch32v203k8 = [] # 64K 20K
ch32v203c8 = [] # 64K 20K
ch32v203rb = [
"device-selected",
"ch32v203",
] # 128K 64K, HSE must be 32M, PLLXTPRE has /4 and /8, ETH-PHY added
ch32v208gb = [] # 128K 64K
ch32v208cb = [] # 128K 64K
ch32v208rb = [] # 128K 64K
ch32v208wb = [] # 128K 64K
[dev-dependencies]
riscv = { version = "0.10.0", features = ["critical-section-single-hart"] }
riscv-rt = "0.11"
panic-halt = "0.2.0"
[[example]]
name = "blinky"
# change this to the device you want to run the example on
required-features = ["device-selected"]
[[example]]
name = "serial"
# change this to the device you want to run the example on
required-features = ["device-selected"]
[profile.release]
strip = false
lto = true
opt-level = "z" # Optimize for size.