Working fork to test F0 application

Dependents:   ppCANOpen_Example

Fork of CANnucleo by Zoltan Hudak

Revision:
6:c5a40d5fd9f1
Parent:
5:b53e5ee15315
Child:
8:5c90d6b9a382
--- a/CAN.cpp	Tue Aug 04 11:58:09 2015 +0000
+++ b/CAN.cpp	Fri Oct 23 19:45:00 2015 +0000
@@ -24,15 +24,17 @@
 {
     
 /**
- * @brief
- * @note
- * @param
+ * @brief   Constructor
+ * @note    Constructs an instance of CAN class
+ * @param   rxPin: CAN Rx pin name
+ * @param   txPin: CAN Tx pin name
+ * @param   abom:  Automatic recovery from bus-off state (defaults to enabled)
  * @retval
  */
-CAN::CAN(PinName rxPin, PinName txPin) :
+CAN::CAN(PinName rxPin, PinName txPin, FunctionalState abom /* = ENABLE */) :
     _can(),
     _irq() {
-    can_init(&_can, rxPin, txPin);
+    can_init(&_can, rxPin, txPin, abom);
     can_irq_init(&_can, (&CAN::_irq_handler), (uint32_t)this);
 }
 
@@ -169,3 +171,4 @@
 
 
 
+