Skip to content

Commit b48b622

Browse files
committed
nrf52820_hic: update DAP_config.h for CMSIS-DAP 2.1
1 parent 8f1ab86 commit b48b622

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

source/hic_hal/nordic/nrf52820/DAP_config.h

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2017 ARM Limited. All rights reserved.
2+
* Copyright (c) 2013-2021 ARM Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,8 +17,8 @@
1717
*
1818
* ----------------------------------------------------------------------
1919
*
20-
* $Date: 1. December 2017
21-
* $Revision: V2.0.0
20+
* $Date: 16. June 2021
21+
* $Revision: V2.1.0
2222
*
2323
* Project: CMSIS-DAP Configuration
2424
* Title: DAP_config.h CMSIS-DAP Configuration File (Template)
@@ -101,6 +101,9 @@ This information includes:
101101
/// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>.
102102
#define SWO_UART 0 ///< SWO UART: 1 = available, 0 = not available.
103103

104+
/// USART Driver instance number for the UART SWO.
105+
#define SWO_UART_DRIVER 0 ///< USART Driver instance number (Driver_USART#).
106+
104107
/// Maximum SWO UART Baudrate.
105108
#define SWO_UART_MAX_BAUDRATE 10000000U ///< SWO UART Maximum Baudrate in Hz.
106109

@@ -117,16 +120,28 @@ This information includes:
117120
/// Clock frequency of the Test Domain Timer. Timer value is returned with \ref TIMESTAMP_GET.
118121
#define TIMESTAMP_CLOCK 100000000U ///< Timestamp clock in Hz (0 = timestamps not supported).
119122

123+
/// Indicate that UART Communication Port is available.
124+
/// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>.
125+
#define DAP_UART 0 ///< DAP UART: 1 = available, 0 = not available.
126+
127+
/// USART Driver instance number for the UART Communication Port.
128+
#define DAP_UART_DRIVER 1 ///< USART Driver instance number (Driver_USART#).
129+
130+
/// UART Receive Buffer Size.
131+
#define DAP_UART_RX_BUFFER_SIZE 1024U ///< Uart Receive Buffer Size in bytes (must be 2^n).
132+
133+
/// UART Transmit Buffer Size.
134+
#define DAP_UART_TX_BUFFER_SIZE 1024U ///< Uart Transmit Buffer Size in bytes (must be 2^n).
135+
136+
/// Indicate that UART Communication via USB COM Port is available.
137+
/// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>.
138+
#define DAP_UART_USB_COM_PORT 1 ///< USB COM Port: 1 = available, 0 = not available.
139+
120140
/// Debug Unit is connected to fixed Target Device.
121141
/// The Debug Unit may be part of an evaluation board and always connected to a fixed
122-
/// known device. In this case a Device Vendor and Device Name string is stored which
123-
/// may be used by the debugger or IDE to configure device parameters.
124-
#define TARGET_DEVICE_FIXED 0 ///< Target Device: 1 = known, 0 = unknown;
125-
126-
#if TARGET_DEVICE_FIXED
127-
#define TARGET_DEVICE_VENDOR "ARM" ///< String indicating the Silicon Vendor
128-
#define TARGET_DEVICE_NAME "Cortex-M4" ///< String indicating the Target Device
129-
#endif
142+
/// known device. In this case a Device Vendor, Device Name, Board Vendor and Board Name strings
143+
/// are stored and may be used by the debugger or IDE to configure device parameters.
144+
#define TARGET_FIXED 0 ///< Target: 1 = known, 0 = unknown;
130145

131146
///@}
132147

0 commit comments

Comments
 (0)