2 * Copyright (c) 2015-2020 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: Controller Area Network (CAN) driver validation
26 * -----------------------------------------------------------------------------
29 #ifndef DV_CAN_CONFIG_H_
30 #define DV_CAN_CONFIG_H_
32 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
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.
41 // <i> Set the CAN bitrates (kbit/s)
42 // <i> Value zero is ignored
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
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
86 #endif /* DV_CAN_CONFIG_H_ */