3.1.25.2.1. waf_tools.hcg.configure

waf_tools.hcg.configure(ctx: ConfigurationContext) → None

Configure the TI HALCoGen code generator tool.

Locates the HALCOGEN executable on the system PATH, determines the F021 Flash API include and library paths and stores all paths in ctx.env.

The following environment variables are set:
  • HALCOGEN: Path to the HALCoGen executable.

  • HALCOGEN_SRC_INPUT: Default input flag (-i).

  • INCLUDES: Extended with the F021 Flash API include path.

  • STLIBPATH: Extended with the F021 Flash API library path.

Note

HALCoGen is only available on Windows. On other platforms the tool is configured with an empty HALCOGEN variable and code generation tasks will be skipped.