[FIX] Resolve warnings

Resolve warnings when compiling with flags: -Wall -Wextra
-pedantic -std=c99

Change-Id: Ic37efeb1ab3a7ad9b04ca0ed623c9c1e38e7c7f3
Reviewed-on: http://brateggevoat1/gerrit/1880
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[FIX] Change includes of openmac.h

Add target folder to includes. This removes an additional
include path on openmac demos.

Change-Id: I420e614ae4e411c7bc6b6670e102554bd2b65031
Reviewed-on: http://brateggevoat1/gerrit/1881
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Add prefix to Xilinx usleep asm macro

C99 doesn't support the extended-asm syntax. To solve this issue it would
also be possible to compile with std=gnu99 or to use the macro __asm!
As the CFlags are passed from the generic CMakeLists.txt the macro __asm
is used.

Change-Id: I93ccb23d74faba94af2d434b3912904463d1ffcf
Reviewed-on: http://brateggevoat1/gerrit/1882
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Restructure hardware/ipcore/drivers directory

* Create folders "src" and "include". This provides a better
  overview after the CMake integration.
* Move phy configuration to board specific folder
* Delete phy configuration for BeMicro board (No demo for this board
  included in the stack)

Change-Id: I8e1bba89b8a4fb15e2be41b4fb3988858087cb4a
Reviewed-on: http://brateggevoat1/gerrit/1883
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[TASK] Add .metadata to root gitignore file

The .metadata folder is created in the eclipse workspace. If the
workspace is the stack root directory it needs to be ignored.

Change-Id: I648ef76e351bc872db84d1af075a62b68749c54f
Reviewed-on: http://brateggevoat1/gerrit/1885
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[FEATURE] Rework Xilinx build system

Use CMake for Makefile generation instead of a static
Makefile.

Change-Id: Id0e41959b3eacb2c34ff9e2278ed8d7c2a8d1c3c
Reviewed-on: http://brateggevoat1/gerrit/1526
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[FIX] Install Windows DLL files into the lib directory

When compiling the stack into a Windows DLL, both, the .lib as well as
the .dll file need to be output to the lib directory.

Change-Id: I3ba28cd48e74b7ed9cfd1ac3334034e74f136d73
Reviewed-on: http://brateggevoat1/gerrit/1873
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Install Windows DLL together with the application

When a demo application is linked to a Windows DLL stack library, the
.dll needs to be copied along with the demo to the according output
directory.

Change-Id: Ibca0ec6e746d0a9b5b753feade149581204578e3
Reviewed-on: http://brateggevoat1/gerrit/1874
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Rename app event module back

The old Xilinx Makefile was not able to compile files with the same name
when they are located in different folders. The new CMake Makefiles
retain the folder structure which enables the reuse of the event.c
filename.

Change-Id: I4664421336c0e24822407da553c931260f4d57ec
Reviewed-on: http://brateggevoat1/gerrit/1884
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
[FEATURE] Rework Altera Nios II build system

- Create stack libraries (liboplkxxx) for CN and MN platform
- Board configuration selects the appropriate library (stack.sh)
- Move common build scripts to tools/altera-nios2
- Modified drivers and apps build

Change-Id: I22e852322d9e2ab8f31fade176899700e2aca171
Reviewed-on: http://brateggevoat1/gerrit/1917
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Replace Altera Quartus script with static makefile

This enables smart compile without opening Quartus II.

Change-Id: I9e62a6949216053c4add7d70126d7917c0840469
Reviewed-on: http://brateggevoat1/gerrit/1916
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[TASK] Add stack build directories for linux and windows

Change-Id: Ia14c6952888ae5c7a4062302b6848134ec0dbe61
Reviewed-on: http://brateggevoat1/gerrit/1918
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Move common include files into subdirectory common

Change-Id: I2e0d56b65a1b9c1ee330b301b215688e1b45e809
Reviewed-on: http://brateggevoat1/gerrit/1896
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Move public include files into stack/include/oplk

Change-Id: I54e54256e44b4cc28b6c6907d254b46edf3b62da
Reviewed-on: http://brateggevoat1/gerrit/1897
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Fix stack include file lists

Change-Id: Id740eeebf812068e8dbe558e3258424d612e6056
Reviewed-on: http://brateggevoat1/gerrit/1898
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Move feature flag definitions into separate header file

Change-Id: I254e363d64bed54af9b268bf97edee01d824f242
Reviewed-on: http://brateggevoat1/gerrit/1899
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Rename Benchmark.h to benchmark.h

- Rename file and adapt all references

Change-Id: I50000a62ebdead2b3cc451f3814dd750fcae08ba
Reviewed-on: http://brateggevoat1/gerrit/1900
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Cleanup benchmark.h

Change-Id: I38eb057e4032aad433def77d3467b0d956f07155
Reviewed-on: http://brateggevoat1/gerrit/1901
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Rename EplVersion.h to version.h

Change-Id: Ic8c42a8235265482838cfe8b5e10406d88e52ebe
Reviewed-on: http://brateggevoat1/gerrit/1902
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Cleanup version.h

Change-Id: Ia390bc68d94bb0e9755564a968a858971292dbbc
Reviewed-on: http://brateggevoat1/gerrit/1903
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>