Importing sources

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

Note: You can import only C files containing valid YAML configuration blocks generated by the Config Tools. The configuration is reconstructed from the YAML block and the rest of the imported file is ignored.

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.