1
Dependents: yezhong_main_controller_copy yezhong_main_controller_copy_1 yezhong_main_controller_copy yezhong_main_controller_copy-
Diff: CAN3.h
- Revision:
- 9:a35b78afe3e3
- Parent:
- 7:2abb9b7eec25
--- a/CAN3.h Mon Oct 18 13:40:02 2010 +0000 +++ b/CAN3.h Tue Jan 11 02:18:01 2022 +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_