2012-05-28 09:51 AM
Why should the App.h file with :
/// PORTA[0..15] = Available :RCC_AHB1PeriphClockCmd( RCC_AHB1Periph_GPIOA ,
ENABLE
);
GPIO_InitStructure.GPIO_Pin
= (GPIO_Pin_0 | GPIO_Pin_1 | GPIO_Pin_2 | GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_8 | GPIO_Pin_9 | GPIO_Pin_10 | GPIO_Pin_11 | GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15 ); GPIO_InitStructure.GPIO_OType
=GPIO_OType_OD
;
// OUT
GPIO_InitStructure.
GPIO_PuPd
=GPIO_PuPd_UP
;
GPIO_InitStructure.GPIO_Speed
=GPIO_Speed_100MHz
;
// GPIO_Speed_2MHz
GPIO_Init(GPIOA, &GPIO_InitStructure);
GPIOA->ODR
= (0xFFFFFFFF);
be Red-Marked as an error in Eclipse / Code Sourcery : field gpio_pin could not be resolved field gpio_otype could not be resolved field gpio_pupd could not be resolved field gpio_speed could not be resolved - ? The App.h includes stm32f4xx_gpio.h , and the stm32f4xx_gpio.h file does not show any errors. This compiled in Atollic. #code-sourcery-bug2012-05-29 08:59 PM
Resolved.
- missing USR_cb struct.