diff options
| author | Thales Fragoso <[email protected]> | 2021-06-24 19:23:51 -0300 |
|---|---|---|
| committer | Thales Fragoso <[email protected]> | 2021-06-24 19:23:51 -0300 |
| commit | 210104e6dc704e9c37cf5d3d11f64a22496d1eb5 (patch) | |
| tree | 77a64941ce25a4d149311e54affa85f1c16a2f88 | |
| parent | 409884be2a749ddf91733dd3595c28c800358c32 (diff) | |
Remove unused gpio_af from codegen
| -rw-r--r-- | embassy-stm32/gen.py | 4 | ||||
| -rw-r--r-- | stm32-metapac/gen/src/lib.rs | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/embassy-stm32/gen.py b/embassy-stm32/gen.py index b9391d309..386c5ce17 100644 --- a/embassy-stm32/gen.py +++ b/embassy-stm32/gen.py | |||
| @@ -33,10 +33,6 @@ if len(c) > 1: | |||
| 33 | with open(f'{data_path}/chips/{chip_name}.yaml', 'r') as f: | 33 | with open(f'{data_path}/chips/{chip_name}.yaml', 'r') as f: |
| 34 | chip = yaml.load(f, Loader=SafeLoader) | 34 | chip = yaml.load(f, Loader=SafeLoader) |
| 35 | 35 | ||
| 36 | # ======= load GPIO AF | ||
| 37 | with open(f'{data_path}/gpio_af/{chip["gpio_af"]}.yaml', 'r') as f: | ||
| 38 | af = yaml.load(f, Loader=SafeLoader) | ||
| 39 | |||
| 40 | # ======= Generate! | 36 | # ======= Generate! |
| 41 | with open(output_file, 'w') as f: | 37 | with open(output_file, 'w') as f: |
| 42 | singletons = [] # USART1, PA5, EXTI8 | 38 | singletons = [] # USART1, PA5, EXTI8 |
diff --git a/stm32-metapac/gen/src/lib.rs b/stm32-metapac/gen/src/lib.rs index a5c061009..9e7add452 100644 --- a/stm32-metapac/gen/src/lib.rs +++ b/stm32-metapac/gen/src/lib.rs | |||
| @@ -19,7 +19,6 @@ pub struct Chip { | |||
| 19 | pub cores: Vec<Core>, | 19 | pub cores: Vec<Core>, |
| 20 | pub flash: u32, | 20 | pub flash: u32, |
| 21 | pub ram: u32, | 21 | pub ram: u32, |
| 22 | pub gpio_af: String, | ||
| 23 | pub packages: Vec<Package>, | 22 | pub packages: Vec<Package>, |
| 24 | } | 23 | } |
| 25 | 24 | ||
