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 »

The function GPIO_Init_Pin initializes a pin for use as gpio.

void GPIO_Init_Pin( 
  volatile GPIO_REGS *v_pGPIOReg, 
  UCHAR pin, 
  BOOL IsOutput, 
  BOOL DefaultState
);    

Parameters

v_pGPIOReg
Pointer to gpio-registers. Use the return value of GPIO_AllocSpace.

pin
GPIO pin-number.

IsOutput
TRUE: configure GPIO as output. FALSE: configure GPIO as input.

DefaultState
If configured as an output, sets the level of gpio.

Return Values

none

Remarks

Requirements

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

See Also

GPIO_AllocSpace, GPIO_FreeSpace, GPIO_Get_Pin, GPIO_Set_Pin, GPIO_Set_PWM

  • No labels