Skip to content

Commit

Permalink
Add the MTB Nina-B112 board
Browse files Browse the repository at this point in the history
Add the file necessary for the MTB Nina-B112 board.
  • Loading branch information
c1728p9 committed Feb 4, 2018
1 parent 33e0c58 commit 399dded
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 @@ -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
Expand Down
11 changes: 11 additions & 0 deletions records/board/mtb_nina_b112.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions source/board/mtb_nina_b112.c
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions test/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 399dded

Please sign in to comment.