1 /*-----------------------------------------------------------------------------
3 * Purpose: DV Config header
4 *----------------------------------------------------------------------------
5 * Copyright(c) KEIL - An ARM Company
6 *----------------------------------------------------------------------------*/
11 #include "RTE_Components.h"
13 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
15 // <h> Common Test Settings
16 // <o> Print Output Format <0=> Plain Text <1=> XML
17 // <i> Set the test results output format to plain text or XML
18 #ifndef PRINT_XML_REPORT
19 #define PRINT_XML_REPORT 0
21 // <o> Buffer size for assertions results
22 // <i> Set the buffer size for assertions results buffer
23 #define BUFFER_ASSERTIONS 128
25 // <i> Enable/disable buffer sizes (bytes)
27 #define BUFFER_ELEM_1_32 0
29 #define BUFFER_ELEM_512 1
31 #define BUFFER_ELEM_1024 0
33 #define BUFFER_ELEM_4096 0
35 #define BUFFER_ELEM_32768 0
37 // <o> Buffer size for baudrate test
38 // <i> Set the buffer sizes (bytes)
39 #define BUFFER_SIZE_BR 512
40 // <o> Buffer pattern <0=> 0x55, 0xAA <1=> 0x12, 0x34, 0x56, 0x78
41 // <i> Set the buffer pattern
42 #define BUFFER_PATTERN_INDEX 0
43 #if (BUFFER_PATTERN_INDEX == 0)
44 #define BUFFER_PATTERN {0x55, 0xAA}
49 // <o> Driver_SPI# <0-255>
50 // <i> Choose the Driver_SPI# instance to be tested
53 // <i> Set the SPI bus speed (kHz)
54 // <i> Value zero is ignored
55 // <o> SPI bus speed 1
57 // <o> SPI bus speed 2
59 // <o> SPI bus speed 3
61 // <o> SPI bus speed 4
62 #define SPI_BR_4 10000
63 // <o> SPI bus speed 5
64 #define SPI_BR_5 25000
65 // <o> SPI bus speed 6
66 #define SPI_BR_6 50000
68 // <o> Percentual trigger for bus speed test
69 // <i> Set the minimum margin between measured and expected bus speeds (%)
70 #define MIN_BUS_SPEED 5
72 // <i> Set the SPI data bits
73 #define SPI_DATA_BITS 8
74 // <o> Transfer timeout
75 // <i> Set the transfer timeout (us)
76 #define SPI_TRANSFER_TIMEOUT 1000000
78 // <i> Enable/disable test cases
79 // <q> SPI_GetCapabilities
80 #define SPI_GETCAPABILITIES_EN 1
81 // <q> SPI_Initialization
82 #define SPI_INITIALIZATION_EN 1
83 // <q> SPI_PowerControl
84 #define SPI_POWERCONTROL_EN 1
85 // <q> SPI_Config_PolarityPhase
86 #define SPI_CONFIG_POLARITYPHASE_EN 1
87 // <q> SPI_Config_DataBits
88 #define SPI_CONFIG_DATABITS_EN 1
89 // <q> SPI_Config_BitOrder
90 #define SPI_CONFIG_BITORDER_EN 1
91 // <q> SPI_Config_SSMode
92 #define SPI_CONFIG_SSMODE_EN 1
93 // <q> SPI_Config_BusSpeed
94 #define SPI_CONFIG_BUSSPEED_EN 1
95 // <q> SPI_Config_CommonParams
96 #define SPI_CONFIG_COMMONPARAMS_EN 1
100 #define SPI_RECEIVE_EN 1
101 // <q> SPI_Loopback_CheckBusSpeed
102 #define SPI_LOOPBACK_CHECKBUSSPEED_EN 1
103 // <q> SPI_Loopback_Transfer
104 #define SPI_LOOPBACK_TRANSFER_EN 1
105 // <q> SPI_CheckInvalidInit
106 #define SPI_CHECKINVALIDINIT_EN 1
111 // <o> Driver_USART# <0-255>
112 // <i> Choose the Driver_USART# instance to be tested
114 // <h> USART baudrates
115 // <i> Set the USART baudrates (bps)
116 // <i> Value zero is ignored
117 // <o> USART baudrate 1
118 #define USART_BR_1 9600
119 // <o> USART baudrate 2
120 #define USART_BR_2 19200
121 // <o> USART baudrate 3
122 #define USART_BR_3 38400
123 // <o> USART baudrate 4
124 #define USART_BR_4 57600
125 // <o> USART baudrate 5
126 #define USART_BR_5 115200
127 // <o> USART baudrate 6
128 #define USART_BR_6 921600
130 // <o> Percentual tolerance for baudrate test
131 // <i> Set the tolerance between measured and expected baudrates (%)
132 #define TOLERANCE_BR 5
133 // <o> USART data bits
134 // <i> Set the USART data bits
135 #define USART_DATA_BITS 8
136 // <o> Transfer timeout
137 // <i> Set the transfer timeout (us)
138 #define USART_TRANSFER_TIMEOUT 1000000
140 // <i> Enable/disable test cases
141 // <q> USART_GetCapabilities
142 #define USART_GETCAPABILITIES_EN 1
143 // <q> USART_Initialization
144 #define USART_INITIALIZATION_EN 1
145 // <q> USART_PowerControl
146 #define USART_POWERCONTROL_EN 1
147 // <q> USART_Config_PolarityPhase
148 #define USART_CONFIG_POLARITYPHASE_EN 1
149 // <q> USART_Config_DataBits
150 #define USART_CONFIG_DATABITS_EN 1
151 // <q> USART_Config_StopBits
152 #define USART_CONFIG_STOPBITS_EN 1
153 // <q> USART_Config_Parity
154 #define USART_CONFIG_PARITY_EN 1
155 // <q> USART_Config_Baudrate
156 #define USART_CONFIG_BAUDRATE_EN 1
157 // <q> USART_Config_CommonParams
158 #define USART_CONFIG_COMMONPARAMS_EN 1
160 #define USART_SEND_EN 1
161 // <q> USART_Loopback_CheckBaudrate
162 #define USART_LOOPBACK_CHECKBAUDRATE_EN 1
163 // <q> USART_Loopback_Transfer
164 #define USART_LOOPBACK_TRANSFER_EN 1
165 // <q> USART_CheckInvalidInit
166 #define USART_CHECKINVALIDINIT_EN 1
171 // <o> Driver_ETH_MAC# <0-255>
172 // <i> Choose the Driver_ETH_MAC# instance to be tested
175 // <i> Set the Ethernet link timeout (us)
176 #define ETH_LINK_TIMEOUT 3000000
177 // <o> Transfer timeout
178 // <i> Set the transfer timeout (us)
179 #define ETH_TRANSFER_TIMEOUT 1000000
180 // <o> Time duration for PTP Control Time
181 // <i> Set time duration for Control Time tests (ms)
182 #define ETH_PTP_TIME_REF 1000
183 // <o> Tolerance for PTP Control Time
184 // <i> Set tolerance for Control Time tests (ns)
185 #define ETH_PTP_TOLERANCE 0
187 // <i> Enable/disable test cases
188 // <q> ETH_MAC_GetCapabilities
189 #define ETH_MAC_GETCAPABILITIES_EN 1
190 // <q> ETH_MAC_Initialization
191 #define ETH_MAC_INITIALIZATION_EN 1
192 // <q> ETH_MAC_PowerControl
193 #define ETH_MAC_POWERCONTROL_EN 1
194 // <q> ETH_MAC_SetBusSpeed
195 #define ETH_MAC_SETBUSSPEED_EN 1
196 // <q> ETH_MAC_Config_Mode
197 #define ETH_MAC_CONFIG_MODE_EN 1
198 // <q> ETH_MAC_Config_CommonParams
199 #define ETH_MAC_CONFIG_COMMONPARAMS_EN 1
200 // <q> ETH_MAC_PTP_ControlTimer
201 #define ETH_MAC_PTP_CONTROLTIMER_EN 1
202 // <q> ETH_PHY_Initialization
203 #define ETH_PHY_INITIALIZATION_EN 1
204 // <q> ETH_PHY_PowerControl
205 #define ETH_PHY_POWERCONTROL_EN 1
206 // <q> ETH_PHY_Config
207 #define ETH_PHY_CONFIG_EN 1
208 // <q> ETH_Loopback_Transfer
209 #define ETH_LOOPBACK_TRANSFER_EN 1
210 // <q> ETH_Loopback_PTP
211 #define ETH_LOOPBACK_PTP_EN 1
212 // <q> ETH_PHY_CheckInvalidInit
213 #define ETH_PHY_CHECKINVALIDINIT_EN 1
214 // <q> ETH_MAC_CheckInvalidInit
215 #define ETH_MAC_CHECKINVALIDINIT_EN 1
220 // <o> Driver_I2C# <0-255>
221 // <i> Choose the Driver_I2C# instance to be tested
224 // <i> Enable/disable test cases
225 // <q> I2C_GetCapabilities
226 #define I2C_GETCAPABILITIES_EN 1
227 // <q> I2C_Initialization
228 #define I2C_INITIALIZATION_EN 1
229 // <q> I2C_PowerControl
230 #define I2C_POWERCONTROL_EN 1
231 // <q> I2C_SetBusSpeed
232 #define I2C_SETBUSSPEED_EN 1
233 // <q> I2C_SetOwnAddress
234 #define I2C_SETOWNADDRESS_EN 1
236 #define I2C_BUSCLEAR_EN 1
237 // <q> I2C_AbortTransfer
238 #define I2C_ABORTTRANSFER_EN 1
239 // <q> I2C_CheckInvalidInit
240 #define I2C_CHECKINVALIDINIT_EN 1
245 // <o> Driver_MCI# <0-255>
246 // <i> Choose the Driver_MCI# instance to be tested
249 // <i> Enable/disable test cases
250 // <q> MCI_GetCapabilities
251 #define MCI_GETCAPABILITIES_EN 1
252 // <q> MCI_Initialization
253 #define MCI_INITIALIZATION_EN 1
254 // <q> MCI_PowerControl
255 #define MCI_POWERCONTROL_EN 1
256 // <q> MCI_SetBusSpeedMode
257 #define MCI_SETBUSSPEEDMODE_EN 1
258 // <q> MCI_Config_DataWidth
259 #define MCI_CONFIG_DATAWIDTH_EN 1
260 // <q> MCI_Config_CmdLineMode
261 #define MCI_CONFIG_CMDLINEMODE_EN 1
262 // <q> MCI_Config_DriverStrength
263 #define MCI_CONFIG_DRIVERSTRENGTH_EN 1
264 // <q> MCI_CheckInvalidInit
265 #define MCI_CHECKINVALIDINIT_EN 1
270 // <o> Driver_USBD# <0-255>
271 // <i> Choose the Driver_USBD# instance to be tested
274 // <i> Enable/disable test cases
275 // <q> USBD_GetCapabilities
276 #define USBD_GETCAPABILITIES_EN 1
277 // <q> USBD_Initialization
278 #define USBD_INITIALIZATION_EN 1
279 // <q> USBD_PowerControl
280 #define USBD_POWERCONTROL_EN 1
281 // <q> USBD_CheckInvalidInit
282 #define USBD_CHECKINVALIDINIT_EN 1
287 // <o> Driver_USBH# <0-255>
288 // <i> Choose the Driver_USBH# instance to be tested
291 // <i> Enable/disable test cases
292 // <q> USBH_GetCapabilities
293 #define USBH_GETCAPABILITIES_EN 1
294 // <q> USBH_Initialization
295 #define USBH_INITIALIZATION_EN 1
296 // <q> USBH_PowerControl
297 #define USBH_POWERCONTROL_EN 1
298 // <q> USBH_CheckInvalidInit
299 #define USBH_CHECKINVALIDINIT_EN 1
304 // <o> Driver_CAN# <0-255>
305 // <i> Choose the Driver_USBD# instance to be tested
308 // <i> Set the CAN bitrates (kbit/s)
309 // <i> Value zero is ignored
317 #define CAN_BR_4 1000
323 // <o> Ratio data/arbitration bitrate
324 // <i> Set the ratio between data and arbitration bitrate for CAN FD
325 #define CAN_DATA_ARB_RATIO 8
326 // <o> Percentual trigger for bitrate test
327 // <i> Set the minimum margin between measured and expected birates (%)
328 #define MIN_BITRATE 10
329 // <o> Transfer timeout
330 // <i> Set the transfer timeout (us)
331 #define CAN_TRANSFER_TIMEOUT 1000000
333 // <i> Enable/disable test cases
334 // <q> CAN_GetCapabilities
335 #define CAN_GETCAPABILITIES_EN 1
336 // <q> CAN_Initialization
337 #define CAN_INITIALIZATION_EN 1
338 // <q> CAN_PowerControl
339 #define CAN_POWERCONTROL_EN 1
340 // <q> CAN_Loopback_CheckBitrate
341 #define CAN_LOOPBACK_CHECK_BR_EN 1
342 // <q> CAN_Loopback_CheckBitrateFD
343 #define CAN_LOOPBACK_CHECK_BR_FD_EN 1
344 // <q> CAN_Loopback_Transfer
345 #define CAN_LOOPBACK_TRANSFER_EN 1
346 // <q> CAN_Loopback_TransferFD
347 #define CAN_LOOPBACK_TRANSFER_FD_EN 1
348 // <q> CAN_CheckInvalidInit
349 #define CAN_CHECKINVALIDINIT_EN 1
353 //------------------------------------------------------------------------------
355 // Device specific local loopback settings
356 #define SPI_LOCAL_LOOPBACK()
357 #define USART_LOCAL_LOOPBACK()
359 #endif /* __DV_CONFIG_H */