Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for the NM180110 #1081

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,14 +531,18 @@ projects:
- *module_if
- *module_hic_lpc4322
- records/board/mimxrt1170_evk_qspi.yaml
lpc55s26_nm180410_bl:
lpc55s26_nm18041x_bl:
- *module_bl
- records/hic_hal/lpc55s26.yaml
- records/board/lpc55s26_nm180410_bl.yaml
- records/board/lpc55s26_nm18041x_bl.yaml
lpc55s26_nm180410_if:
- *module_if
- *module_hic_lpc55s26
- records/board/nm180410.yaml
lpc55s26_nm180411_if:
- *module_if
- *module_hic_lpc55s26
- records/board/nm180411.yaml
lpc55s69_mculink_bl:
- *module_bl
- records/hic_hal/lpc55s69.yaml
Expand Down
7 changes: 0 additions & 7 deletions records/board/lpc55s26_nm180410_bl.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions records/board/lpc55s26_nm18041x_bl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
common:
macros:
- USB_PROD_STR="NM18041x DAPLink Bootloader"
sources:
board:
- source/board/lpc55s26_bl.c
- source/board/nm18041x_bl.c
4 changes: 2 additions & 2 deletions records/board/nm180410.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ common:
- CDC_LED_DEF=GPIO_LED_OFF
- MSC_LED_DEF=GPIO_LED_OFF
includes:
- source/board/override_nm180410
- source/board/override_nm18041x
sources:
board:
- source/board/nm180410.c
family:
- source/family/ambiq/ama3b1kk/target.c
- source/family/ambiq/ama3b1kk/target_reset.c
- source/family/ambiq/target_reset_ama3bx.c
16 changes: 16 additions & 0 deletions records/board/nm180411.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
common:
macros:
- USB_PROD_STR="NM180411 DAPLink CMSIS-DAP"
- IO_CONFIG_OVERRIDE
- SWO_UART=1
- HID_LED_DEF=GPIO_LED_OFF
- CDC_LED_DEF=GPIO_LED_OFF
- MSC_LED_DEF=GPIO_LED_OFF
includes:
- source/board/override_nm18041x
sources:
board:
- source/board/nm180411.c
family:
- source/family/ambiq/ama3b2kk/target.c
- source/family/ambiq/target_reset_ama3bx.c
2 changes: 1 addition & 1 deletion source/board/nm180410.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

const board_info_t g_board_info = {
.info_version = kBoardInfoVersion,
.family_id = kAmbiq_ama3b1kk_FamilyID,
.family_id = kAmbiq_ama3bxkk_FamilyID,
.target_cfg = &target_device,
.daplink_url_name = "NMI HTM",
.daplink_drive_name = "NMI ",
Expand Down
75 changes: 75 additions & 0 deletions source/board/nm180411.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**
* @file nm180410.c
* @brief board ID for the Northern Mechatronics NM180410 board
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2023, 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 "fsl_clock.h"
#include "fsl_iocon.h"
#include "pin_mux.h"

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

const board_info_t g_board_info = {
.info_version = kBoardInfoVersion,
.family_id = kAmbiq_ama3bxkk_FamilyID,
.target_cfg = &target_device,
.daplink_url_name = "NMI HTM",
.daplink_drive_name = "NMI ",
.daplink_target_url = "https://www.northernmechatronics.com",
.board_vendor = "Northern Mechatronics",
.board_name = "NM180411 Petal Development Board",
.board_id = "D001",
};

void board_gpio_init(void)
{
/* Enables the clock for the I/O controller.: Enable Clock. */
CLOCK_EnableClock(kCLOCK_Iocon);

const uint32_t port0_pin29_config = (/* Pin is configured as FC0_RXD_SDA_MOSI_DATA */
IOCON_PIO_FUNC1 |
/* No addition pin function */
IOCON_PIO_MODE_INACT |
/* Standard mode, output slew rate control is enabled */
IOCON_PIO_SLEW_STANDARD |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT0 PIN29 (coords: 92) is configured as FC0_RXD_SDA_MOSI_DATA */
IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config);

const uint32_t port0_pin30_config = (/* Pin is configured as FC0_TXD_SCL_MISO_WS */
IOCON_PIO_FUNC1 |
/* No addition pin function */
IOCON_PIO_MODE_INACT |
/* Standard mode, output slew rate control is enabled */
IOCON_PIO_SLEW_STANDARD |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT0 PIN30 (coords: 94) is configured as FC0_TXD_SCL_MISO_WS */
IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config);
}
2 changes: 1 addition & 1 deletion source/board/nm180410_bl.c → source/board/nm18041x_bl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file nm180410_bl.c
* @file nm18041x_bl.c
* @brief additional configuration for Northern Mechatronics NM180410
* LPC55S69 HIC
*
Expand Down
188 changes: 0 additions & 188 deletions source/family/ambiq/ama3b1kk/target_reset.c

This file was deleted.

Loading
Loading