def list_boards():
        """! @brief Generate dictionary with info about supported boards.
        
        Output version history:
        - 1.0, initial version
        """
        boards = []
        obj = {
            'pyocd_version' : __version__,
            'version' : { 'major' : 1, 'minor' : 0 },
            'status' : 0,
            'boards' : boards
            }

        for board_id, info in BOARD_ID_TO_INFO.items():
            d = {
                'id' : board_id,
                'name' : info.name,
                'target': info.target,
                'binary' : info.binary,
                }
            boards.append(d)

        return obj
def list_boards ( ) : boards = [ ] obj = { 'pyocd_version' : __version__ , 'version' : { 'major' : 1 , 'minor' : 0 } , 'status' : 0 , 'boards' : boards } for board_id , info in BOARD_ID_TO_INFO . items ( ) : d = { 'id' : board_id , 'name' : info . name , 'target' : info . target , 'binary' : info . binary , } boards . append ( d ) return obj
! @brief Generate dictionary with info about supported boards.
        
        Output version history:
        - 1.0, initial version