2018-04-13 01:25:08 +00: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
|
2018-08-28 02:49:49 +00:00
|
|
|
#elif defined(__MK20DX256__)
|
|
|
|
#define HAL_PLATFORM HAL_TEENSY31_32
|
2018-04-13 01:25:08 +00:00
|
|
|
#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-10-03 08:26:07 +00:00
|
|
|
#elif defined(STM32GENERIC) && defined(STM32F4)
|
2018-04-23 23:00:06 +00:00
|
|
|
#define HAL_PLATFORM HAL_STM32F4
|
2018-10-03 08:26:07 +00:00
|
|
|
#elif defined(STM32GENERIC) && defined(STM32F7)
|
2018-04-13 01:25:08 +00:00
|
|
|
#define HAL_PLATFORM HAL_STM32F7
|
2018-10-03 08:26:07 +00:00
|
|
|
#elif defined(ARDUINO_ARCH_STM32)
|
|
|
|
#define HAL_PLATFORM HAL_STM32
|
2017-10-08 16:38:10 +00:00
|
|
|
#elif defined(ARDUINO_ARCH_ESP32)
|
|
|
|
#define HAL_PLATFORM HAL_ESP32
|
2018-04-13 01:25:08 +00: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_
|