Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.

Upstream: https://github.com/ARMmbed/DAPLink

Committer:
Pawel Zarembski
Date:
Tue Apr 07 12:55:42 2020 +0200
Revision:
0:01f31e923fe2
hani: DAPLink with reset workaround

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pawel Zarembski 0:01f31e923fe2 1 #
Pawel Zarembski 0:01f31e923fe2 2 # DAPLink Interface Firmware
Pawel Zarembski 0:01f31e923fe2 3 # Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
Pawel Zarembski 0:01f31e923fe2 4 # SPDX-License-Identifier: Apache-2.0
Pawel Zarembski 0:01f31e923fe2 5 #
Pawel Zarembski 0:01f31e923fe2 6 # Licensed under the Apache License, Version 2.0 (the "License"); you may
Pawel Zarembski 0:01f31e923fe2 7 # not use this file except in compliance with the License.
Pawel Zarembski 0:01f31e923fe2 8 # You may obtain a copy of the License at
Pawel Zarembski 0:01f31e923fe2 9 #
Pawel Zarembski 0:01f31e923fe2 10 # http://www.apache.org/licenses/LICENSE-2.0
Pawel Zarembski 0:01f31e923fe2 11 #
Pawel Zarembski 0:01f31e923fe2 12 # Unless required by applicable law or agreed to in writing, software
Pawel Zarembski 0:01f31e923fe2 13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
Pawel Zarembski 0:01f31e923fe2 14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Pawel Zarembski 0:01f31e923fe2 15 # See the License for the specific language governing permissions and
Pawel Zarembski 0:01f31e923fe2 16 # limitations under the License.
Pawel Zarembski 0:01f31e923fe2 17 #
Pawel Zarembski 0:01f31e923fe2 18
Pawel Zarembski 0:01f31e923fe2 19 from __future__ import absolute_import
Pawel Zarembski 0:01f31e923fe2 20 from enum import Enum
Pawel Zarembski 0:01f31e923fe2 21
Pawel Zarembski 0:01f31e923fe2 22
Pawel Zarembski 0:01f31e923fe2 23 class FirmwareBundle(object):
Pawel Zarembski 0:01f31e923fe2 24
Pawel Zarembski 0:01f31e923fe2 25 def get_firmware_list(self):
Pawel Zarembski 0:01f31e923fe2 26 """Return the firmware objects associated with this bundle"""
Pawel Zarembski 0:01f31e923fe2 27 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 28
Pawel Zarembski 0:01f31e923fe2 29 @property
Pawel Zarembski 0:01f31e923fe2 30 def build_sha(self):
Pawel Zarembski 0:01f31e923fe2 31 """The GIT SHA this build was created at as a string or None"""
Pawel Zarembski 0:01f31e923fe2 32 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 33
Pawel Zarembski 0:01f31e923fe2 34 @property
Pawel Zarembski 0:01f31e923fe2 35 def build_local_mods(self):
Pawel Zarembski 0:01f31e923fe2 36 """True if this was a clean build, False otherwise"""
Pawel Zarembski 0:01f31e923fe2 37 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 38
Pawel Zarembski 0:01f31e923fe2 39
Pawel Zarembski 0:01f31e923fe2 40 class Firmware(object):
Pawel Zarembski 0:01f31e923fe2 41 """Class wrapping a firmware build"""
Pawel Zarembski 0:01f31e923fe2 42
Pawel Zarembski 0:01f31e923fe2 43 class TYPE(Enum):
Pawel Zarembski 0:01f31e923fe2 44 BOOTLOADER = 1
Pawel Zarembski 0:01f31e923fe2 45 INTERFACE = 2
Pawel Zarembski 0:01f31e923fe2 46
Pawel Zarembski 0:01f31e923fe2 47 def __str__(self):
Pawel Zarembski 0:01f31e923fe2 48 """A string that describes this firmware"""
Pawel Zarembski 0:01f31e923fe2 49 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 50
Pawel Zarembski 0:01f31e923fe2 51 @property
Pawel Zarembski 0:01f31e923fe2 52 def name(self):
Pawel Zarembski 0:01f31e923fe2 53 """Name of this project"""
Pawel Zarembski 0:01f31e923fe2 54 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 55
Pawel Zarembski 0:01f31e923fe2 56 @property
Pawel Zarembski 0:01f31e923fe2 57 def hic_id(self):
Pawel Zarembski 0:01f31e923fe2 58 """HIC ID for the type of board this firmware can run on"""
Pawel Zarembski 0:01f31e923fe2 59 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 60
Pawel Zarembski 0:01f31e923fe2 61 @property
Pawel Zarembski 0:01f31e923fe2 62 def type(self):
Pawel Zarembski 0:01f31e923fe2 63 """Build type - either interface or bootloader"""
Pawel Zarembski 0:01f31e923fe2 64 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 65
Pawel Zarembski 0:01f31e923fe2 66 @property
Pawel Zarembski 0:01f31e923fe2 67 def bin_path(self):
Pawel Zarembski 0:01f31e923fe2 68 """Path to the binary vesion of this firmware or None"""
Pawel Zarembski 0:01f31e923fe2 69 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 70
Pawel Zarembski 0:01f31e923fe2 71 @property
Pawel Zarembski 0:01f31e923fe2 72 def hex_path(self):
Pawel Zarembski 0:01f31e923fe2 73 """Path to the hex vesion of this firmware or None"""
Pawel Zarembski 0:01f31e923fe2 74 raise NotImplementedError()
Pawel Zarembski 0:01f31e923fe2 75
Pawel Zarembski 0:01f31e923fe2 76 @property
Pawel Zarembski 0:01f31e923fe2 77 def elf_path(self):
Pawel Zarembski 0:01f31e923fe2 78 """Path to the hex vesion of this firmware or None"""
Pawel Zarembski 0:01f31e923fe2 79 raise NotImplementedError()