Skip to content

Commit 5997811

Browse files
committed
STM32: F2: put can_s struct under DEVICE_CAN option
In case of F2 devices without CAN support.
1 parent 04ac65a commit 5997811

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/TARGET_STM32F2/objects.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,13 @@ struct pwmout_s {
136136
uint8_t inverted;
137137
};
138138

139+
#ifdef DEVICE_CAN
139140
struct can_s {
140141
CAN_HandleTypeDef CanHandle;
141142
int index;
142143
int hz;
143144
};
145+
#endif
144146

145147
#define GPIO_IP_WITHOUT_BRR
146148
#include "gpio_object.h"

0 commit comments

Comments
 (0)