HC Voort / Mbed 2 deprecated EtherCAT-XbusMaster

Dependencies:   KL25Z_ClockControl MODSERIAL mbed

Fork of EtherCAT-XbusMaster by First Last

Revision:
1:5e22bf1a3817
Parent:
0:a8daa9348a67
Child:
2:3dd1240eb938
diff -r a8daa9348a67 -r 5e22bf1a3817 EtherCAT/cpuinit.h
--- a/EtherCAT/cpuinit.h	Mon Nov 17 13:55:07 2014 +0000
+++ b/EtherCAT/cpuinit.h	Thu Dec 11 21:16:00 2014 +0000
@@ -28,15 +28,22 @@
  * The EtherCAT Technology, the trade name and logo "EtherCAT" are the intellectual
  * property of, and protected by Beckhoff Automation GmbH.
  */
+#ifndef __CPUINIT_H__
+#define __CPUINIT_H__
+#include "mbed.h"
+
 extern void cpuinit(void);
 
 #define SHOE_SERIAL_TX PA_9
 #define SHOE_SERIAL_RX PA_10
-#define ET1100_MOSI PA_7
-#define ET1100_MISO PA_6
-#define ET1100_SCK  PA_5
-#define ET1100_SS   PB_6
-Serial shoe_serial(SHOE_SERIAL_TX,SHOE_SERIAL_RX);
-DigitalOut et1100_ss ET1100_SS;
-DigitalIn  et1100_miso ET1100_MISO
-SPI et1100_spi(ET1100_MOSI,ET1100_MISO,ET1100_SCK);
+#define ET1100_MOSI PB_5
+#define ET1100_MISO PB_4
+#define ET1100_SCK  PB_3
+#define ET1100_SS   PB_10
+#define LED_PIN     PA_5
+extern Serial shoe_serial;
+extern DigitalOut led;
+extern DigitalOut et1100_ss;
+extern DigitalIn  et1100_miso;
+extern SPI et1100_spi;
+#endif