2018-04-12 20:25:08 -05:00
|
|
|
#ifndef _HAL_PLATFORMS_H_
|
|
|
|
#define _HAL_PLATFORMS_H_
|
|
|
|
|
|
|
|
#ifndef HAL_PLATFORM
|
|
|
|
|
|
|
|
#ifdef __AVR__
|
|
|
|
#define HAL_PLATFORM HAL_AVR
|
|
|
|
#elif defined(ARDUINO_ARCH_SAM)
|
|
|
|
#define HAL_PLATFORM HAL_DUE
|
|
|
|
#elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
|
|
|
#define HAL_PLATFORM HAL_TEENSY35_36
|
|
|
|
#elif defined(TARGET_LPC1768)
|
|
|
|
#define HAL_PLATFORM HAL_LPC1768
|
|
|
|
#elif defined(__STM32F1__) || defined(TARGET_STM32F1)
|
|
|
|
#define HAL_PLATFORM HAL_STM32F1
|
2018-06-12 18:38:00 -05:00
|
|
|
#elif defined(STM32F4) || defined(STM32F4xx)
|
2018-04-23 18:00:06 -05:00
|
|
|
#define HAL_PLATFORM HAL_STM32F4
|
2018-04-12 20:25:08 -05:00
|
|
|
#elif defined(STM32F7)
|
|
|
|
#define HAL_PLATFORM HAL_STM32F7
|
2017-10-08 11:38:10 -05:00
|
|
|
#elif defined(ARDUINO_ARCH_ESP32)
|
|
|
|
#define HAL_PLATFORM HAL_ESP32
|
2018-04-12 20:25:08 -05:00
|
|
|
#else
|
|
|
|
#error "Unsupported Platform!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // HAL_PLATFORM
|
|
|
|
|
|
|
|
#define XSTR_(M) #M
|
|
|
|
#define XSTR(M) XSTR_(M)
|
|
|
|
#define HAL_PATH(PATH, NAME) XSTR(PATH/HAL_PLATFORM/NAME)
|
|
|
|
|
|
|
|
#endif // _HAL_PLATFORMS_H_
|