Clean Up: remove demo application code
Currently, ecmasterlib is built completely on top of the demo program provided by Acontis.
Not only does this mean ~95% of the code is unnecessary, but the original example application still runs in the background, messing with the process data image when certain devices (e.g. the EL2008
) are present!
Reading through the Acontis stack documentation, the actual initialization of the stack is only a couple of lines long compared to the thousands of lines of demo code.
The demo app includes its own logging framework and notification handling code, which is not need/used by ecmasterlib and could be replaced with custom code fairly easily. All the stack itsef really needs is a few callbacks + user data pointers. This also means we can probably get rid of the singleton for EcMasterlibMain
opening up the possibility of supporting multiple EtherCAT stacks running simultatneuosly on different busses (e.g. the internal bus + an external one using one of the RJ45 connectors), which is -- at least in principle -- supported by the Acontis stack.