1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/native: only one CAN_DLL by default

This commit is contained in:
Francisco Molina 2022-04-08 13:50:42 +02:00
parent 85c76fbaa7
commit 0d7eb36247
3 changed files with 5 additions and 3 deletions

View File

@ -10,9 +10,6 @@ endif
ifneq (,$(filter periph_can,$(FEATURES_USED)))
USEPKG += libsocketcan
ifeq ($(OS),Linux)
CFLAGS += -DCAN_DLL_NUMOF=2
endif
endif
# default to using littlefs2 on the virtual flash

View File

@ -30,8 +30,12 @@ extern "C" {
* @brief Default parameters (device names)
*/
static const candev_params_t candev_params[] = {
#if CAN_DLL_NUMOF >= 1
{ .name = "can0", },
#endif
#if CAN_DLL_NUMOF >= 2
{ .name = "can1", },
#endif
};
#ifdef __cplusplus

View File

@ -31,6 +31,7 @@ extern "C" {
#include <stdbool.h>
#include "can/device.h"
#include "can/candev.h"
#include "mutex.h"