{"id":20140279,"url":"https://github.com/outpost-os/outpost-svd","last_synced_at":"2026-03-07T01:02:51.191Z","repository":{"id":250722862,"uuid":"835157948","full_name":"outpost-os/outpost-svd","owner":"outpost-os","description":"SVD parser and source code generator using jinja","archived":false,"fork":false,"pushed_at":"2025-01-15T09:26:54.000Z","size":2478,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-02T11:32:18.595Z","etag":null,"topics":["jinja2","meson","svd"],"latest_commit_sha":null,"homepage":"","language":"Meson","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outpost-os.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-29T09:23:19.000Z","updated_at":"2025-01-15T09:26:57.000Z","dependencies_parsed_at":"2024-07-29T18:44:51.993Z","dependency_job_id":"c07009c9-3fa7-4236-a902-643ea2762190","html_url":"https://github.com/outpost-os/outpost-svd","commit_stats":null,"previous_names":["outpost-os/outpost-svd"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/outpost-os/outpost-svd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outpost-os%2Foutpost-svd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outpost-os%2Foutpost-svd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outpost-os%2Foutpost-svd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outpost-os%2Foutpost-svd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outpost-os","download_url":"https://codeload.github.com/outpost-os/outpost-svd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outpost-os%2Foutpost-svd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jinja2","meson","svd"],"created_at":"2024-11-13T21:49:59.280Z","updated_at":"2026-03-07T01:02:51.162Z","avatar_url":"https://github.com/outpost-os.png","language":"Meson","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2024 Ledger SAS\nSPDX-License-Identifier: Apache-2.0\n--\u003e\n\n# outpost-svd\nCollection of SVD files with meson recipe to handle them\n\n[![REUSE status](https://api.reuse.software/badge/github.com/outpost-os/outpost-svd)](https://api.reuse.software/info/github.com/outpost-os/outpost-svd)\n\n## Prerequisits\n\nPython3 is required for this meson project with the following packages:\n - Jinja2\n - svd2json (Ledger package, see https://git.orange.ledgerlabs.net/outpost/python-svd2json)\n\n## Project options\n - `svd`: string, svd filename to use (without `.svd` extension)\n The given file must be present under the `\u003cproject root\u003e/svd` directory. The meson.build recipe will walk through the `svds` list.\n\n e.g.:\n  ```console\n  meson setup -Dstm32u5xx \u003cbuilddir\u003e\n ```\n\n## Usage\nThis project defines a custom target that convert the manufacturer provided svd to a custom json format to ease header generation with `Jinja2`, that target is named `\u003csvd_basename\u003e.json`\n\n```console\ncd \u003cbuilddir\u003e\nninja stm32u5xx.json\n```\n\n### As a subproject\nWhile use as a meson subproject, this project provides useful variables.\n - `svd_json`: targets that generates json file.\n - `jinja_cli`: program (found by `find_program`) to use with `custom_target` or `generator`.\n - `irq_defs_in`: template to generate soc irqs definition header.\n - `layout_in`: template to generate soc peripherals layout (IP base address) header.\n - `peripheral_defs_in`: template to generate a peripheral (or peripheral group) registers and fields description.\n\n #### example\n\n ##### with custom target\n ```\n irq_def_h = custom_target('gen_irq_defs',\n    input: irq_defs_in,\n     output: '@BASENAME@',\n     depends: [ svd_json ],\n     command: [ jinja_cli, '-d', svd_json, '-o', '@OUTPUT@', '@INPUT@' ],\n )\n\n layout_h = custom_target('gen_layout',\n     input: layout_in,\n     output: '@BASENAME@',\n     depends: [ svd_json ],\n     command: [ jinja_cli, '-d', svd_json, '-o', '@OUTPUT@', '@INPUT@' ],\n )\n```\n ##### with generator\n```\njinja_gen = generator(jinja_cli,\n       output: '@BASENAME@',\n       arguments: ['-d', '@0@'.format(svd_json),\n                   '-o', '@OUTPUT@',\n                   '@EXTRA_ARGS@',\n                   '@INPUT@'],\n       depends: [ svd_json ])\n\n irq_def_h = jinja_gen.process(irq_defs_in)\n layout_h = jinja_gen.process(layout_in)\n gpio_h = jinja_gen.process(peripheral_defs_in, extra_args: ['--define', 'NAME', 'GPIO'])\n```\n\u003e **NOTE:**  `NAME` value must be either a peripheral `name` **or** peripherals `groupName`\n\n## LICENSE\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutpost-os%2Foutpost-svd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutpost-os%2Foutpost-svd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutpost-os%2Foutpost-svd/lists"}