-
Notifications
You must be signed in to change notification settings - Fork 2
/
cargo-generate.toml
118 lines (103 loc) · 3.17 KB
/
cargo-generate.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
[template]
cargo_generate_version = ">=0.19"
ignore = [".git", ".github", "README.md"]
[hooks]
pre = ["pre-script.rhai"]
post = ["post-script.rhai"]
# Embassy option
[placeholders.embassy]
type = "bool"
prompt = "Enable embassy (async) support?"
default = true
[placeholders.mcu_family]
type = "string"
prompt = "Which MCU family to target?"
choices = [
"ch32l003",
"ch32v003",
"ch32v103",
"ch32v203",
"ch32v208",
"ch32v303",
"ch32v305",
"ch32v307",
"ch32x033",
"ch32x035",
"ch641",
]
default = "ch32v003"
[conditional.'mcu_family != "ch32v003" && mcu_family != "ch641"']
ignore = ["riscv32ec-unknown-none-elf.json"]
[conditional.'mcu_family != "ch32v303" && mcu_family != "ch32v305" && mcu_family != "ch32v307"']
ignore = ["riscv32imfc-unknown-none-elf.json"]
[conditional.'mcu_family == "ch32l003"'.placeholders]
mcu = { type = "string", prompt = "Which ch32l003 variant to use?", choices = [
"ch32l103c8t6",
"ch32l103f8p6",
"ch32l103f8u6",
"ch32l103g8r6",
"ch32l103k8u6",
], default = "ch32l103f8p6" }
[conditional.'mcu_family == "ch32v003"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v003 variant to use?", choices = [
"ch32v003a4m6",
"ch32v003f4p6",
"ch32v003f4u6",
"ch32v003j4m6",
], default = "ch32v003f4p6" }
[conditional.'mcu_family == "ch32v103"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v103 variant to use?", choices = [
"ch32v103c6t6",
"ch32v103c8t6",
"ch32v103c8u6",
"ch32v103r8t6",
], default = "ch32v103c8t6" }
[conditional.'mcu_family == "ch32v203"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v203 variant to use?", choices = [
"ch32v203c8t6",
"ch32v203c8u6",
"ch32v203f6p6",
"ch32v203f8p6",
"ch32v203f8u6",
"ch32v203g6u6",
"ch32v203g8r6",
"ch32v203k6t6",
"ch32v203k8t6",
"ch32v203rbt6",
], default = "ch32v203c8t6" }
[conditional.'mcu_family == "ch32v208"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v208 variant to use?", choices = [
"ch32v208cbu6",
"ch32v208gbu6",
"ch32v208rbt6",
"ch32v208wbu6",
], default = "ch32v208rbt6" }
[conditional.'mcu_family == "ch32v303"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v303 variant to use?", choices = [
"ch32v303cbt6",
"ch32v303rbt6",
"ch32v303rct6",
"ch32v303vct6",
], default = "ch32v303rbt6" }
[conditional.'mcu_family == "ch32v305"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v305 variant to use?", choices = [
"ch32v305fbp6",
"ch32v305gbu6",
"ch32v305rbt6",
], default = "ch32v305rbt6" }
[conditional.'mcu_family == "ch32v307"'.placeholders]
mcu = { type = "string", prompt = "Which ch32v307 variant to use?", choices = [
"ch32v307rct6",
"ch32v307vct6",
"ch32v307wcu6",
], default = "ch32v307vct6" }
# ch32x033 and ch641 families have only one variant per family, handled in pre-script.rhai
[conditional.'mcu_family == "ch32x035"'.placeholders]
mcu = { type = "string", prompt = "Which ch32x035 variant to use?", choices = [
"ch32x035c8t6",
"ch32x035f7p6",
"ch32x035f8u6",
"ch32x035g8r6",
"ch32x035g8u6",
"ch32x035r8t6",
], default = "ch32x035f7p6" }