Skip to content

Commit ca591a4

Browse files
authored
Add support for Pitaya Link probe (#896)
Add support for Pitaya Link probe - copied over from makerdiary fork Co-authored-by: Jonathan Giles <[email protected]>
1 parent 7ceb030 commit ca591a4

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

projects.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ projects:
418418
- *module_if
419419
- *module_hic_lpc11u35
420420
- records/board/nz32_sc151.yaml
421+
lpc11u35_pitaya_link_if:
422+
- *module_if
423+
- *module_hic_lpc11u35
424+
- records/board/pitaya_link.yaml
421425
lpc11u35_rtl8195am_if:
422426
- *module_if
423427
- *module_hic_lpc11u35

records/board/pitaya_link.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/pitaya_link.c
5+
family:
6+
- source/family/nordic/nrf52/target.c
7+
- source/family/nordic/target_reset_nrf52.c

source/board/pitaya_link.c

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* @file pitaya_link.c
3+
* @brief board file for Pitaya-Link targeting nRF52 SoC
4+
*
5+
* DAPLink Interface Firmware
6+
* Copyright (c) 2018, 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+
extern target_cfg_t target_device_nrf52840;
26+
27+
const board_info_t g_board_info = {
28+
.info_version = kBoardInfoVersion,
29+
.board_id = "1028",
30+
.family_id = kNordic_Nrf52_FamilyID,
31+
.daplink_url_name = "PRODINFOHTM",
32+
.daplink_drive_name = "PITAYA-LINK",
33+
.daplink_target_url = "https://wiki.makerdiary.com/pitaya-link/",
34+
.target_cfg = &target_device_nrf52840,
35+
.board_vendor = "makerdiary",
36+
.board_name = "Pitaya-Link",
37+
};

test/info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
('nrf52820_if', False, 0x0000, "bin" ),
105105
('sam3u2c_if', False, 0x0000, "bin" ),
106106
('stm32f103xb_if', False, 0x0000, "bin" ),
107+
('lpc11u35_pitaya_link_if', False, 0x0000, "bin" ),
107108
}
108109

109110
# Add new HICs here
@@ -174,6 +175,7 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y
174175
( 0x1018, VENDOR_TO_FAMILY('Stub', 1), 'lpc11u35_ssci824_if', None, 'Switch-Science-mbed-LPC824' ),
175176
( 0x1019, VENDOR_TO_FAMILY('Nordic', 1), 'lpc11u35_sscity_if', None, 'Switch-Science-mbed-TY51822r3' ),
176177
( 0x1021, VENDOR_TO_FAMILY('Nordic', 1), 'lpc11u35_ssci_chibi_if', None, None ), # TODO - set target to 'SSCI-MBIT' when mbed-os supports this
178+
( 0x1028, VENDOR_TO_FAMILY('Nordic', 2), 'lpc11u35_pitaya_link_if', None, None ),
177179
( 0x1050, VENDOR_TO_FAMILY('Stub', 1), 'lpc11u35_lpc812xpresso_if', None, 'NXP-LPC800-MAX' ),
178180
( 0x1054, VENDOR_TO_FAMILY('Stub', 1), 'lpc4322_lpc54114xpresso_if', 'lpc4322_bl', 'LPCXpresso54114' ),
179181
( 0x1056, VENDOR_TO_FAMILY('Stub', 1), 'lpc4322_lpc54608xpresso_if', 'lpc4322_bl', 'LPCXpresso54608' ),

0 commit comments

Comments
 (0)