mirror of https://github.com/ARMmbed/mbed-os.git
fix critical bug where I was hiding a lot more class members than i should. Add "CAN_NOT_SUPPORTED" guard to header instead of example
parent
21136cafcc
commit
f0a4451054
|
@ -94,7 +94,6 @@ public:
|
||||||
* @code
|
* @code
|
||||||
* #include "mbed.h"
|
* #include "mbed.h"
|
||||||
*
|
*
|
||||||
* #if defined (DEVICE_CAN) || defined(DOXYGEN_ONLY)
|
|
||||||
*
|
*
|
||||||
* Ticker ticker;
|
* Ticker ticker;
|
||||||
* DigitalOut led1(LED1);
|
* DigitalOut led1(LED1);
|
||||||
|
@ -126,10 +125,6 @@ public:
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* #else
|
|
||||||
* #error CAN NOT SUPPORTED
|
|
||||||
*
|
|
||||||
* #endif
|
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
CAN(PinName rd, PinName td);
|
CAN(PinName rd, PinName td);
|
||||||
|
@ -304,11 +299,13 @@ protected:
|
||||||
can_t _can;
|
can_t _can;
|
||||||
Callback<void()> _irq[IrqCnt];
|
Callback<void()> _irq[IrqCnt];
|
||||||
PlatformMutex _mutex;
|
PlatformMutex _mutex;
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace mbed
|
} // namespace mbed
|
||||||
|
|
||||||
|
#else
|
||||||
|
#error CAN NOT SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // MBED_CAN_H
|
#endif // MBED_CAN_H
|
||||||
|
|
Loading…
Reference in New Issue