Eclipse selects STM32F1 library instead of STM32F2

Hi,

I’m trying to develop local with photon. But I have some problems with Eclipse.
I have defined both PLATFORM=photon, PLATFORM_ID=6, STM32F2XX.
Instead of e.g using GPIO_InitStructure from stm32f2xx_gpio.h i only sees option from stm32f1xx_gpio.h
So I’m missing some settings.e.g GPIO_OType.

In my application.cpp file i have included following files:
“stm32f2xx.h” “stm32f2xx_conf.h” “stm32f2xx_gpio.h”

How could I let Eclipse know that I’m developing for stm32f2 and photon?