2017-04-09 21:55:07 -07:00
|
|
|
#ifndef STM32_DEF_H
|
|
|
|
#define STM32_DEF_H
|
|
|
|
|
|
|
|
#include "stm32_build_defines.h"
|
|
|
|
|
|
|
|
#ifdef STM32F0
|
|
|
|
#include "stm32f0xx.h"
|
|
|
|
#include "stm32f0xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32F1)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32f1xx.h"
|
|
|
|
#include "stm32f1xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32F2)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32f2xx.h"
|
|
|
|
#include "stm32f2xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32F3)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32f3xx.h"
|
|
|
|
#include "stm32f3xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32F4)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32f4xx.h"
|
|
|
|
#include "stm32f4xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32F7)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32f7xx.h"
|
|
|
|
#include "stm32f7xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32L0)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32l0xx.h"
|
|
|
|
#include "stm32l0xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32L1)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32l1xx.h"
|
|
|
|
#include "stm32l1xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#elif defined(STM32L4)
|
2017-04-09 21:55:07 -07:00
|
|
|
#include "stm32l4xx.h"
|
|
|
|
#include "stm32l4xx_hal.h"
|
2017-04-12 22:07:17 -07:00
|
|
|
#else
|
2017-04-17 11:57:28 -07:00
|
|
|
#error "STM32XX is not defined in boards.txt"
|
2017-04-09 21:55:07 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|