Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: KL25Z_ClockControl MODSERIAL mbed
Fork of EtherCAT-XbusMaster by
EtherCAT/cpuinit.h@5:6d75f432a41f, 2014-12-11 (annotated)
- Committer:
- vsluiter
- Date:
- Thu Dec 11 23:12:11 2014 +0000
- Revision:
- 5:6d75f432a41f
- Parent:
- 2:3dd1240eb938
- Child:
- 8:09dcef3ed467
Not working; changed both inputs, processing and CoE ;
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| vsluiter | 0:a8daa9348a67 | 1 | /* | 
| vsluiter | 0:a8daa9348a67 | 2 | * SOES Simple Open EtherCAT Slave | 
| vsluiter | 0:a8daa9348a67 | 3 | * | 
| vsluiter | 0:a8daa9348a67 | 4 | * File : cpuinit.h | 
| vsluiter | 0:a8daa9348a67 | 5 | * Version : 0.9.2 | 
| vsluiter | 0:a8daa9348a67 | 6 | * Date : 22-02-2010 | 
| vsluiter | 0:a8daa9348a67 | 7 | * Copyright (C) 2007-2010 Arthur Ketels | 
| vsluiter | 0:a8daa9348a67 | 8 | * | 
| vsluiter | 0:a8daa9348a67 | 9 | * SOES is free software; you can redistribute it and/or modify it under | 
| vsluiter | 0:a8daa9348a67 | 10 | * the terms of the GNU General Public License version 2 as published by the Free | 
| vsluiter | 0:a8daa9348a67 | 11 | * Software Foundation. | 
| vsluiter | 0:a8daa9348a67 | 12 | * | 
| vsluiter | 0:a8daa9348a67 | 13 | * SOES is distributed in the hope that it will be useful, but WITHOUT ANY | 
| vsluiter | 0:a8daa9348a67 | 14 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or | 
| vsluiter | 0:a8daa9348a67 | 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | 
| vsluiter | 0:a8daa9348a67 | 16 | * for more details. | 
| vsluiter | 0:a8daa9348a67 | 17 | * | 
| vsluiter | 0:a8daa9348a67 | 18 | * As a special exception, if other files instantiate templates or use macros | 
| vsluiter | 0:a8daa9348a67 | 19 | * or inline functions from this file, or you compile this file and link it | 
| vsluiter | 0:a8daa9348a67 | 20 | * with other works to produce a work based on this file, this file does not | 
| vsluiter | 0:a8daa9348a67 | 21 | * by itself cause the resulting work to be covered by the GNU General Public | 
| vsluiter | 0:a8daa9348a67 | 22 | * License. However the source code for this file must still be made available | 
| vsluiter | 0:a8daa9348a67 | 23 | * in accordance with section (3) of the GNU General Public License. | 
| vsluiter | 0:a8daa9348a67 | 24 | * | 
| vsluiter | 0:a8daa9348a67 | 25 | * This exception does not invalidate any other reasons why a work based on | 
| vsluiter | 0:a8daa9348a67 | 26 | * this file might be covered by the GNU General Public License. | 
| vsluiter | 0:a8daa9348a67 | 27 | * | 
| vsluiter | 0:a8daa9348a67 | 28 | * The EtherCAT Technology, the trade name and logo "EtherCAT" are the intellectual | 
| vsluiter | 0:a8daa9348a67 | 29 | * property of, and protected by Beckhoff Automation GmbH. | 
| vsluiter | 0:a8daa9348a67 | 30 | */ | 
| vsluiter | 1:5e22bf1a3817 | 31 | #ifndef __CPUINIT_H__ | 
| vsluiter | 1:5e22bf1a3817 | 32 | #define __CPUINIT_H__ | 
| vsluiter | 1:5e22bf1a3817 | 33 | #include "mbed.h" | 
| vsluiter | 1:5e22bf1a3817 | 34 | |
| vsluiter | 0:a8daa9348a67 | 35 | extern void cpuinit(void); | 
| vsluiter | 0:a8daa9348a67 | 36 | |
| vsluiter | 2:3dd1240eb938 | 37 | //#define SHOE_SERIAL_TX PA_9 | 
| vsluiter | 2:3dd1240eb938 | 38 | //#define SHOE_SERIAL_RX PA_10 | 
| vsluiter | 2:3dd1240eb938 | 39 | #define ET1100_MOSI PTD2 | 
| vsluiter | 2:3dd1240eb938 | 40 | #define ET1100_MISO PTD3 | 
| vsluiter | 2:3dd1240eb938 | 41 | #define ET1100_SCK PTD1 | 
| vsluiter | 2:3dd1240eb938 | 42 | #define ET1100_SS PTD0 | 
| vsluiter | 2:3dd1240eb938 | 43 | #define LED_PIN LED_GREEN | 
| vsluiter | 5:6d75f432a41f | 44 | #define ADC_FL PTB0 | 
| vsluiter | 5:6d75f432a41f | 45 | #define ADC_FR PTB2 | 
| vsluiter | 5:6d75f432a41f | 46 | #define ADC_BL PTB1 | 
| vsluiter | 5:6d75f432a41f | 47 | #define ADC_BR PTB3 | 
| vsluiter | 5:6d75f432a41f | 48 | |
| vsluiter | 1:5e22bf1a3817 | 49 | extern DigitalOut led; | 
| vsluiter | 1:5e22bf1a3817 | 50 | extern DigitalOut et1100_ss; | 
| vsluiter | 1:5e22bf1a3817 | 51 | extern DigitalIn et1100_miso; | 
| vsluiter | 1:5e22bf1a3817 | 52 | extern SPI et1100_spi; | 
| vsluiter | 5:6d75f432a41f | 53 | extern AnalogIn adcFrontLeft; | 
| vsluiter | 5:6d75f432a41f | 54 | extern AnalogIn adcFrontRight; | 
| vsluiter | 5:6d75f432a41f | 55 | extern AnalogIn adcBackLeft; | 
| vsluiter | 5:6d75f432a41f | 56 | extern AnalogIn adcBackRight; | 
| vsluiter | 1:5e22bf1a3817 | 57 | #endif | 
