Gerardo Antonio / Mbed 2 deprecated BMS_4

Dependencies:   CANnucleo LTC68041 mbed

Fork of BMS_2 by Joao Vieira

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Sat Jul 23 08:29:31 2016 +0000
Parent:
11:07d927da1a94
Child:
13:e741def3e4ff
Commit message:
Updated

Changed in this revision

CANnucleo.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/CANnucleo.lib	Fri Mar 11 12:29:38 2016 +0000
+++ b/CANnucleo.lib	Sat Jul 23 08:29:31 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/hudakz/code/CANnucleo/#a11422cf8e0a
+http://mbed.org/users/hudakz/code/CANnucleo/#d51e1617975f
--- a/main.cpp	Fri Mar 11 12:29:38 2016 +0000
+++ b/main.cpp	Sat Jul 23 08:29:31 2016 +0000
@@ -20,9 +20,9 @@
  */ 
 
 #include "mbed.h"
-#include "CAN.h"
+#include "CANnucleo.h"
 
-#define TARGET_STM32F103C8T6  1     // comment out this line when using official NUCLEO boards!                                    
+//#define TARGET_STM32F103C8T6  1     // comment out this line when using official NUCLEO boards!                                    
 #define BOARD1                1     // comment out this line when compiling for board #2
 
 #if defined(TARGET_STM32F103C8T6) 
@@ -71,7 +71,7 @@
  */
 int main() {
     can.frequency(1000000);                     // set bit rate to 1Mbps
-    can.attach(&onMsgReceived, CAN::RxIrq);     // attach 'CAN receive-complete' interrupt handler
+    can.attach(&onMsgReceived);                 // attach 'CAN receive-complete' interrupt handler
     
 #if defined(BOARD1)
     led = ON;       // turn LED on
@@ -109,7 +109,7 @@
                 printf(" %x", rxMsg.data[i]);
             printf("\r\n");
             // Filtering performed by software:           
-            if(rxMsg.id == RX_ID) {             // See comments in CAN.cpp for filtering performed by hadware
+            if(rxMsg.id == RX_ID) {             // See comments in CAN.cpp for filtering performed by hardware
                 rxMsg >> counter;               // extract first data item
                 rxMsg >> ledState;              // extract second data item
                 printf("counter = %d\r\n", counter);
@@ -120,3 +120,4 @@
     }
 }
 
+
--- a/mbed.bld	Fri Mar 11 12:29:38 2016 +0000
+++ b/mbed.bld	Sat Jul 23 08:29:31 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/87f2f5183dfb
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file