11
Dependents: yezhong_main_controller_copy_3_
Diff: CAN3.h
- Revision:
- 9:4129ee73824c
- Parent:
- 7:2abb9b7eec25
diff -r 872137b3a8a8 -r 4129ee73824c CAN3.h --- a/CAN3.h Mon Oct 18 13:40:02 2010 +0000 +++ b/CAN3.h Mon Dec 20 01:23:18 2021 +0000 @@ -14,10 +14,10 @@ class CAN3 { SPI& spi; - InterruptIn _itr; + //InterruptIn _itr; mcp2515 _mcp; public: - CAN3(SPI& _spi, PinName ncs, PinName itr); + CAN3(SPI& _spi, PinName ncs);//, PinName itr); uint8_t read(CANMessage *msg); // int read(CANMessage& msg); void write(CANMessage* test); //int write(CANMessage msg); @@ -31,9 +31,6 @@ void rise(void (*fptr)(void)); void fall(void (*fptr2)(void)); - - - // Private functions private : uint8_t checkReceive(void); @@ -41,4 +38,4 @@ }; -#endif // _MCP2515_H_ +#endif // _CAN3_H_