nbus_platform.h 589 B

12345678910111213141516171819202122232425262728293031
  1. /** @file nbus_platform.h
  2. *
  3. * @date: Jun 19, 2026
  4. * @author: Juraj Dudak, Matus Necas
  5. */
  6. #ifndef INC_NBUS_PLATFORM_H_
  7. #define INC_NBUS_PLATFORM_H_
  8. #if defined(STM32F401xC) || defined(STM32F401xE)
  9. #include "stm32f4xx_hal.h"
  10. #endif
  11. #if defined (STM32L432xx)
  12. #include "stm32l4xx_hal.h"
  13. #endif
  14. #if defined (STM32L031xx) || defined (STM32L082xx)
  15. #include "stm32l0xx_hal.h"
  16. #endif
  17. #if defined(ESP32)
  18. #include <Stream.h>
  19. #include <esp32-hal-gpio.h>
  20. #define UART_HandleTypeDef Stream
  21. #define HAL_GetTick() millis()
  22. #define HAL_Delay(ms) delay(ms)
  23. #endif
  24. #endif // INC_NBUS_PLATFORM_H_