Skip to content

Commit

Permalink
Merge pull request ARMmbed#686 from grja/HANI-IOT-DAPLink
Browse files Browse the repository at this point in the history
Add support for HANI-IOT board
  • Loading branch information
0xc0170 authored Jan 3, 2020
2 parents 6387044 + 89e55c4 commit 8f0839e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,7 @@ projects:
- *module_if
- *module_hic_m48ssidae
- records/board/numaker_iot_m263a.yaml
lpc4322_hani_iot_if:
- *module_if
- *module_hic_lpc4322
- records/board/hani_iot.yaml
7 changes: 7 additions & 0 deletions records/board/hani_iot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
common:
sources:
board:
- source/board/hani_iot.c
family:
- source/family/nxp/lpc55S6X/target.c
- source/family/nxp/lpc55S6X/target_reset.c
35 changes: 35 additions & 0 deletions source/board/hani_iot.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* @file hani_iot.c
* @brief board ID for the Arrow HANI_IOT board
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2019, 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.
*/

#include "target_family.h"
#include "target_board.h"

const board_info_t g_board_info = {
.infoVersion = 0x11,
.board_id = "0360",
.family_id = VENDOR_TO_FAMILY(kNXP_VendorID, 0), //ID not maching the predefined family ids
.flags = kEnablePageErase,
.daplink_url_name = "PRODINFOHTM",
.daplink_drive_name = "HANI_IOT",
.daplink_target_url = "https://os.mbed.com/platforms/HANI-IOT/",
.target_cfg = &target_device,
};

1 change: 1 addition & 0 deletions test/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y
( 0x0262, VENDOR_TO_FAMILY('NXP', 2), 'k20dx_frdmkl43z_if', 'k20dx_bl', 'FRDM-KL43Z' ),
( 0x0311, VENDOR_TO_FAMILY('NXP', 1), 'k20dx_frdmk66f_if', 'k20dx_bl', 'FRDM-K66F' ),
( 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
( 0x0360, VENDOR_TO_FAMILY('NXP', 1), 'lpc4322_hani_iot_if', 'lpc4322_bl', 'HANI-IOT' ),
( 0x0409, VENDOR_TO_FAMILY('Stub', 1), 'max32625_max32630fthr_if', 'max32625_bl', 'MAX32630' ),
( 0x0415, VENDOR_TO_FAMILY('Stub', 1), 'max32620_max32625mbed_if', 'max32620_bl', 'MAX32625' ),
( 0x0418, VENDOR_TO_FAMILY('Stub', 1), 'max32625_max32620fthr_if', 'max32625_bl', 'MAX32620' ),
Expand Down

0 comments on commit 8f0839e

Please sign in to comment.