• Ready for review
  • GPIO_Init_Pin

    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