Skip to main content
Visitor II
March 18, 2007
Question

GPIO UART assignment issue

  • March 18, 2007
  • 3 replies
  • 902 views
Posted on March 18, 2007 at 03:36

GPIO UART assignment issue

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:39

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6Xm&d=%2Fa%2F0X0000000bqI%2FThgl55g9A2oPN_4VhWni3fU9LdSr_zcvYQCGNmZVNM0&asPdf=false
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:39

    HI JWM.Maybe there is a wrong in your code.

    #define NEW_SBS_BOARD (1)

    /* serial port -- new board */

    #if NEW_SBS_BOARD

    GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;

    GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0;

    GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

    GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;

    GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt3 ; //this should be the serial port

    GPIO_Init (GPIO5, &GPIO_InitStructure);

    #else

    I think ''GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;''it is not GPIO_IPConnected_Enable,Maybe it it GPIO_IPConnected_Disable

    Best Regards

    sunshan

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:39

    Fantastic! Thank you. This did the trick.