]> begriffs open source - cmsis-driver-validation/blob - Config/DV_ETH_Config.h
Updated Readme with ref to use Doxygen 1.9.2
[cmsis-driver-validation] / Config / DV_ETH_Config.h
1 /*
2  * Copyright (c) 2015-2020 Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
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
9  *
10  * www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18  * -----------------------------------------------------------------------------
19  *
20  * $Revision:   V1.0.0
21  *
22  * Project:     CMSIS-Driver Validation
23  * Title:       Ethernet (ETH) driver validation configuration file
24  *
25  * -----------------------------------------------------------------------------
26  */
27
28 #ifndef DV_ETH_CONFIG_H_
29 #define DV_ETH_CONFIG_H_
30
31 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
32
33 // <h> Ethernet
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.
38 #define DRV_ETH                         0
39 // <o> Link timeout
40 // <i> Set the Ethernet link timeout (us)
41 #define ETH_LINK_TIMEOUT                3000000
42 // <o> Transfer timeout
43 // <i> Set the transfer timeout (us)
44 #define ETH_TRANSFER_TIMEOUT 1000000
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
51 // <h> Tests
52 // <i> Enable / disable tests.
53 // <q> ETH_MAC_GetCapabilities
54 #define ETH_MAC_GETCAPABILITIES_EN      1
55 // <q> ETH_MAC_Initialization
56 #define ETH_MAC_INITIALIZATION_EN       1
57 // <q> ETH_MAC_PowerControl
58 #define ETH_MAC_POWERCONTROL_EN         1
59 // <q> ETH_MAC_SetBusSpeed
60 #define ETH_MAC_SETBUSSPEED_EN          1
61 // <q> ETH_MAC_Config_Mode
62 #define ETH_MAC_CONFIG_MODE_EN          1
63 // <q> ETH_MAC_Config_CommonParams
64 #define ETH_MAC_CONFIG_COMMONPARAMS_EN  1
65 // <q> ETH_MAC_PTP_ControlTimer
66 #define ETH_MAC_PTP_CONTROLTIMER_EN     1
67 // <q> ETH_PHY_Initialization
68 #define ETH_PHY_INITIALIZATION_EN       1
69 // <q> ETH_PHY_PowerControl
70 #define ETH_PHY_POWERCONTROL_EN         1
71 // <q> ETH_PHY_Config
72 #define ETH_PHY_CONFIG_EN               1
73 // <q> ETH_Loopback_Transfer
74 #define ETH_LOOPBACK_TRANSFER_EN        1
75 // <q> ETH_Loopback_PTP
76 #define ETH_LOOPBACK_PTP_EN             1
77 // <q> ETH_PHY_CheckInvalidInit
78 #define ETH_PHY_CHECKINVALIDINIT_EN     1
79 // <q> ETH_MAC_CheckInvalidInit
80 #define ETH_MAC_CHECKINVALIDINIT_EN     1
81 // </h>
82 // </h>
83
84 // Buffer definitions
85 #define BUFFER_ELEM_1_32                0               // 0 = disable, 1 = enable
86 #define BUFFER_ELEM_512                 1               // 0 = disable, 1 = enable
87 #define BUFFER_ELEM_1024                0               // 0 = disable, 1 = enable
88 #define BUFFER_ELEM_4096                0               // 0 = disable, 1 = enable
89 #define BUFFER_ELEM_32768               0               // 0 = disable, 1 = enable
90 #define BUFFER_PATTERN                 {0x55, 0xAA}     // Buffer pattern
91
92 #endif /* DV_ETH_CONFIG_H_ */