mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
Diff: api/CAN.h
- Revision:
- 637:909ea77f86f8
- Parent:
- 636:03b10be137bf
--- a/api/CAN.h Mon Dec 14 06:28:46 2015 +0000 +++ b/api/CAN.h Mon Dec 14 15:51:51 2015 +0000 @@ -20,6 +20,10 @@ #if DEVICE_CAN +#ifdef CAN + #undef CAN +#endif + #include "can_api.h" #include "can_helper.h" #include "FunctionPointer.h" @@ -64,7 +68,7 @@ /** A can bus client, used for communicating with can devices */ -class Can { +class CAN { public: /** Creates an CAN interface connected to specific pins. @@ -105,10 +109,8 @@ * } * @endcode */ - Can(PinName rd, PinName td); - virtual ~Can(); - - void dummy(void); + CAN(PinName rd, PinName td); + virtual ~CAN(); /** Set the frequency of the CAN interface *