Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: add script to generate the comparator silabs-acmp bindings h… #80

Merged

Conversation

silabs-chgalant
Copy link
Contributor

…eader

The script added will combine all possible ACMP positive and negative input values and define helper macros to make it easier for applications to select ACMP inputs for their comparator driver. The script also verifies that the integer input values are consistent between the parts that this header is generated for. However, it must be noted that some of the input defines may not be available as positive and/or negative inputs for some devices. It's recommended to always reference your part's design book before selecting any of the inputs in this generated header.

scripts/gen_acmp.py Outdated Show resolved Hide resolved
scripts/gen_acmp.py Outdated Show resolved Hide resolved
@jhedberg
Copy link
Member

@asmellby @jerome-pouiller I suppose this is ready to be merged? Seems like the counterpart zephyrproject-rtos/zephyr#83980 is also close to being merged. (No strong opinion on tying these together through an immediate west.yml update in the main tree, as long as this gets merged in the HAL tree roughly at the same time.

@jhedberg
Copy link
Member

Btw, since we're starting to have quite many of these import/generation scripts, would it make sense to have some "super script" that covers all of them for a new SiSDK version?

scripts/gen_acmp.py Outdated Show resolved Hide resolved
…eader

The script added will combine all possible ACMP positive and negative
input values and define helper macros to make it easier for applications
to select ACMP inputs for their comparator driver. The script also
verifies that the integer input values are consistent between the parts
that this header is generated for. However, it must be noted that some
of the input defines may not be available as positive and/or negative
inputs for some devices. It's recommended to always reference your
part's design book before selecting any of the inputs in this generated
header.

Signed-off-by: Christian Galante <[email protected]>
@jhedberg jhedberg merged commit f54ea3a into zephyrproject-rtos:main Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants