-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
101 lines (91 loc) · 3.71 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
[package]
name = "hpm-hal"
version = "0.0.1"
edition = "2021"
authors = ["Andelf <[email protected]>"]
repository = "https://github.com/hpmicro/hpm-hal"
documentation = "https://docs.rs/hpm-hal"
homepage = "https://github.com/hpmicro/hpm-hal"
categories = ["embedded", "hardware-support", "no-std"]
description = "HAL crate for HPMicro's RISC-V MCUs, HPM5300, HPM6700/HPM6400, HPM6200, HPM6300, HPM6800"
keywords = ["hpmicro", "riscv", "hal"]
readme = "README.md"
license = "MIT/Apache-2.0"
[dependencies]
# hpm-metapac = { path = "../hpm-data/build/hpm-metapac" }
hpm-metapac = { version = "0.0.5", git = "https://github.com/hpmicro-rs/hpm-metapac.git", tag = "hpm-data-caa8fd80439f3ac44e0701c4e6cde71a87128ee6" }
hpm-riscv-rt = { version = "0.1.1", optional = true }
andes-riscv = { version = "0.1.1" }
riscv = { version = "0.11", features = ["critical-section-single-hart"] }
embedded-hal = { version = "1.0.0" }
embassy-time-driver = { version = "0.1.0", features = [
"tick-hz-1_000_000",
], optional = true }
embassy-sync = { version = "0.6.1" }
embassy-futures = { version = "0.1.1" }
embassy-hal-internal = { version = "0.2.0", default-features = false }
embassy-time = { version = "0.3.2", optional = true }
embassy-usb-driver = { version = "0.1.0" }
critical-section = "1.1.3"
static_assertions = "1"
defmt = { version = "0.3.8", optional = true }
embedded-io = "0.6.1"
nb = "1.1.0"
futures-util = { version = "0.3.30", default-features = false }
embedded-hal-nb = "1.0.0"
embedded-io-async = "0.6.1"
embedded-hal-async = "1.0.0"
chrono = { version = "0.4.38", default-features = false, optional = true }
mcan = { version = "0.5.0", optional = true }
embedded-storage = "0.3.1"
rand_core = "0.6.4"
[build-dependencies]
# hpm-metapac = { path = "../hpm-data/build/hpm-metapac", default-features = false, features = [
# "metadata",
# ] }
hpm-metapac = { git = "https://github.com/hpmicro-rs/hpm-metapac.git", tag = "hpm-data-caa8fd80439f3ac44e0701c4e6cde71a87128ee6", default-features = false, features = [
"metadata",
] }
proc-macro2 = "1.0.92"
quote = "1.0.37"
[features]
default = ["rt", "embassy", "time"]
rt = ["dep:hpm-riscv-rt", "hpm-metapac/rt"]
defmt = ["dep:defmt", "embassy-usb-driver/defmt"]
time = ["dep:embassy-time"]
embassy = ["dep:embassy-time-driver"]
usb-pin-reuse-hpm5300 = []
mcan = ["dep:mcan"]
chrono = ["dep:chrono"]
hpm5301 = ["hpm-metapac/hpm5301"]
hpm5321 = ["hpm-metapac/hpm5321", "mcan"]
hpm5331 = ["hpm-metapac/hpm5331"]
hpm5361 = ["hpm-metapac/hpm5361", "mcan"]
hpm6220 = ["hpm-metapac/hpm6220"]
hpm6240 = ["hpm-metapac/hpm6240", "mcan"]
hpm6260 = ["hpm-metapac/hpm6260", "mcan"]
hpm6264 = ["hpm-metapac/hpm6264", "mcan"]
hpm6280 = ["hpm-metapac/hpm6280", "mcan"]
hpm6284 = ["hpm-metapac/hpm6284", "mcan"]
hpm6320 = ["hpm-metapac/hpm6320"]
hpm6330 = ["hpm-metapac/hpm6330"]
hpm6340 = ["hpm-metapac/hpm6340"]
hpm6350 = ["hpm-metapac/hpm6350"]
hpm6360 = ["hpm-metapac/hpm6360"]
hpm6364 = ["hpm-metapac/hpm6364"]
hpm6420 = ["hpm-metapac/hpm6420", "hpm-riscv-rt/hpm67-fix"]
hpm6430 = ["hpm-metapac/hpm6430", "hpm-riscv-rt/hpm67-fix"]
hpm6450 = ["hpm-metapac/hpm6450", "hpm-riscv-rt/hpm67-fix"]
hpm6454 = ["hpm-metapac/hpm6454", "hpm-riscv-rt/hpm67-fix"]
hpm64a0 = ["hpm-metapac/hpm64a0", "hpm-riscv-rt/hpm67-fix"]
hpm64g0 = ["hpm-metapac/hpm64g0", "hpm-riscv-rt/hpm67-fix"]
hpm6730 = ["hpm-metapac/hpm6730", "hpm-riscv-rt/hpm67-fix"]
hpm6750 = ["hpm-metapac/hpm6750", "hpm-riscv-rt/hpm67-fix"]
hpm6754 = ["hpm-metapac/hpm6754", "hpm-riscv-rt/hpm67-fix"]
hpm6830 = ["hpm-metapac/hpm6830", "mcan"]
hpm6850 = ["hpm-metapac/hpm6850", "mcan"]
hpm6880 = ["hpm-metapac/hpm6880", "mcan"]
hpm6e50 = ["hpm-metapac/hpm6e50", "mcan"]
hpm6e60 = ["hpm-metapac/hpm6e60", "mcan"]
hpm6e70 = ["hpm-metapac/hpm6e70", "mcan"]
hpm6e80 = ["hpm-metapac/hpm6e80", "mcan"]