diff --git a/targets/TARGET_STM/TARGET_STM32F2/objects.h b/targets/TARGET_STM/TARGET_STM32F2/objects.h index adad4a21ec..e87ecf78a7 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/objects.h +++ b/targets/TARGET_STM/TARGET_STM32F2/objects.h @@ -136,11 +136,13 @@ struct pwmout_s { uint8_t inverted; }; +#ifdef DEVICE_CAN struct can_s { CAN_HandleTypeDef CanHandle; int index; int hz; }; +#endif #define GPIO_IP_WITHOUT_BRR #include "gpio_object.h"