GPIO_AllocSpace

The function GPIO_AllocSpace allocates virtual memory and maps it to the GPIO-hardware-registers.

PGPIO_REGS GPIO_AllocSpace( void);

Parameters

none

Return Values

If the function succeeds, it returns a pointer to the GPIO-registers.

If the function fails, the return value is NULL.

Remarks

This function needs to be called before any other GPIO_xxx-function is beeing used.

Requirements

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

See Also

GPIO_FreeSpace, GPIO_Init_Pin, GPIO_Get_Pin, GPIO_Set_Pin, GPIO_Set_PWM