1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

pios.h: only include STM32xxx.h if particular STM32 MCU is defined

This commit is contained in:
Oleg Semyonov 2013-05-03 20:50:46 +03:00
parent 38cd0e1c46
commit 7aa59f4573

View File

@ -49,11 +49,11 @@
#include <math.h>
/* STM32 Std Peripherals Lib */
#ifdef STM32F4XX
#if defined(STM32F10X)
#include <stm32f10x.h>
#elif defined(STM32F4XX)
#include <stm32f4xx.h>
#include <stm32f4xx_rcc.h>
#else
#include <stm32f10x.h>
#endif
/* PIOS board specific feature selection */