2015-03-02 05:58 AM
What is the right configuration for LED2 in STM32F0 Nucleo board?
I tried the example IO_Togglevoidblink_led_init(){ // Enable GPIO Peripheral clock RCC_AHBPeriphClockCmd(BLINK_RCC_MASKx(BLINK_PORT_NUMBER), ENABLE); GPIO_InitTypeDef GPIO_InitStructure; // Configure pin in output push/pull mode GPIO_InitStructure.GPIO_Pin = BLINK_PIN_MASK(BLINK_PIN_NUMBER); GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(BLINK_GPIOx(BLINK_PORT_NUMBER), &GPIO_InitStructure); // Start with led turned off blink_led_off();}but led doesn't blinkWhere am I wrong?2015-03-02 08:19 AM
Yeah, a lot of defines and code missing, makes both static and dynamic analysis hard...