EtherCAT slave that reads 3 Xsens IMU's connected to a Xbus Master
Dependencies: MODSERIAL mbed KL25Z_ClockControl
Fork of EtherCAT by
cpuinit.h
00001 /* 00002 * SOES Simple Open EtherCAT Slave 00003 * 00004 * File : cpuinit.h 00005 * Version : 0.9.2 00006 * Date : 22-02-2010 00007 * Copyright (C) 2007-2010 Arthur Ketels 00008 * 00009 * SOES is free software; you can redistribute it and/or modify it under 00010 * the terms of the GNU General Public License version 2 as published by the Free 00011 * Software Foundation. 00012 * 00013 * SOES is distributed in the hope that it will be useful, but WITHOUT ANY 00014 * WARRANTY; without even the implied warranty of MERCHANTABILITY or 00015 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00016 * for more details. 00017 * 00018 * As a special exception, if other files instantiate templates or use macros 00019 * or inline functions from this file, or you compile this file and link it 00020 * with other works to produce a work based on this file, this file does not 00021 * by itself cause the resulting work to be covered by the GNU General Public 00022 * License. However the source code for this file must still be made available 00023 * in accordance with section (3) of the GNU General Public License. 00024 * 00025 * This exception does not invalidate any other reasons why a work based on 00026 * this file might be covered by the GNU General Public License. 00027 * 00028 * The EtherCAT Technology, the trade name and logo "EtherCAT" are the intellectual 00029 * property of, and protected by Beckhoff Automation GmbH. 00030 */ 00031 #ifndef __CPUINIT_H__ 00032 #define __CPUINIT_H__ 00033 #include "mbed.h" 00034 #include "MODSERIAL.h" 00035 #include "xbus.h" 00036 #include "kl25z_clock.h" 00037 00038 extern void cpuinit(void); 00039 00040 #define ET1100_MOSI PTD2 00041 #define ET1100_MISO PTD3 00042 #define ET1100_SCK PTD1 00043 #define ET1100_SS PTD0 00044 #define LED_PIN PTB18 00045 00046 00047 extern DigitalOut led; 00048 extern DigitalOut et1100_ss; 00049 extern DigitalIn et1100_miso; 00050 extern SPI et1100_spi; 00051 00052 #endif
Generated on Wed Jul 13 2022 17:16:52 by 1.7.2