A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mspm0-rs/mspm0-data below:

GitHub - mspm0-rs/mspm0-data

mspm0-data aims to produce clean machine-readable data about MSPM0 microcontroller families, including:

✔️ = done, 🚧 = work in progress, ❌ = to do

The generated JSON files are available here in the mspm0-data-generated repo.

The generated PAC is available here in the mspm0-data-generated repo.

These are the data sources currently used.

  1. Update the data sources to include the new chip. You will need to get the SVD and sysconfig metadata.
  2. Add the new chip family and part numbers to parts.yaml
  3. If needed, add any chip specific register blocks like sysctl.
  4. Check the peripheral mapping in perimap.rs to use the correct peripherals.
Adding support for a new peripheral

This will help you add support for a new peripheral to all MSPM0 families. (Please take the time to add it for all families, even if you personally are only interested in one. It's easier than it looks, and doing all families at once is significantly less work than adding one now then having to revisit everything later when adding more. It also helps massively in catching mistakes and inconsistencies in the source SVDs.)

Please separate manual changes and changes resulting from regen in separate commits. It helps tremendously with review and rebasing/merging.

SVDs have some widespread annoyances that should be fixed when adding register YAMLs to this repo. Check out chiptool transforms, they can help in speeding up the cleanups.

Peripheral mapping (perimap)

The mspm0-metapac-gen binary has a map to match peripherals to the right version in all chips, the perimap.

When parsing a chip, for each peripheral a "key" string is constructed using this format: FAMILY:PERIPHERAL_NAME, where:

perimap entries are regexes matching on the above "key" string. First regex that matches wins. For example:

(".*:tim", ("tim", "v1")),
("mspm0c110x:sysctl", ("sysctl", "c110x")),
("mspm0g..0x:sysctl", ("sysctl", "g350x_g310x_g150x_g110x")),

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4