[FIX] Fix heartbeat function for direct control module

Does not work if first call to ctrucal_getHeartbeat() returns 0.

Change-Id: Idd4b03eb25003c0458742e33a0d989532373a67e
Reviewed-on: http://brateggevoat1/gerrit/591
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Grey out unused code in Altera Nios II Eclipse

In order to grey out unused code correctly the current directory needs to be
added as well (including EplCfg.h).

Change-Id: Ice353873f06f37eece6c78c24ddd110767a93b92
Reviewed-on: http://brateggevoat1/gerrit/588
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Fix timeouts in pdoucalsync-bsdsem.c

Change-Id: I59c3164ccf00b0a728127b958892670e7741e4bf
Reviewed-on: http://brateggevoat1/gerrit/607
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Reworked target specific stack functions

Change-Id: Ie4d3f0b023f5646af52ebc45d1143f57587f9d71
Reviewed-on: http://brateggevoat1/gerrit/608
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Add function api_waitSyncEvent()

Change-Id: I707d904949fa203df022b2ee9a1d18f439e0ea2d
Reviewed-on: http://brateggevoat1/gerrit/613
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Remove warning option for microsoft compiler in obdcdc.c

Macro will be supplied by CMake options.

Change-Id: I476eba44bad157fc293866b901d410436316d84c
Reviewed-on: http://brateggevoat1/gerrit/612
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Remove trace output in EplApiProcessImageSetup.c

Avoid that applications need to include trace library.

Change-Id: I5ad18b4fa0a7052bc67bf8b8554e8d681bbfc795
Reviewed-on: http://brateggevoat1/gerrit/622
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Extract console functions into separate library

Change-Id: Iba7790ee159200bd22ff2adee62cb2f0b7098ec0
Reviewed-on: http://brateggevoat1/gerrit/609
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Extract trace functions into separate library

Change-Id: I9d86c5f13e716615c6ed762c4052b89653f5f181
Reviewed-on: http://brateggevoat1/gerrit/610
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Adapt control module to new target sleep function

Change-Id: I380603645ada4b9bb01293d9bf2757eb8eb91441
Reviewed-on: http://brateggevoat1/gerrit/611
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add getopt command line parser library

Change-Id: Id4c10f90d9b0e2d9c06361f6ff7f938d6ac88976
Reviewed-on: http://brateggevoat1/gerrit/614
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Extract common functions of demos

Change-Id: I9f32960be640f65e13e871e18bda56675ca5347c
Reviewed-on: http://brateggevoat1/gerrit/615
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Adapt and cleanup general CMake files

- Adapt CMake files for new stack architecture
- Extract Windows and Linux specific configuration into separate files

Change-Id: I75f313982a5613a002559e05bd719603ceadb55d
Reviewed-on: http://brateggevoat1/gerrit/616
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add make files for openPOWERLINK user library

Change-Id: I7d182182a00bf90a1ac923d5dbe23f7a17f23f95
Reviewed-on: http://brateggevoat1/gerrit/617
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Adapt openPOWERLINK library to new CMake files

Change-Id: Ief5d605a504e7ea4d0bd5feab3d650345c0bbc4c
Reviewed-on: http://brateggevoat1/gerrit/618
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add openPOWERLINK Linux userspace daemon

Change-Id: I19aefbb039611e692f901ddb5b4cd6ddb831bb5c
Reviewed-on: http://brateggevoat1/gerrit/619
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Clean up console demos for new stack architecture

Change-Id: I6f04428f9cc5a9dc6579092c61c019678ff93e38
Reviewed-on: http://brateggevoat1/gerrit/620
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Clean up QT demo and adapt to new stack architecture

Change-Id: Ia7f2105ece78b03b8abcb78c3bae675d63910a1d
Reviewed-on: http://brateggevoat1/gerrit/621
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Fix compilation of Linux powerlink userspace daemon

Change-Id: I3dbf1bb9d12e88c6ae4fca45be1485f9b0f1297d
Reviewed-on: http://brateggevoat1/gerrit/627
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Apply fixes for removing compiler warnings

Cleanup code so that it compiles without warnings with
gcc and microsoft visual studio.

Change-Id: I4effcb6a66d175072d60862043979caf0a271cb9
Reviewed-on: http://brateggevoat1/gerrit/626
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>