mirror of https://github.com/ARMmbed/mbed-os.git
STM32: F2: put can_s struct under DEVICE_CAN option
In case of F2 devices without CAN support.pull/5184/head
parent
ca3a1aa66c
commit
7a7ccd7743
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue