Esempio n. 1
0
def boards(hwpack='arduino'):
    """read boards from boards.txt.

    :param core_package: 'all,'arduino',..

    """
    bunch = read_properties(boards_txt(hwpack))

    bunch_items = list(bunch.items())

    # remove invalid boards
    for bid, board in bunch_items:
        if 'build' not in board.keys() or 'name' not in board.keys():
            log.debug('invalid board found: %s', bid)
            del bunch[bid]

    return bunch
Esempio n. 2
0
def programmers():
    """read programmers from programmers.txt."""
    return read_properties(programmers_txt())