2 Комити

Аутор SHA1 Порука Датум
  Mathias Gottschlag a04a9687f9 Re-enable all MCUs. пре 4 година
  Mathias Gottschlag 11773b5581 Add a license and a README file. пре 4 година
3 измењених фајлова са 32 додато и 4 уклоњено
  1. 7
    0
      LICENSE.md
  2. 21
    0
      README.md
  3. 4
    4
      src/mcu.rs

+ 7
- 0
LICENSE.md Прегледај датотеку

@@ -0,0 +1,7 @@
1
+Copyright 2021 Mathias Gottschlag
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 21
- 0
README.md Прегледај датотеку

@@ -0,0 +1,21 @@
1
+# stm32-pin-diagram
2
+
3
+This program generates LaTeX figures showing the pins used by different STM32
4
+peripherals.
5
+
6
+# Compiling
7
+
8
+Install cargo as well as the rust compiler and then simply execute, for example,
9
+`cargo build --release`.
10
+
11
+# Usage
12
+
13
+Execute the program as follows to generate a pinout diagram for the `SPI2` and
14
+`I2C3` peripherals and for the STM32F429ZITx microcontroller:
15
+
16
+    target/release/stm32-pin-diagram STM32F429ZITx -p SPI2 -p I2C3
17
+
18
+The microcontroller names correspond to the file names in the `cube-MX-db/mcu`
19
+directory, and the peripheral names correspond to the prefix of the pin names in
20
+those files or in the datasheet.
21
+

+ 4
- 4
src/mcu.rs Прегледај датотеку

@@ -208,7 +208,7 @@ impl Mcu {
208 208
 lazy_static! {
209 209
     static ref MCUS: BTreeMap<String, &'static str> = {
210 210
         let mut mcus = BTreeMap::new();
211
-        /*mcus.insert(
211
+        mcus.insert(
212 212
             "STM32F030C6Tx".to_owned(),
213 213
             include_str!("../cube-MX-db/mcu/STM32F030C6Tx.xml"),
214 214
         );
@@ -1371,12 +1371,12 @@ lazy_static! {
1371 1371
         mcus.insert(
1372 1372
             "STM32F429ZGYx".to_owned(),
1373 1373
             include_str!("../cube-MX-db/mcu/STM32F429ZGYx.xml"),
1374
-        );*/
1374
+        );
1375 1375
         mcus.insert(
1376 1376
             "STM32F429ZITx".to_owned(),
1377 1377
             include_str!("../cube-MX-db/mcu/STM32F429ZITx.xml"),
1378 1378
         );
1379
-        /*mcus.insert(
1379
+        mcus.insert(
1380 1380
             "STM32F429ZIYx".to_owned(),
1381 1381
             include_str!("../cube-MX-db/mcu/STM32F429ZIYx.xml"),
1382 1382
         );
@@ -3355,7 +3355,7 @@ lazy_static! {
3355 3355
         mcus.insert(
3356 3356
             "STM32L4S9ZIYx".to_owned(),
3357 3357
             include_str!("../cube-MX-db/mcu/STM32L4S9ZIYx.xml"),
3358
-        );*/
3358
+        );
3359 3359
         mcus
3360 3360
     };
3361 3361
 }

Loading…
Откажи
Сачувај