We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21136ca commit f0a4451Copy full SHA for f0a4451
drivers/CAN.h
@@ -94,7 +94,6 @@ class CAN : private NonCopyable<CAN> {
94
* @code
95
* #include "mbed.h"
96
*
97
- * #if defined (DEVICE_CAN) || defined(DOXYGEN_ONLY)
98
99
* Ticker ticker;
100
* DigitalOut led1(LED1);
@@ -126,10 +125,6 @@ class CAN : private NonCopyable<CAN> {
126
125
* }
127
128
129
- * #else
130
- * #error CAN NOT SUPPORTED
131
- *
132
- * #endif
133
* @endcode
134
*/
135
CAN(PinName rd, PinName td);
@@ -304,11 +299,13 @@ class CAN : private NonCopyable<CAN> {
304
299
can_t _can;
305
300
Callback<void()> _irq[IrqCnt];
306
301
PlatformMutex _mutex;
307
-};
308
302
#endif
303
+};
309
310
} // namespace mbed
311
+#else
+ #error CAN NOT SUPPORTED
312
313
314
#endif // MBED_CAN_H
0 commit comments