CAN library containing a CAN controller object handling a FIFO, and CAN peripherals attached to it.

Revision:
5:d1920eb1d63e
Parent:
4:0ed21bbd917b
--- a/ControllerCAN.h	Sat May 05 13:46:16 2018 +0000
+++ b/ControllerCAN.h	Sat Sep 12 12:36:45 2020 +0000
@@ -69,8 +69,11 @@
 class ControllerCAN {
     public :
     /** Create ControllerCAN instance
+     *
+     * @param rx Rd pin
+     * @param tx td pin
      */
-    ControllerCAN();
+    ControllerCAN(PinName rd, PinName td);
     
     /** Destroy ControllerCAN instance
      */
@@ -114,7 +117,7 @@
     
     private :
     
-    static CAN can;
+    CAN can;
     vector<PeripheralCAN*> peripherals;
     unsigned char FIFO_ecriture;
     signed char FIFO_lecture;