STM32: F2: put can_s struct under DEVICE_CAN option

In case of F2 devices without CAN support.
pull/5184/head
Laurent MEUNIER 2017-08-21 14:41:08 +02:00 committed by adbridge
parent ca3a1aa66c
commit 7a7ccd7743
1 changed files with 2 additions and 0 deletions

View File

@ -136,11 +136,13 @@ struct pwmout_s {
uint8_t inverted; uint8_t inverted;
}; };
#ifdef DEVICE_CAN
struct can_s { struct can_s {
CAN_HandleTypeDef CanHandle; CAN_HandleTypeDef CanHandle;
int index; int index;
int hz; int hz;
}; };
#endif
#define GPIO_IP_WITHOUT_BRR #define GPIO_IP_WITHOUT_BRR
#include "gpio_object.h" #include "gpio_object.h"