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: MODSERIAL mbed KL25Z_ClockControl
Fork of EtherCAT by
EtherCAT/cpuinit.h@1:5e22bf1a3817, 2014-12-11 (annotated)
- Committer:
- vsluiter
- Date:
- Thu Dec 11 21:16:00 2014 +0000
- Revision:
- 1:5e22bf1a3817
- Parent:
- 0:a8daa9348a67
- Child:
- 2:3dd1240eb938
Working slave;
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 | 0:a8daa9348a67 | 37 | #define SHOE_SERIAL_TX PA_9 |
| vsluiter | 0:a8daa9348a67 | 38 | #define SHOE_SERIAL_RX PA_10 |
| vsluiter | 1:5e22bf1a3817 | 39 | #define ET1100_MOSI PB_5 |
| vsluiter | 1:5e22bf1a3817 | 40 | #define ET1100_MISO PB_4 |
| vsluiter | 1:5e22bf1a3817 | 41 | #define ET1100_SCK PB_3 |
| vsluiter | 1:5e22bf1a3817 | 42 | #define ET1100_SS PB_10 |
| vsluiter | 1:5e22bf1a3817 | 43 | #define LED_PIN PA_5 |
| vsluiter | 1:5e22bf1a3817 | 44 | extern Serial shoe_serial; |
| vsluiter | 1:5e22bf1a3817 | 45 | extern DigitalOut led; |
| vsluiter | 1:5e22bf1a3817 | 46 | extern DigitalOut et1100_ss; |
| vsluiter | 1:5e22bf1a3817 | 47 | extern DigitalIn et1100_miso; |
| vsluiter | 1:5e22bf1a3817 | 48 | extern SPI et1100_spi; |
| vsluiter | 1:5e22bf1a3817 | 49 | #endif |
