/* * Copyright (c) 2015-2020 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ----------------------------------------------------------------------------- * * $Revision: V1.0.0 * * Project: CMSIS-Driver Validation * Title: Controller Area Network (CAN) driver validation * configuration file * * ----------------------------------------------------------------------------- */ #ifndef DV_CAN_CONFIG_H_ #define DV_CAN_CONFIG_H_ //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- // CAN // Controller Area Network (CAN) driver validation configuration // Driver_CAN# <0-255> // Choose the Driver_CAN# instance to test. // For example to test Driver_CAN0 select 0. #define DRV_CAN 0 // CAN bitrates // Set the CAN bitrates (kbit/s) // Value zero is ignored // CAN bitrate 1 #define CAN_BR_1 125 // CAN bitrate 2 #define CAN_BR_2 250 // CAN bitrate 3 #define CAN_BR_3 500 // CAN bitrate 4 #define CAN_BR_4 1000 // CAN bitrate 5 #define CAN_BR_5 0 // CAN bitrate 6 #define CAN_BR_6 0 // // Ratio data/arbitration bitrate // Set the ratio between data and arbitration bitrate for CAN FD #define CAN_DATA_ARB_RATIO 8 // Percentual trigger for bitrate test // Set the minimum margin between measured and expected bitrates (%) #define MIN_BITRATE 10 // Transfer timeout // Set the transfer timeout (us) #define CAN_TRANSFER_TIMEOUT 1000000 // Tests // Enable / disable tests. // CAN_GetCapabilities #define CAN_GETCAPABILITIES_EN 1 // CAN_Initialization #define CAN_INITIALIZATION_EN 1 // CAN_PowerControl #define CAN_POWERCONTROL_EN 1 // CAN_Loopback_CheckBitrate #define CAN_LOOPBACK_CHECK_BR_EN 1 // CAN_Loopback_CheckBitrateFD #define CAN_LOOPBACK_CHECK_BR_FD_EN 1 // CAN_Loopback_Transfer #define CAN_LOOPBACK_TRANSFER_EN 1 // CAN_Loopback_TransferFD #define CAN_LOOPBACK_TRANSFER_FD_EN 1 // CAN_CheckInvalidInit #define CAN_CHECKINVALIDINIT_EN 1 // // #endif /* DV_CAN_CONFIG_H_ */