]> begriffs open source - cmsis-driver-validation/blob - Config/DV_CAN_Config.h
Update GitHub Actions runner to ubuntu-22.04 (#18)
[cmsis-driver-validation] / Config / DV_CAN_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:       Controller Area Network (CAN) driver validation 
24  *              configuration file
25  *
26  * -----------------------------------------------------------------------------
27  */
28
29 #ifndef DV_CAN_CONFIG_H_
30 #define DV_CAN_CONFIG_H_
31
32 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
33
34 // <h> CAN
35 // <i> Controller Area Network (CAN) driver validation configuration
36 // <o> Driver_CAN# <0-255>
37 // <i> Choose the Driver_CAN# instance to test.
38 // <i> For example to test Driver_CAN0 select 0.
39 #define DRV_CAN                         0
40 // <h> CAN bitrates
41 // <i> Set the CAN bitrates (kbit/s)
42 // <i> Value zero is ignored
43 // <o> CAN bitrate 1
44 #define CAN_BR_1                        125
45 // <o> CAN bitrate 2
46 #define CAN_BR_2                        250
47 // <o> CAN bitrate 3
48 #define CAN_BR_3                        500
49 // <o> CAN bitrate 4
50 #define CAN_BR_4                        1000
51 // <o> CAN bitrate 5
52 #define CAN_BR_5                        0
53 // <o> CAN bitrate 6
54 #define CAN_BR_6                        0
55 // </h>
56 // <o> Ratio data/arbitration bitrate
57 // <i> Set the ratio between data and arbitration bitrate for CAN FD
58 #define CAN_DATA_ARB_RATIO              8
59 // <o> Percentual trigger for bitrate test
60 // <i> Set the minimum margin between measured and expected bitrates (%)
61 #define MIN_BITRATE                     10
62 // <o> Transfer timeout
63 // <i> Set the transfer timeout (us)
64 #define CAN_TRANSFER_TIMEOUT            1000000
65 // <h> Tests
66 // <i> Enable / disable tests.
67 // <q> CAN_GetCapabilities
68 #define CAN_GETCAPABILITIES_EN          1
69 // <q> CAN_Initialization
70 #define CAN_INITIALIZATION_EN           1
71 // <q> CAN_PowerControl
72 #define CAN_POWERCONTROL_EN             1
73 // <q> CAN_Loopback_CheckBitrate
74 #define CAN_LOOPBACK_CHECK_BR_EN        1
75 // <q> CAN_Loopback_CheckBitrateFD
76 #define CAN_LOOPBACK_CHECK_BR_FD_EN     1
77 // <q> CAN_Loopback_Transfer
78 #define CAN_LOOPBACK_TRANSFER_EN        1
79 // <q> CAN_Loopback_TransferFD
80 #define CAN_LOOPBACK_TRANSFER_FD_EN     1
81 // <q> CAN_CheckInvalidInit
82 #define CAN_CHECKINVALIDINIT_EN         1
83 // </h>
84 // </h>
85
86 #endif /* DV_CAN_CONFIG_H_ */