Working fork to test F0 application

Dependents:   ppCANOpen_Example

Fork of CANnucleo by Zoltan Hudak

Revision:
11:439f3a34c42e
Parent:
7:62684572ae9c
Child:
12:c45310ff2233
diff -r 227a455d0f9f -r 439f3a34c42e stm32f1xx_hal_msp.c
--- a/stm32f1xx_hal_msp.c	Sat Dec 05 10:18:24 2015 +0000
+++ b/stm32f1xx_hal_msp.c	Tue Dec 22 18:19:16 2015 +0000
@@ -38,6 +38,7 @@
   *
   ******************************************************************************
   */
+#if defined(TARGET_NUCLEO_F103RB)
 #include "stm32f1xx_hal.h"
 #include "can_api.h"
 #include "pinmap.h"
@@ -62,7 +63,7 @@
     _rxPin = rxPin;
     _txPin = txPin;
 
-    _canHandle.Instance = CAN1;
+    _canHandle.Instance = ((CAN_TypeDef *) CAN1_BASE);
     _canHandle.pTxMsg = &_canTxMsg;
     _canHandle.pRxMsg = &_canRxMsg;
 
@@ -247,3 +248,6 @@
     // Enable FIFO 0 message pending Interrupt
     __HAL_CAN_ENABLE_IT(_canHandle, CAN_IT_FMP0);
 }
+#endif
+
+