Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
board.py
00001 # 00002 # DAPLink Interface Firmware 00003 # Copyright (c) 2009-2016, ARM Limited, All Rights Reserved 00004 # SPDX-License-Identifier: Apache-2.0 00005 # 00006 # Licensed under the Apache License, Version 2.0 (the "License"); you may 00007 # not use this file except in compliance with the License. 00008 # You may obtain a copy of the License at 00009 # 00010 # http://www.apache.org/licenses/LICENSE-2.0 00011 # 00012 # Unless required by applicable law or agreed to in writing, software 00013 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00014 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 # See the License for the specific language governing permissions and 00016 # limitations under the License. 00017 # 00018 00019 from __future__ import absolute_import 00020 00021 00022 class Board(object): 00023 00024 def update_interface(self): 00025 raise NotImplementedError() 00026 00027 def update_bootloader(self): 00028 raise NotImplementedError() 00029 00030 def prepare_for_testing(self): 00031 raise NotImplementedError() 00032 00033 @property 00034 def hw_msd_support(self): 00035 """Set to True if the hardware supports mass storage""" 00036 raise NotImplementedError() 00037 00038 @property 00039 def hw_cdc_support(self): 00040 """Set to True if the hardware supports a serial port""" 00041 raise NotImplementedError() 00042 00043 @property 00044 def hw_hid_support(self): 00045 """Set to True if the hardware supports HID""" 00046 raise NotImplementedError() 00047 00048 @property 00049 def mount_point(self): 00050 """Mount point of the drive or None if no SW support""" 00051 raise NotImplementedError() 00052 00053 @property 00054 def serial_port(self): 00055 """Serial port string usable with pySerial or None if no SW support""" 00056 raise NotImplementedError() 00057 00058 @property 00059 def board_id(self): 00060 """The ID of this board type""" 00061 raise NotImplementedError() 00062 00063 @property 00064 def unique_id(self): 00065 """ID which uniquely identifies this board""" 00066 raise NotImplementedError()
Generated on Tue Jul 12 2022 15:37:13 by
1.7.2