From 207d320cccbbb40f348be1e78b8a5d5fc60ec196 Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Wed, 3 Apr 2019 09:08:46 +0200 Subject: [PATCH] fixup! fixup! tests/conn_can: build stm32 CAN drivers --- drivers/include/periph/can.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/include/periph/can.h b/drivers/include/periph/can.h index 08abbf5b16741..d745e1e22d02a 100644 --- a/drivers/include/periph/can.h +++ b/drivers/include/periph/can.h @@ -32,6 +32,10 @@ #include "periph_cpu.h" #include "can/candev.h" +#ifdef __cplusplus +extern "C" { +#endif + #ifndef HAVE_CAN_T /** * @brief CAN device descriptor identifier @@ -43,7 +47,7 @@ typedef candev_t can_t; /** * @brief CAN configuration identifier */ -typedef void can_conf_t; +typedef int can_conf_t; #endif /** @@ -54,4 +58,9 @@ typedef void can_conf_t; */ void can_init(can_t *dev, const can_conf_t *conf); +#ifdef __cplusplus +} +#endif + #endif /* PERIPH_CAN_H */ +/** @} */