@@ -3,7 +3,7 @@ use clap::Parser;
3
3
use std:: path:: PathBuf ;
4
4
5
5
use svdtools:: {
6
- convert:: convert_cli, html:: htmlcompare_cli, interrupts:: interrupts_cli,
6
+ convert:: convert_cli, html:: html_cli , html :: htmlcompare_cli, interrupts:: interrupts_cli,
7
7
makedeps:: makedeps_cli, mmap:: mmap_cli, patch:: patch_cli,
8
8
} ;
9
9
@@ -82,13 +82,23 @@ enum Command {
82
82
#[ clap( long) ]
83
83
format_config : Option < PathBuf > ,
84
84
} ,
85
+ /// Generates webpage with tables of existing peripherals
85
86
Htmlcompare {
86
- /// Path to output html files
87
+ /// Path to write HTML files to
87
88
htmldir : PathBuf ,
88
89
89
90
/// Input SVD XML files
90
91
svdfiles : Vec < PathBuf > ,
91
92
} ,
93
+ /// Generates a webpage for a given SVD file containing details on every
94
+ /// peripheral and register and their level of coverage.
95
+ Html {
96
+ /// Path to write HTML files to
97
+ htmldir : PathBuf ,
98
+
99
+ /// Path to patched SVD files
100
+ svdfiles : Vec < PathBuf > ,
101
+ } ,
92
102
}
93
103
94
104
impl Command {
@@ -133,6 +143,9 @@ impl Command {
133
143
Self :: Htmlcompare { htmldir, svdfiles } => {
134
144
htmlcompare_cli:: htmlcompare ( htmldir, svdfiles) ?;
135
145
}
146
+ Self :: Html { htmldir, svdfiles } => {
147
+ html_cli:: svd2html ( htmldir, svdfiles) ?;
148
+ }
136
149
}
137
150
Ok ( ( ) )
138
151
}
0 commit comments