User`s guide
1 Customizing xPC Targetâ„¢ Drivers
Bus Access
ISA Board switches or jumpers usually select I/O port address and any
memory-mapped region.
PCI The BIOS determines the I/O port address during PCI PNP (Plug
and Play) configurations.
The memory space for I/O boards is different for ISA and PCI boards.
Bus
Memory Space
ISA The xPC Target software only permits use of the memory address
between 0xA0000 and 0xFFFFF
PCI Upper memory address space, typically greater than 2 GB
Register Access
A device board supports either I/O port or memory-mapped access to onboard
registers. See the board manufacturer’s register programming documentation.
Inlining xPC Target Drivers
You can choose to inline or not inline xPC Target drivers. Note the distinction
between Simulinkand Real-Time Workshop conditional compilation. W riting
a device driver as an inlined S-function ensures that the driver can coexist
with xPC Tar get device drivers.
Inlining drivers allows you to customize code generated from Real-Time
Workshop. If you choose to create inlined drivers, you m ust use the Real-Time
Workshop Target Language Compiler.
Note For convenience, you can create a noninlined version of the driver
first, and create an inlined driver for the Target Language Compiler from
the first driver.
1-10