Documentation ¶
Index ¶
- func AppendToCores(iniSectionCore IniSectionCore, list *[]IniSectionCore)
- func AppendToList(name string, list *[]string)
- func FilterFile(file string) bool
- func FindInCores(name string, list *[]IniSectionCore) bool
- func FindInList(name string, list *[]string) bool
- func GetIni(path string) (*ini.File, error)
- func GetLinkerScripts(outPath string, subsystem *cbuild.SubsystemType) ([]string, error)
- func GetPreviousUsedFilesID(compiler string) (string, error)
- func GetRelativePathAdd(outPath string, compiler string) (string, error)
- func GetSections(inidata *ini.File, iniSections *IniSectionsType) error
- func GetStartupFile(outPath string, subsystem *cbuild.SubsystemType) (string, error)
- func GetSystemFile(outPath string, subsystem *cbuild.SubsystemType) (string, error)
- func GetToolchain(compiler string) (string, error)
- func GetToolchainFolderPath(outPath string, compiler string) (string, error)
- func Launch(iocFile, projectFile string) (int, error)
- func PrintItem(section *ini.Section, key string)
- func PrintItemCsv(section *ini.Section, key string)
- func PrintItemIterator(section *ini.Section, key, iterator string)
- func PrintKeyValInt(key string, val int)
- func PrintKeyValStr(key, val string)
- func PrintKeyValStrs(key string, vals []string)
- func Process(cbuildYmlPath, outPath, cubeMxPath string, runCubeMx bool, pid int) error
- func ReadCbuildYmlFile(path, outPath string, parms *cbuild.ParamsType) error
- func ReadContexts(iocFile string, params cbuild.ParamsType) error
- func ReadGeneratorYmlFile(path string, parms *generator.ParamsType) error
- func StoreData(data *string, value string)
- func StoreDataArray(data *[]string, values ...string)
- func StoreItem(data *string, section *ini.Section, key string)
- func StoreItemCsv(data *[]string, section *ini.Section, key string)
- func StoreItemIterator(data *[]string, section *ini.Section, key, iterator string)
- func WriteCgenYml(outPath string, mxprojectAll MxprojectAllType, inParms cbuild.ParamsType) error
- func WriteCgenYmlSub(outPath string, mxproject MxprojectType, subsystem *cbuild.SubsystemType) error
- func WriteProjectFile(workDir string, parms *cbuild.ParamsType) (string, error)
- type IniSectionCore
- type IniSectionsType
- type MxprojectAllType
- type MxprojectType
- type PinDefinition
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToCores ¶
func AppendToCores(iniSectionCore IniSectionCore, list *[]IniSectionCore)
func AppendToList ¶
func FilterFile ¶
func FindInCores ¶
func FindInCores(name string, list *[]IniSectionCore) bool
func FindInList ¶
func GetLinkerScripts ¶ added in v0.9.3
func GetLinkerScripts(outPath string, subsystem *cbuild.SubsystemType) ([]string, error)
func GetPreviousUsedFilesID ¶ added in v0.9.3
func GetRelativePathAdd ¶ added in v0.9.3
func GetSections ¶
func GetSections(inidata *ini.File, iniSections *IniSectionsType) error
func GetStartupFile ¶ added in v0.9.3
func GetStartupFile(outPath string, subsystem *cbuild.SubsystemType) (string, error)
func GetSystemFile ¶ added in v0.9.3
func GetSystemFile(outPath string, subsystem *cbuild.SubsystemType) (string, error)
func GetToolchain ¶ added in v0.9.3
func GetToolchainFolderPath ¶ added in v0.9.3
func PrintItemCsv ¶
func PrintItemCsv(section *ini.Section, key string)
func PrintItemIterator ¶
func PrintItemIterator(section *ini.Section, key, iterator string)
func PrintKeyValInt ¶
Example ¶
PrintKeyValInt("key", 4711)
Output: key : 4711
func PrintKeyValStr ¶
func PrintKeyValStr(key, val string)
Example ¶
PrintKeyValStr("key", "val")
Output: key : val
func PrintKeyValStrs ¶
Example ¶
PrintKeyValStrs("key", []string{"val1", "val2"})
Output: key 0: val1 1: val2
func ReadCbuildYmlFile ¶
func ReadCbuildYmlFile(path, outPath string, parms *cbuild.ParamsType) error
func ReadContexts ¶ added in v0.9.2
func ReadContexts(iocFile string, params cbuild.ParamsType) error
func ReadGeneratorYmlFile ¶ added in v0.9.3
func ReadGeneratorYmlFile(path string, parms *generator.ParamsType) error
func StoreDataArray ¶
func StoreItemCsv ¶
func StoreItemIterator ¶
func WriteCgenYml ¶
func WriteCgenYml(outPath string, mxprojectAll MxprojectAllType, inParms cbuild.ParamsType) error
func WriteCgenYmlSub ¶
func WriteCgenYmlSub(outPath string, mxproject MxprojectType, subsystem *cbuild.SubsystemType) error
func WriteProjectFile ¶
func WriteProjectFile(workDir string, parms *cbuild.ParamsType) (string, error)
Types ¶
type IniSectionCore ¶
type IniSectionCore struct { CoreName string // contains filtered or unexported fields }
type IniSectionsType ¶
type IniSectionsType struct {
// contains filtered or unexported fields
}
type MxprojectAllType ¶
type MxprojectAllType struct {
Mxproject []MxprojectType
}
type MxprojectType ¶
type MxprojectType struct { CoreName string Trustzone string PreviousLibFiles struct { LibFiles []string } PreviousUsedFiles struct { SourceFiles []string HeaderPath []string CDefines []string } PreviousGenFiles struct { AdvancedFolderStructure string HeaderFilesList []string HeaderPathList []string HeaderFiles string SourceFilesList []string SourcePathList []string SourceFiles string } }
func FindMxProject ¶
func FindMxProject(subsystem *cbuild.SubsystemType, mxprojectAll MxprojectAllType) (MxprojectType, error)
type PinDefinition ¶ added in v0.9.2
type PinDefinition struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.