Skip to content

Commit

Permalink
fixup! fixup! tests/conn_can: build stm32 CAN drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Dupont committed Apr 3, 2019
1 parent 08fdf42 commit 207d320
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion drivers/include/periph/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,7 +47,7 @@ typedef candev_t can_t;
/**
* @brief CAN configuration identifier
*/
typedef void can_conf_t;
typedef int can_conf_t;
#endif

/**
Expand All @@ -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 */
/** @} */

0 comments on commit 207d320

Please sign in to comment.