HC Voort / Mbed 2 deprecated EtherCAT-XbusMaster

Dependencies:   KL25Z_ClockControl MODSERIAL mbed

Fork of EtherCAT-XbusMaster by First Last

Revision:
0:a8daa9348a67
Child:
1:5e22bf1a3817
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EtherCAT/cpuinit.h	Mon Nov 17 13:55:07 2014 +0000
@@ -0,0 +1,42 @@
+/*
+ * SOES Simple Open EtherCAT Slave
+ *
+ * File    : cpuinit.h
+ * Version : 0.9.2
+ * Date    : 22-02-2010
+ * Copyright (C) 2007-2010 Arthur Ketels
+ *
+ * SOES is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License version 2 as published by the Free
+ * Software Foundation.
+ *
+ * SOES is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * for more details.
+ *
+ * As a special exception, if other files instantiate templates or use macros
+ * or inline functions from this file, or you compile this file and link it
+ * with other works to produce a work based on this file, this file does not
+ * by itself cause the resulting work to be covered by the GNU General Public
+ * License. However the source code for this file must still be made available
+ * in accordance with section (3) of the GNU General Public License.
+ *
+ * This exception does not invalidate any other reasons why a work based on
+ * this file might be covered by the GNU General Public License.
+ *
+ * The EtherCAT Technology, the trade name and logo "EtherCAT" are the intellectual
+ * property of, and protected by Beckhoff Automation GmbH.
+ */
+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);