En la WEB de ST hay un par de PDF y ejemplos.. pero me costo aprender a usar el uVision.. ahora no soy profecional pero se crear y abrir proyecto, debugear y configurarlo!! algo es algo ejjeeje
alguien me puede ayudar la configuracion de pines... no entiendo acsolutamente nada!! este es el codigo:
void LED_Init (void) {
RCC->AHB1ENR |= ((1UL << 3) ); /* Enable GPIOD clock */
GPIOD->MODER &= ~((3UL << 2*12) |
(3UL << 2*13) |
(3UL << 2*14) |
(3UL << 2*15) ); /* PD.12..15 is output */
GPIOD->MODER |= ((1UL << 2*12) |
(1UL << 2*13) |
(1UL << 2*14) |
(1UL << 2*15) );
GPIOD->OTYPER &= ~((1UL << 12) |
(1UL << 13) |
(1UL << 14) |
(1UL << 15) ); /* PD.12..15 is output Push-Pull */
GPIOD->OSPEEDR &= ~((3UL << 2*12) |
(3UL << 2*13) |
(3UL << 2*14) |
(3UL << 2*15) ); /* PD.12..15 is 50MHz Fast Speed */
GPIOD->OSPEEDR |= ((2UL << 2*12) |
(2UL << 2*13) |
(2UL << 2*14) |
(2UL << 2*15) );
GPIOD->PUPDR &= ~((3UL << 2*12) |
(3UL << 2*13) |
(3UL << 2*14) |
(3UL << 2*15) ); /* PD.12..15 is Pull up */
GPIOD->PUPDR |= ((1UL << 2*12) |
(1UL << 2*13) |
(1UL << 2*14) |
(1UL << 2*15) );
}