Skip to content

Commit

Permalink
codegen: Describe how 'gpio-' features are generated
Browse files Browse the repository at this point in the history
  • Loading branch information
teskje committed Sep 25, 2020
1 parent 4e9236d commit add481d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ from the respective GPIO internal peripheral (IP) version:
- gpio-f333
- gpio-f373

`codegen` collects those IP versions from the relevant GPIO IP description
files (located at `$cubemx_db_path/mcu/IP/GPIO-*.xml`). The root `<IP>` element
has a `Version` attribute with a value in the form of "STM32Fxxx_gpio_v1_0".
The feature name is constructed by dropping the parts constant between all
version strings and prepending "gpio-".

Note that the GPIO IP version names don't necessarily match the MCUs they are
used in. For example, the GPIOs in `STM32F302xB` MCUs have the IP version
"STM32F303_gpio_v1_0". The MCU features of the `stm32f3xx-hal` also select the
Expand Down

0 comments on commit add481d

Please sign in to comment.