Porting of the host application
Copyright IXXAT Automation GmbH
41
IEM Manual, 1.5
3 Porting of the host application
3.1
Host system relevant units
3.1.1 Adaption of the Board support package (BSP)
To use the entire functionality of the Demo Application, the Board Support
Package (BSP) has to be adapted to your target system. If you are using our
reference design, you can safely jump over this chapter.
The easiest way to adapt to a new BSP is to modify the implementation of a
reference target. All relevant functions are located inside the module BSP.h.
The BSP c-files are divided into two parts. In the BSPiem.c are all functions
around the usage of IEM. The second file (BSPdemo.c) contains all functions
which are necessary to run the demo application.
Settings for module reset and interrupt functionality have to be adapted care-
fully.
The Table 3-1 briefly describes the usage of the BSP functions:
function
usage
IEM
demo application
BSP_Init()
x
x
BSP_ModuleReset()
x
BSP_InterruptExtInit()
x
x
BSP_InterruptEnable()
x
BSP_InterruptDisable()
x
BSP_ExtIfConfigure()
x
BSP_SystemTick_Reset()
x
BSP_SystemTick_GetCount()
x
BSP_SharedMemStartAddrGet()
x
BSP_Delay()
x
BSP_InitSerial()
– only for debug outputs
(x)
(x)
BSP_LedInit()
x
BSP_LedSwitch()
x
BSP_LedHandle()
x
BSP_ReadDigital()
x
BSP_TimerInit()
not required
not required
BSP_TimerStart()
not required
not required
BSP_TimerStop()
not required
not required
Table 3-1: BSP usage