Skip to content

industry/scpi: add unit parser config options#3556

Open
nightt5879 wants to merge 1 commit into
apache:masterfrom
nightt5879:nightt5879/scpi-parser-config-3087
Open

industry/scpi: add unit parser config options#3556
nightt5879 wants to merge 1 commit into
apache:masterfrom
nightt5879:nightt5879/scpi-parser-config-3087

Conversation

@nightt5879

Copy link
Copy Markdown
Contributor

Summary

  • Add explicit Kconfig options for scpi-parser's optional unit groups.
  • Map each option to the matching upstream USE_UNITS_* compile-time define.
  • Keep the existing default unit set while allowing users to enable groups such as USE_UNITS_TIME=1 without raw CFLAGS injection.

Fixes #3087

Testing

  • git diff upstream/master...HEAD --check
  • Parsed industry/scpi/Kconfig with kconfiglib and verified all new unit symbols are present.

Expose scpi-parser unit support through explicit Kconfig options instead of raw CFLAGS.

Map each option to the corresponding upstream USE_UNITS_* compile-time define, preserving the existing default unit set while allowing users to enable groups such as USE_UNITS_TIME.

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>

@acassis acassis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nightt5879 please update the SCPI documentation since you are working/testing it. Currently it is empty: https://nuttx.apache.org/docs/latest/applications/industry/scpi/index.html

@nightt5879

Copy link
Copy Markdown
Contributor Author

Added the requested SCPI documentation in apache/nuttx#19207: apache/nuttx#19207

@linguini1 linguini1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try using the scpi tool after these changes?

Also why use $(call) in the Makefile?

xiaoxiang781216 pushed a commit to apache/nuttx that referenced this pull request Jun 24, 2026
Document the SCPI parser application, including source location, basic Kconfig options, and the unit parser options introduced by apache/nuttx-apps#3556.

Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] scpi-parser: allow configuration of build flags

4 participants