Importing sources
You can import source code files to use as basis for further configuration.
To import source code files, do the following:
- In the Menu bar, select File > Import....
- Click Next.
- On the next page, click Browse to specify the location of the source file.
- Select the source file that you wish to import and click Open.
- On the next page, select which functional groups to import (based on tools) by selecting the checkbox in the left column.
- 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_InitPinsexists in the configuration then the imported function is renamed toBOARD_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.
- 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
- 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.