2 * Copyright (c) 2015-2023 Arm Limited. All rights reserved.
4 * SPDX-License-Identifier: Apache-2.0
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * -----------------------------------------------------------------------------
22 * Project: CMSIS-Driver Validation
23 * Title: Ethernet (ETH) driver validation configuration file
25 * -----------------------------------------------------------------------------
28 #ifndef DV_ETH_CONFIG_H_
29 #define DV_ETH_CONFIG_H_
31 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
34 // <i> Ethernet (ETH) driver validation configuration
35 // <o> Driver_ETH_MAC# <0-255>
36 // <i> Choose the Driver_ETH_MAC# instance to test.
37 // <i> For example to test Driver_ETH_MAC0 select 0.
40 // <i> Set the Ethernet link timeout (ms)
41 #define ETH_LINK_TIMEOUT 3000
42 // <o> Transfer timeout
43 // <i> Set the transfer timeout (ms)
44 #define ETH_TRANSFER_TIMEOUT 100
45 // <o> Time duration for PTP Control Time
46 // <i> Set time duration for Control Time tests (ms)
47 #define ETH_PTP_TIME_REF 1000
48 // <o> Tolerance for PTP Control Time
49 // <i> Set tolerance for Control Time tests (ns)
50 #define ETH_PTP_TOLERANCE 0
52 // <i> Enable / disable tests.
53 // <q> ETH_MAC_GetVersion
54 #define ETH_MAC_GET_VERSION_EN 1
55 // <q> ETH_MAC_GetCapabilities
56 #define ETH_MAC_GET_CAPABILITIES_EN 1
57 // <q> ETH_MAC_Initialization
58 #define ETH_MAC_INITIALIZATION_EN 1
59 // <q> ETH_MAC_PowerControl
60 #define ETH_MAC_POWER_CONTROL_EN 1
61 // <q> ETH_MAC_MacAddress
62 #define ETH_MAC_MAC_ADDRESS_EN 1
63 // <q> ETH_MAC_SetBusSpeed
64 #define ETH_MAC_SET_BUS_SPEED_EN 1
65 // <q> ETH_MAC_Config_Mode
66 #define ETH_MAC_CONFIG_MODE_EN 1
67 // <q> ETH_MAC_Config_CommonParams
68 #define ETH_MAC_CONFIG_COMMON_PARAMS_EN 1
69 // <q> ETH_MAC_Control_Filtering
70 #define ETH_MAC_CONTROL_FILTERING_EN 1
71 // <q> ETH_MAC_SetAddressFilter
72 #define ETH_MAC_SET_ADDRESS_FILTER_EN 1
73 // <q> ETH_MAC_SignalEvent
74 #define ETH_MAC_SIGNAL_EVENT_EN 1
75 // <q> ETH_MAC_PTP_ControlTimer
76 #define ETH_MAC_PTP_CONTROL_TIMER_EN 1
77 // <q> ETH_MAC_CheckInvalidInit
78 #define ETH_MAC_CHECK_INVALID_INIT_EN 1
79 // <q> ETH_PHY_GetVersion
80 #define ETH_PHY_GET_VERSION_EN 1
81 // <q> ETH_PHY_Initialization
82 #define ETH_PHY_INITIALIZATION_EN 1
83 // <q> ETH_PHY_PowerControl
84 #define ETH_PHY_POWER_CONTROL_EN 1
86 #define ETH_PHY_CONFIG_EN 1
87 // <q> ETH_PHY_CheckInvalidInit
88 #define ETH_PHY_CHECK_INVALID_INIT_EN 1
89 // <q> ETH_Loopback_Transfer
90 #define ETH_LOOPBACK_TRANSFER_EN 1
91 // <q> ETH_Loopback_PTP
92 #define ETH_LOOPBACK_PTP_EN 1
93 // <q> ETH_Loopback_External
94 #define ETH_LOOPBACK_EXTERNAL_EN 1
98 #endif /* DV_ETH_CONFIG_H_ */