cancel
Showing results for 
Search instead for 
Did you mean: 

How can I redefine it ?

antonius
Senior
Posted on September 06, 2013 at 14:44

Guys,

I saw these codes,

#ifdef USE_STM3210B_EVAL

  #define USB_DISCONNECT                    GPIOD  

  #define USB_DISCONNECT_PIN                GPIO_Pin_9

  #define RCC_APB2Periph_GPIO_DISCONNECT    RCC_APB2Periph_GPIOD

  #define USB_LED_PORT                      GPIOC

  #define RCC_APB2Periph_GPIO_LED           RCC_APB2Periph_GPIOC

#else /* USE_STM3210E_EVAL */

  #define USB_DISCONNECT                    GPIOB  

  #define USB_DISCONNECT_PIN                GPIO_Pin_14

  #define RCC_APB2Periph_GPIO_DISCONNECT    RCC_APB2Periph_GPIOB

  #define USB_LED_PORT                      GPIOF

  #define RCC_APB2Periph_GPIO_LED           RCC_APB2Periph_GPIOF

#endif /* USE_STM3210B_EVAL */

How can I redefine it if my USB is on PA11 and PA12 ?

thanks
2 REPLIES 2
Posted on September 06, 2013 at 15:30

How can I redefine it if my USB is on PA11 and PA12 ?

Aren't they on the

http://www.icbase.com/File/PDF/STM/STM30870802.pdf

?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
antonius
Senior
Posted on September 06, 2013 at 23:44

Ok, thanks, let me have a look