Question
Configure GPIO on NUCLEO-L476RG without Cube MX
Hello,
i want to turn the Green USER LED on.
#include "stm32l4xx.h"
#include "stm32l4xx_nucleo.h"
int main(void)
{
RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN;
GPIOA->MODER |= GPIO_MODER_MODER5_0;
GPIOA->ODR |= GPIO_ODR_OD5;
}So i activated the clock for the Pin and setting the mode(Output) for the LED.
What have i done wrong ?
thanks,
Dominik
