I'm trying to compile a simple STM32F4 sample using Eclipse with the GNU ARM Eclipse plugin from http://gnuarmeclipse.livius.net/blog/.
I'm getting the following errors:
and the structure is as follows:
and the source code from main.c
#include "main.h"
/**
* Main application entry point.
*/
int main() {
init();
do {
loop();
} while(1);
}
/**
* Application initialization.
*/
void init() {
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE);
GPIO_InitTypeDef gpio;
GPIO_StructInit(&gpio);
gpio.GPIO_Mode = GPIO_Mode_OUT;
gpio.GPIO_Pin = LEDS;
GPIO_Init(GPIOD, &gpio);
GPIO_SetBits(GPIOD, LEDS);
}
/**
* Application loop.
*/
void loop() {
static uint32_t counter = 0;
++counter;
GPIO_ResetBits(GPIOD, LEDS);
GPIO_SetBits(GPIOD, LED[counter % 4]);
delay(250);
}
/**
* Delay by given ms
*
* @param ms
*/
void delay(uint32_t ms) {
ms *= 3360;
while(ms--) {
__NOP();
}
}
Any ideas what these errors mean?