cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO UART assignment issue

jwmullens1
Associate II
Posted on March 18, 2007 at 03:36

GPIO UART assignment issue

3 REPLIES 3
jwmullens1
Associate II
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
sunyuanling1022
Associate II
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

jwmullens1
Associate II
Posted on May 17, 2011 at 09:39

Fantastic! Thank you. This did the trick.