Build an etherCAT slave with a Motor Shield Base Board having Arduino UNO form factor.
Dependencies: EsmacatShield X_NUCLEO_IHM01A1
Information about Esmacat and EASE is provided in the link below. https://os.mbed.com/users/esmacat/code/EASE_Example/wiki/Homepage
Information about the hardware needs and setup is provided in the link below. https://os.mbed.com/users/esmacat/code/EASE_Example/wiki/Hardware-Setup
Information about the structure of the system and it's software is provided in the link below. https://os.mbed.com/users/esmacat/code/EASE_Example/wiki/Software
Diff: main.cpp
- Revision:
- 17:4830b25fec7f
- Parent:
- 13:dd03d1f8f43b
- Child:
- 19:1cd7f65c155c
--- a/main.cpp Thu Dec 10 15:06:06 2015 +0000 +++ b/main.cpp Mon Dec 14 17:29:14 2015 +0000 @@ -72,8 +72,8 @@ /* Initializing Motor Control Component. */ motor = new L6474(D2, D8, D7, D9, D10, dev_spi); - if (motor->Init(NULL) != COMPONENT_OK) - return false; + if (motor->Init() != COMPONENT_OK) + exit(EXIT_FAILURE); /* Printing to the console. */ printf("Motor Control Application Example for 1 Motor\r\n\n");