The script tools/ioc_editor.rb can be used to generate/modify the configuraton of an .ioc file based on a reference .csv file.
It sets up the signals and labels of all the pins.
The reference .csv file can be found here:
Run the following:
# to get the help
ruby tools/ioc_editor.rb --help
# or to get an example
export TARGET=TARGET_LEKA_V1_2_DEV; \
ruby tools/ioc_editor.rb --check-labels targets/$TARGETIn order to access the Leka defined pin names, they must be added to the target's PinNames.h file.
The tools/pin_names_generator.rb script does just that!
Run the following:
export TARGET=TARGET_LEKA_V1_2_DEV; \
ruby tools/pin_names_generator.rb targets/$TARGET/pins/Leka-MCU_Pins-*.reference.csv targets/$TARGET