Platform preprocessor defines - Manual - PROFINET Driver

How to port PROFINET Driver

Portfolio
PROFINET Development Kits
Product
PROFINET Driver
Software version
v3.1.0
Edition
03/2024
Language
en-US (original)

Defines

The symbol EPS_PLF has to be set to a value defined in pn_run\src\pnboards\eps\epssys\src\eps_plf_types.h.

Note

These defines are reserved and must not be changed. SOC1 is the name of the ASIC chip used on CP1625 board.

   #define EPS_PLF_WINDOWS_X86 6 // Windows on IntelX86
   #define EPS_PLF_LINUX_X86 7 // Linux on IntelX86 (PN Driver)
   #define EPS_PLF_LINUX_SOC1 9 // Linux on SOC1 (PN Driver)
  • The configuration settings have to be done in a file located in the folder given below:

    pn_driver\src\source\pnd\src\cfg\<config_file.h>

  • To make use of this file, set the name of the file as precompile setting:

    EPS_PSI_CFG_PLATFORM_H=<config_file.h>
    

For example, the sample implementation for Windows uses pnd_psi_cfg_plf_windows_wpcap_obsd.h as the <config_file.h>.

Toolchain settings

Toolchain settings can be done by defining either TOOL_CHAIN_MICROSOFT or TOOL_CHAIN_GNU for the appropriate implementation.