• Ready for review
  • SPinInterruptInit

    The function SPinInterruptInit configures a SODIMM-pin as an interrupt.

    DWORD SPinInterruptInit( int pin, int intr, int pull );

    Parameters

    pin
    SODIMM-pin-number.

    intr
    Set which type of Interrupt:

    #

    Description

    #

    Description

    0

    DDK_GPIO_INTR_LOW_LEV

    1

    DDK_GPIO_INTR_HIGH_LEV

    2

    DDK_GPIO_INTR_RISE_EDGE

    3

    DDK_GPIO_INTR_FALL_EDGE

    4

    DDK_GPIO_INTR_BOTH_EDGE

    5

    DDK_GPIO_INTR_NONE

    state
    Set Pull-Up/Down for this pin.

    #

    Description

    #

    Description

    0

    DDK_IOMUX_PAD_PULL_NONE

    0x1000

    DDK_IOMUX_PAD_PULL_KEEPER

    0x3000

    DDK_IOMUX_PAD_PULL_DOWN_100K

    0x7000

    DDK_IOMUX_PAD_PULL_UP_47K

    0xB000

    DDK_IOMUX_PAD_PULL_UP_100K

    0xF000

    DDK_IOMUX_PAD_PULL_UP_22K

    Return Values

    IRQ-value of this Pin.

    Remarks

    Requirements

    OS Versions: Windows Embedded Compact 7.
    Header: drvlib_app.h
    Link Library: drvlib_app.lib

    See Also

    SPinClearInterrupt