1
1
/*
2
- * Copyright (c) 2013-2017 ARM Limited. All rights reserved.
2
+ * Copyright (c) 2013-2021 ARM Limited. All rights reserved.
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*
17
17
*
18
18
* ----------------------------------------------------------------------
19
19
*
20
- * $Date: 1. December 2017
21
- * $Revision: V2.0 .0
20
+ * $Date: 16. June 2021
21
+ * $Revision: V2.1 .0
22
22
*
23
23
* Project: CMSIS-DAP Configuration
24
24
* Title: DAP_config.h CMSIS-DAP Configuration File (Template)
@@ -101,6 +101,9 @@ This information includes:
101
101
/// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>.
102
102
#define SWO_UART 0 ///< SWO UART: 1 = available, 0 = not available.
103
103
104
+ /// USART Driver instance number for the UART SWO.
105
+ #define SWO_UART_DRIVER 0 ///< USART Driver instance number (Driver_USART#).
106
+
104
107
/// Maximum SWO UART Baudrate.
105
108
#define SWO_UART_MAX_BAUDRATE 10000000U ///< SWO UART Maximum Baudrate in Hz.
106
109
@@ -117,16 +120,28 @@ This information includes:
117
120
/// Clock frequency of the Test Domain Timer. Timer value is returned with \ref TIMESTAMP_GET.
118
121
#define TIMESTAMP_CLOCK 100000000U ///< Timestamp clock in Hz (0 = timestamps not supported).
119
122
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
+
120
140
/// Debug Unit is connected to fixed Target Device.
121
141
/// 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;
130
145
131
146
///@}
132
147
0 commit comments