Skip to content

Commit dbdec77

Browse files
authored
4.5.0 - External ORM interface for SVD data (#96)
* 4.5.0 - External ORM interface for SVD data * fix struct receiver issue
1 parent 3126575 commit dbdec77

File tree

9 files changed

+28
-30
lines changed

9 files changed

+28
-30
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
- run: mk docs
6161
if: |
62-
matrix.python-version == '3.12'
62+
matrix.python-version == '3.13'
6363
&& matrix.system == 'ubuntu-latest'
6464
6565
- run: mk python-test
@@ -77,16 +77,16 @@ jobs:
7777
env:
7878
TWINE_USERNAME: __token__
7979
if: |
80-
matrix.python-version == '3.12'
80+
matrix.python-version == '3.13'
8181
&& matrix.system == 'ubuntu-latest'
8282
&& env.TWINE_PASSWORD != ''
8383
&& github.ref_name == 'master'
8484
8585
- run: |
8686
mk python-release owner=libre-embedded \
87-
repo=ifgen version=4.4.5
87+
repo=ifgen version=4.5.0
8888
if: |
89-
matrix.python-version == '3.12'
89+
matrix.python-version == '3.13'
9090
&& matrix.system == 'ubuntu-latest'
9191
&& env.GITHUB_API_TOKEN != ''
9292
&& github.ref_name == 'master'

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
=====================================
33
generator=datazen
44
version=3.2.3
5-
hash=bb7c6c6ee9e74f924d3169c09662b491
5+
hash=ad4ce6e07bb17efc31e796eb165cb185
66
=====================================
77
-->
88

9-
# ifgen ([4.4.5](https://pypi.org/project/ifgen/))
9+
# ifgen ([4.5.0](https://pypi.org/project/ifgen/))
1010

1111
[![python](https://img.shields.io/pypi/pyversions/ifgen.svg)](https://pypi.org/project/ifgen/)
1212
![Build Status](https://github.com/libre-embedded/ifgen/workflows/Python%20Package/badge.svg)
@@ -40,27 +40,27 @@ This package is tested on the following platforms:
4040
# Command-line Options
4141

4242
```
43-
$ ./venv3.12/bin/ig -h
43+
$ ./venv3.13/bin/ig -h
4444
4545
usage: ig [-h] [--version] [-v] [-q] [--curses] [--no-uvloop] [-C DIR]
4646
{gen,svd,noop} ...
4747
4848
An interface generator for distributed computing.
4949
5050
options:
51-
-h, --help show this help message and exit
52-
--version show program's version number and exit
53-
-v, --verbose set to increase logging verbosity
54-
-q, --quiet set to reduce output
55-
--curses whether or not to use curses.wrapper when starting
56-
--no-uvloop whether or not to disable uvloop as event loop driver
57-
-C DIR, --dir DIR execute from a specific directory
51+
-h, --help show this help message and exit
52+
--version show program's version number and exit
53+
-v, --verbose set to increase logging verbosity
54+
-q, --quiet set to reduce output
55+
--curses whether or not to use curses.wrapper when starting
56+
--no-uvloop whether or not to disable uvloop as event loop driver
57+
-C, --dir DIR execute from a specific directory
5858
5959
commands:
60-
{gen,svd,noop} set of available commands
61-
gen generate interfaces
62-
svd process CMSIS-SVD files
63-
noop command stub (does nothing)
60+
{gen,svd,noop} set of available commands
61+
gen generate interfaces
62+
svd process CMSIS-SVD files
63+
noop command stub (does nothing)
6464
6565
```
6666

ifgen/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# =====================================
22
# generator=datazen
33
# version=3.2.3
4-
# hash=67eaf4ed029fdce58622eee8dd8cfdf0
4+
# hash=8042bfab9549cff58935b1dd444a1e8f
55
# =====================================
66

77
"""
@@ -10,4 +10,4 @@
1010

1111
DESCRIPTION = "An interface generator for distributed computing."
1212
PKG_NAME = "ifgen"
13-
VERSION = "4.4.5"
13+
VERSION = "4.5.0"

ifgen/plugins/struct_receiver/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ def cpp_struct_receiver(task: GenerateTask) -> None:
138138
writer.empty()
139139

140140
writer.c_comment("Read identifier and advance buffer.")
141-
writer.write(
142-
"struct_id_t ident = "
143-
"handle_endian<struct_id_t, endianness>("
144-
)
141+
writer.write("struct_id_t ident = handle_endian<endianness>(")
145142
with writer.indented():
146143
writer.write(
147144
"*reinterpret_cast<const struct_id_t *>(data));"

ifgen/svd/group/enums.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def get_enum_name(name: str, peripheral: str, raw_mapping: EnumValues) -> str:
2929

3030
hashed = hash(
3131
",".join(
32-
name + f"={val['value']}" for name, val in raw_mapping.items()
32+
name + f"={val['value']}"
33+
for name, val in sorted(raw_mapping.items())
3334
)
3435
)
3536

local/variables/package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
major: 4
3-
minor: 4
4-
patch: 5
3+
minor: 5
4+
patch: 0
55
entry: ig

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
44

55
[project]
66
name = "ifgen"
7-
version = "4.4.5"
7+
version = "4.5.0"
88
description = "An interface generator for distributed computing."
99
readme = "README.md"
1010
requires-python = ">=3.12"

tests/data/valid/scenarios/sample/ifgen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ custom:
1616
c: 3
1717
file2: *data
1818

19-
clang_format: clang-format-18
19+
clang_format: clang-format-19
2020

2121
structs:
2222
Test1:

0 commit comments

Comments
 (0)