Don't overwrite the original pointer returned by ec_find_adapters(),
otherwise the linked list is leaked. Instead, save original pointer to
the head of the list use and `adapters` as a temporary variable. Pass
the original pointer to ec_free_adapters().
For win32, ec_free_adapters() was missing entirely.
This PR increases the size eepromtool can read/write to 4 megabit, which is the maximum slave devices seem to support according to the datasheets.
Due to space constraints on our device we store some application specific data on our slave that exceeds 32kbyte, hence the need for the ability to read/write larger images to EEPROM.
* cleanup CMakeLists.txt
* build with more warnings, warnings as errors
* fix expression has no effect warning
* fix unused parameter warnings
* fix loss of precision warning
* remove obsolete files
This way, applications don't need to know the details of every header
file that exists in the API. With a simple:
#include <ethercat.h>
they would get everything. This is specially important because the
order of including the header files is important!
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>