Skip to main content
Visitor II
January 11, 2009
Question

using external interrupt in STR912

  • January 11, 2009
  • 2 replies
  • 767 views
Posted on January 11, 2009 at 03:40

using external interrupt in STR912

    This topic has been closed for replies.

    2 replies

    dk_vhdAuthor
    Visitor II
    January 11, 2009
    Posted on January 11, 2009 at 03:40

    I am a newbie am working on a STR912 development board. I want to use external interrupt for IR interface (such as remote). I am using the following configuration in main function :

    GPIO_DeInit(GPIO3);

    GPIO_Struct.GPIO_Pin= GPIO_Pin_2;

    GPIO_Struct.GPIO_Direction=GPIO_PinInput;

    GPIO_Struct.GPIO_Type=GPIO_Type_PushPull;

    // GPIO_Struct.GPIO_Alternate = GPIO_InputAlt1;

    GPIO_Struct.GPIO_IPConnected = GPIO_IPConnected_Enable;

    SCU_WakeUpLineConfig(2);

    GPIO_Init(GPIO3,&GPIO_Struct);

    I am trying to use EXTIT2() handler function provided in 91x_it.c. However I cannot make it work. How do I setup the code to access this handler ?

    Can somebody help please...

    Thanks in Advance

    Visitor II
    February 5, 2010
    Posted on February 05, 2010 at 20:09

    .