diff --git a/projects.yaml b/projects.yaml index 1dcc6eb54..371a9cf98 100644 --- a/projects.yaml +++ b/projects.yaml @@ -329,6 +329,10 @@ projects: - *module_if - *module_hic_lpc11u35 - records/board/mtb_mxchip_emw3166.yaml + lpc11u35_mtb_nina_b112_if: + - *module_if + - *module_hic_lpc11u35 + - records/board/mtb_nina_b112.yaml lpc11u35_mtb_murata_abz_078_if: - *module_if - *module_hic_lpc11u35 diff --git a/records/board/mtb_nina_b112.yaml b/records/board/mtb_nina_b112.yaml new file mode 100644 index 000000000..d215d7ebd --- /dev/null +++ b/records/board/mtb_nina_b112.yaml @@ -0,0 +1,11 @@ +common: + macros: + - IO_CONFIG_OVERRIDE + includes: + - source/board/override_mtb + sources: + board: + - source/board/mtb_nina_b112.c + target: + - source/target/nordic/nrf5x/target.c + - source/target/nordic/target_reset_nrf52.c diff --git a/source/board/mtb_nina_b112.c b/source/board/mtb_nina_b112.c new file mode 100644 index 000000000..93dad9f23 --- /dev/null +++ b/source/board/mtb_nina_b112.c @@ -0,0 +1,31 @@ +/** + * @file 96b_nitrogen.c + * @brief board ID for the Seeed Studio 96Boards Nitrogen board + * + * 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. + */ + +#include "target_config.h" + +const char *board_id = "0455"; + +extern target_cfg_t target_device_nrf52; +void prerun_board_config(void) +{ + // nina-b112 has a nRF52832_xxAA + target_device = target_device_nrf52; +} diff --git a/test/info.py b/test/info.py index 5e02446a0..1a9ef7c05 100644 --- a/test/info.py +++ b/test/info.py @@ -109,6 +109,7 @@ ( 0x311, 'k20dx_frdmk66f_if', 'k20dx_bl', None ), # TODO - set target to 'FRDM-K66F' when mbed-os supports this ( 0x350, 'k20dx_xdot_l151_if', 'k20dx_bl', None ), # TODO - set target to 'MTS-xDot-L151CC' when mbed-os supports this ( 0x0451, 'lpc11u35_mtb_mxchip_emw3166_if', None, None ), # TODO - set target when mbed-os supports this + ( 0x0455, 'lpc11u35_mtb_nina_b112_if', None, None ), # TODO - set target when mbed-os supports this ( 0x0456, 'lpc11u35_mtb_murata_abz_078_if', None, None ), # TODO - set target when mbed-os supports this ( 0x458, 'lpc11u35_mtb_wise1510_if', None, None ), # TODO - set target when mbed-os supports this ( 0x459, 'lpc11u35_mtb_wise1530_if', None, None ), # TODO - set target when mbed-os supports this