Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This is a helper function to allow easy access to external memory/chip-selects, when using Trizeps6 with onboard WLAN (when the WLAN-chip is configured to use D[15..8]).

void* DFIOMapSpace(      
  unsigned int physbase,
  unsigned int length,
  unsigned int* csbase
); 

Parameters

physbase
The physical address of the external memory-space to map.

ChipSelect

Physical start-address

CS1

0x84000000

CS3

0x88000000

CS4

0x8C000000

length
Length of memory-space to map.

csbase
Pointer to an unsigned int, which will receive a value needed by DFIORead and DFIOWrite.

Return Values

The return-value is virtual address of the mapped address-space.

If the function fails, the return value is NULL.

Remarks

You should not use the mapped address-space directly. Instead use DFIOWrite and DFIORead.

Requirements

OS Versions: Windows Embedded CE 6 and later.
Header: drvlib_app.h.
Link Library: drvlib_app.lib.

See Also

DFIORead, DFIOWrite , trizeps6_cpld

  • No labels