VxWorks Support Building the CEI-x20 API
CEI-100/CEI-200/CEI-x20 User’s Manual 156
Building the CEI-x20 API
The CEI-x20 API is built as a downloadable application. The following
steps explain how to build the CEI-x20 API.
1. Create a new downloadable application project.
2. Add the API source file(s) to the project. Use the following table to
determine which file(s) to add to the API project for your board type.
[ CEI-x20 Install Path ] \ Source \ api220.c
CEI-520/520A,
CEI-620, CEI-820,
CEI-820TX
[ CEI-x20 Install Path ] \ Source \ api520.c
[ CEI-x20 Install Path ] \ Source \ VxWorks \ mem_vxWorks.c
3. Open the C/C++ compiler parameter setup window. Remove the -ansi
compiler option. Using the –I compiler option, add the include
directories ‘[ CEI-x20 Install Path ] \ Include’ and ‘[ CEI-x20 Install
Path ] \ Source’. Add the ‘–mlongcall’ compiler option (PPC targets
only). Using the –D compiler option, define the constant
CEIX20_TARGET_VXWORKS as well as any additional constants
required for your board/platform as described in the table below.
Additional Symbol(s) To Define
CEI-520/520A,
CEI-620, CEI-820
VXW_DRIVER_OPTION, CEIX20_TX32_RX32
VXW_DRIVER_OPTION, CEI_BIG_ENDIAN
VXW_DRIVER_OPTION, CEI_BIG_ENDIAN,
CEIX20_TX32_RX32
4. By default, the CEI-x20 API uses the taskDelay routine when a delay
is required. To use a different delay routine, define the corresponding
constant (using the –D option) shown below.
none – this routine is used by default
5. Build the project and download it to the target system.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com