stm32cubemx

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToCores

func AppendToCores(iniSectionCore IniSectionCore, list *[]IniSectionCore)

func AppendToList

func AppendToList(name string, list *[]string)

func FilterFile

func FilterFile(file string) bool

func FindInCores

func FindInCores(name string, list *[]IniSectionCore) bool

func FindInList

func FindInList(name string, list *[]string) bool

func GetIni

func GetIni(path string) (*ini.File, error)

func GetLinkerScripts added in v0.9.3

func GetLinkerScripts(outPath string, subsystem *cbuild.SubsystemType) ([]string, error)

func GetPreviousUsedFilesID added in v0.9.3

func GetPreviousUsedFilesID(compiler string) (string, error)

func GetRelativePathAdd added in v0.9.3

func GetRelativePathAdd(outPath string, compiler string) (string, error)

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 GetToolchain(compiler string) (string, error)

func GetToolchainFolderPath added in v0.9.3

func GetToolchainFolderPath(outPath string, compiler string) (string, error)

func Launch

func Launch(iocFile, projectFile string) (int, error)

func PrintItem

func PrintItem(section *ini.Section, key string)

func PrintItemCsv

func PrintItemCsv(section *ini.Section, key string)

func PrintItemIterator

func PrintItemIterator(section *ini.Section, key, iterator string)

func PrintKeyValInt

func PrintKeyValInt(key string, val int)
Example
PrintKeyValInt("key", 4711)
Output:


key : 4711

func PrintKeyValStr

func PrintKeyValStr(key, val string)
Example
PrintKeyValStr("key", "val")
Output:


key : val

func PrintKeyValStrs

func PrintKeyValStrs(key string, vals []string)
Example
PrintKeyValStrs("key", []string{"val1", "val2"})
Output:


key
0: val1
1: val2

func Process

func Process(cbuildYmlPath, outPath, cubeMxPath string, runCubeMx bool, pid int) error

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 StoreData

func StoreData(data *string, value string)

func StoreDataArray

func StoreDataArray(data *[]string, values ...string)

func StoreItem

func StoreItem(data *string, section *ini.Section, key string)

func StoreItemCsv

func StoreItemCsv(data *[]string, section *ini.Section, key string)

func StoreItemIterator

func StoreItemIterator(data *[]string, section *ini.Section, key, iterator string)

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
}

func IniReader

func IniReader(path string, compiler string, trustzone bool) (MxprojectAllType, error)

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)

func GetData

func GetData(inidata *ini.File, iniName string, compiler string) (MxprojectType, error)

type PinDefinition added in v0.9.2

type PinDefinition struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL