common

package
v0.0.0-...-fc75a81 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdditionalFirmwareIndexURLs []string

AdditionalFirmwareIndexURLs is a list of additional module_firmware_index.json URLs that are loaded together with the main index.

View Source
var AdditionalPackageIndexURLs []string

AdditionalPackageIndexURLs is a list of additional package_index.json URLs that are loaded together with the main index.

Functions

func CheckFlags

func CheckFlags(fqbn, address string)

CheckFlags runs a basic check, errors if the flags are not defined

func DownloadRequiredToolsForBoard

func DownloadRequiredToolsForBoard(pm *packagemanager.PackageManager, board *firmwareindex.IndexBoard) *paths.Path

DownloadRequiredToolsForBoard is an helper function that downloads the correct tool to flash a board, it returns the path of the downloaded tool

func GetBoard

func GetBoard(firmwareIndex *firmwareindex.Index, fqbn string) *firmwareindex.IndexBoard

GetBoard is an helper function useful to get the IndexBoard, the struct that contains all the infos to make all the operations possible

func InitIndexes

InitIndexes downloads and parses the package_index.json and firmwares_index.json

Types

This section is empty.

Jump to

Keyboard shortcuts

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