Importing sources

You can import source code files to use as basis for further configuration.

To import source code files, do the following:

  1. In the Menu bar, select File > Import....
  2. Click Next.
  3. On the next page, click Browse to specify the location of the source file.
  4. Select the source file that you wish to import and click Open.
  5. On the next page, select which functional groups to import (based on tools) by selecting the checkbox in the left column.
  6. Define how to import the functional groups by selecting one of the two available options in the dropdown menu in the right column:
    • Rename – All files are merged into the current configuration. It imports all the functions only. If the imported function has the same name as an existing one, it is automatically renamed to the indexed one. For example, if BOARD_InitPins exists in the configuration then the imported function is renamed to BOARD_InitPins1 .
    • Overwrite – All files are merged into the current configuration. It imports all the functions only. If the imported function has the same name as an existing one, then the existing one is replaced with the imported one.
  7. Click Finish.
    Note: Only C files with valid YAML configuration can be imported. It imports the configuration only, then the whole C file is re-created based on this setting. The rest of the C and DTSI files are ignored.