2016-11-23 19:06:59 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 OTA keys S.A.
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2017-07-02 18:33:45 +02:00
|
|
|
* @ingroup drivers_candev_linux
|
2016-11-23 19:06:59 +01:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Default linux can config
|
|
|
|
*
|
|
|
|
* @author Vincent Dupont <vincent@otakeys.com>
|
|
|
|
*/
|
|
|
|
|
2020-09-04 10:41:56 +02:00
|
|
|
#ifndef CAN_PARAMS_H
|
|
|
|
#define CAN_PARAMS_H
|
2016-11-23 19:06:59 +01:00
|
|
|
|
|
|
|
#include "candev_linux.h"
|
|
|
|
#include "can/device.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Default parameters (device names)
|
|
|
|
*/
|
2020-09-04 10:41:56 +02:00
|
|
|
static const candev_params_t candev_params[] = {
|
2022-04-08 13:50:42 +02:00
|
|
|
#if CAN_DLL_NUMOF >= 1
|
2016-11-23 19:06:59 +01:00
|
|
|
{ .name = "can0", },
|
2022-04-08 13:50:42 +02:00
|
|
|
#endif
|
|
|
|
#if CAN_DLL_NUMOF >= 2
|
2016-11-23 19:06:59 +01:00
|
|
|
{ .name = "can1", },
|
2022-04-08 13:50:42 +02:00
|
|
|
#endif
|
2016-11-23 19:06:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-09-04 10:41:56 +02:00
|
|
|
#endif /* CAN_PARAMS_H */
|
2016-11-23 19:06:59 +01:00
|
|
|
/** @} */
|