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

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

Revision:
0:01f31e923fe2
diff -r 000000000000 -r 01f31e923fe2 source/hic_hal/nxp/lpc4322/daplink_addr.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/hic_hal/nxp/lpc4322/daplink_addr.h	Tue Apr 07 12:55:42 2020 +0200
@@ -0,0 +1,81 @@
+/**
+ * @file    daplink_addr.h
+ * @brief
+ *
+ * DAPLink Interface Firmware
+ * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
+ * not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef DAPLINK_ADDR_H
+#define DAPLINK_ADDR_H
+
+/* Device sizes */
+
+#define DAPLINK_ROM_START               0x1A000000
+#define DAPLINK_ROM_SIZE                0x00032000
+
+#define DAPLINK_RAM_START               0x10000000
+#define DAPLINK_RAM_SIZE                0x00008000
+
+/* ROM sizes */
+
+#define DAPLINK_ROM_BL_START            0x1A000000
+#define DAPLINK_ROM_BL_SIZE             0x0000E000
+
+#define DAPLINK_ROM_CONFIG_ADMIN_START  0x1A00E000
+#define DAPLINK_ROM_CONFIG_ADMIN_SIZE   0x00002000
+
+#define DAPLINK_ROM_IF_START            0x1A010000
+#define DAPLINK_ROM_IF_SIZE             0x00020000
+
+#define DAPLINK_ROM_CONFIG_USER_START   0x1A030000
+#define DAPLINK_ROM_CONFIG_USER_SIZE    0x00002000
+
+/* RAM sizes */
+
+#define DAPLINK_RAM_APP_START           0x10000000
+#define DAPLINK_RAM_APP_SIZE            0x00007F00
+
+#define DAPLINK_RAM_SHARED_START        0x10007F00
+#define DAPLINK_RAM_SHARED_SIZE         0x00000100
+
+/* Flash Programming Info */
+#define DAPLINK_SECTOR_SIZE             0x00002000
+#define DAPLINK_MIN_WRITE_SIZE          0x00000400
+
+/* Current build */
+
+#if defined(DAPLINK_BL)
+
+#define DAPLINK_ROM_APP_START            DAPLINK_ROM_BL_START
+#define DAPLINK_ROM_APP_SIZE             DAPLINK_ROM_BL_SIZE
+#define DAPLINK_ROM_UPDATE_START         DAPLINK_ROM_IF_START
+#define DAPLINK_ROM_UPDATE_SIZE          DAPLINK_ROM_IF_SIZE
+
+#elif defined(DAPLINK_IF)
+
+#define DAPLINK_ROM_APP_START            DAPLINK_ROM_IF_START
+#define DAPLINK_ROM_APP_SIZE             DAPLINK_ROM_IF_SIZE
+#define DAPLINK_ROM_UPDATE_START         DAPLINK_ROM_BL_START
+#define DAPLINK_ROM_UPDATE_SIZE          DAPLINK_ROM_BL_SIZE
+
+#else
+
+#error "Build must be either bootloader or interface"
+
+#endif
+
+#endif