[TASK] Split header files into internal and external files

Split header files into stack internal files and external files which
are needed by an application. Stack internal files are moved into
stack/include. The build system of the applications is adapted for the
new header file locations.

This is only the first step in cleaning up header files. More cleanup is
needed!

Change-Id: I625d5d22454c3614389637d8dfdc17da9f5152cb
Reviewed-on: http://brateggevoat1/gerrit/1740
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] Rename fpga directory to hardware

- Rename Quartus and XPS project directories
- Create common gitignore for boards
- Revise Altera SW driver and demos to hardware directory
- Revise Xilinx SW demos to hardware directory

Change-Id: Iadde1bf603364e831a6bd241a1e17f9a228cd99c
Reviewed-on: http://brateggevoat1/gerrit/1741
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Restructure terasic-de2-115 directory structure

- Cleanup Quartus projects
- Move timing constraints to common directory
- Move create-this-fpga to tools directory

Change-Id: I8e47c312b2d39d29fe24b097bf0bf1c4fb0fb679
Reviewed-on: http://brateggevoat1/gerrit/1742
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Move ipcore drivers into hardware directory

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

- Move function declarations from Epl.h into new stack internal file
  target.h
- Calling target_init() and target_cleanup() from ctrl module.
  Therefore, the application doesn't need to take care of it.
- Remove calling of target_init()/target_cleanup() from applications
- Implement own msleep() in applications system library so that the
  application is independent of the stack's target library

Change-Id: Id79c019a8133d731223a0acdbf5142a1a049a21b
Reviewed-on: http://brateggevoat1/gerrit/1750
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Remove dependancy of DLL configuration in dllcal-hostif.c

The code uses the configuration options CONFIG_INCLUDE_DLLU and
CONFIG_INCLUDE_DLLK to determine if it is compiled for the host (user)
part or the pcp (kernel) part. These are replaced by a separate
configuration macro CONFIG_HOSTIF_PCP which should be set to TRUE for
PCP and FALSE for Host.

Change-Id: If7420168db0d64c2a5e6c1b53fad389b415959be
Reviewed-on: http://brateggevoat1/gerrit/1751
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] Remove CONFIG_INCLUDE_OBD option

Remove configuration option because OBD module must always be included.

Change-Id: I5e2572183601d278d29304c60f8b584195784feb
Reviewed-on: http://brateggevoat1/gerrit/1752
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] Remove CONFIG_INCLUDE_DLLK option

Remove configuration option because kernel DLL module must always be
included.

Change-Id: I126bd61dfc6253e83c8e3c854853a3c66299dea6
Reviewed-on: http://brateggevoat1/gerrit/1754
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] Remove CONFIG_INCLUDE_DLLU option

Remove configuration option because DLL module must always be included.

Change-Id: I42af5050ad650cba74e4dd0ac25f895db09edfe0
Reviewed-on: http://brateggevoat1/gerrit/1755
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] Remove CONFIG_INCLUDE_NMT_CNU

Remove configuration option because NMT CN module must always be
included.

Change-Id: I5f443eebcec6ab6b42f480359e46ec4654076566
Reviewed-on: http://brateggevoat1/gerrit/1756
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
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] Remove CONFIG_INCLUDE_NMTK option

Remove configuration option because NMT module must always be included.

Change-Id: Ib4d8617788aa617089409e67ec0cdcba7804ab62
Reviewed-on: http://brateggevoat1/gerrit/1757
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
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] Remove CONFIG_INCLUDE_NMTU option

Remove configuration option because NMT module must always be included.

Change-Id: I1b8c7be69b28a26a7303563f6ac5a10e8eb0302f
Reviewed-on: http://brateggevoat1/gerrit/1758
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
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>
[FIX] Remove unneeded include of pdok.h in ctrlu.c

Change-Id: I81ffa2fa0e5168e9c37c5f93a5aee3f45d811672
Reviewed-on: http://brateggevoat1/gerrit/1759
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] Combine CONFIG_INCLUDE_PDOK and CONFIG_INCLUDE_PDOU

Combine into a single option CONFIG_INCLUDE_PDO because it has always
be configured for both layers.

Change-Id: I114d632a46d2253b052f1a5ac24d06e36b69303c
Reviewed-on: http://brateggevoat1/gerrit/1760
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>