Skip to content

Commit 8f0839e

Browse files
authored
Merge pull request #686 from grja/HANI-IOT-DAPLink
Add support for HANI-IOT board
2 parents 6387044 + 89e55c4 commit 8f0839e

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

projects.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,3 +638,7 @@ projects:
638638
- *module_if
639639
- *module_hic_m48ssidae
640640
- records/board/numaker_iot_m263a.yaml
641+
lpc4322_hani_iot_if:
642+
- *module_if
643+
- *module_hic_lpc4322
644+
- records/board/hani_iot.yaml

records/board/hani_iot.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
common:
2+
sources:
3+
board:
4+
- source/board/hani_iot.c
5+
family:
6+
- source/family/nxp/lpc55S6X/target.c
7+
- source/family/nxp/lpc55S6X/target_reset.c

source/board/hani_iot.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* @file hani_iot.c
3+
* @brief board ID for the Arrow HANI_IOT board
4+
*
5+
* DAPLink Interface Firmware
6+
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
7+
* SPDX-License-Identifier: Apache-2.0
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10+
* not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
*/
21+
22+
#include "target_family.h"
23+
#include "target_board.h"
24+
25+
const board_info_t g_board_info = {
26+
.infoVersion = 0x11,
27+
.board_id = "0360",
28+
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
29+
.flags = kEnablePageErase,
30+
.daplink_url_name = "PRODINFOHTM",
31+
.daplink_drive_name = "HANI_IOT",
32+
.daplink_target_url = "https://os.mbed.com/platforms/HANI-IOT/",
33+
.target_cfg = &target_device,
34+
};
35+

test/info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y
184184
( 0x0262, VENDOR_TO_FAMILY('NXP', 2), 'k20dx_frdmkl43z_if', 'k20dx_bl', 'FRDM-KL43Z' ),
185185
( 0x0311, VENDOR_TO_FAMILY('NXP', 1), 'k20dx_frdmk66f_if', 'k20dx_bl', 'FRDM-K66F' ),
186186
( 0x0350, VENDOR_TO_FAMILY('Stub', 1), 'k20dx_xdot_l151_if', 'k20dx_bl', None ), # TODO - set target to 'MTS-xDot-L151CC' when mbed-os supports this
187+
( 0x0360, VENDOR_TO_FAMILY('NXP', 1), 'lpc4322_hani_iot_if', 'lpc4322_bl', 'HANI-IOT' ),
187188
( 0x0409, VENDOR_TO_FAMILY('Stub', 1), 'max32625_max32630fthr_if', 'max32625_bl', 'MAX32630' ),
188189
( 0x0415, VENDOR_TO_FAMILY('Stub', 1), 'max32620_max32625mbed_if', 'max32620_bl', 'MAX32625' ),
189190
( 0x0418, VENDOR_TO_FAMILY('Stub', 1), 'max32625_max32620fthr_if', 'max32625_bl', 'MAX32620' ),

0 commit comments

Comments
 (0)