AppBridge.h 652 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @file AppBridge.h
  3. * @brief Deklarácia vysokoúrovňovej logiky firmvéru nBusBridge
  4. * @date Mar 5, 2025
  5. * @author Juraj Dudak
  6. */
  7. #ifndef SRC_APPBRIDGE_H_
  8. #define SRC_APPBRIDGE_H_
  9. /** Veľkosť UART buffera Master-Bridge */
  10. #define UART_FRAME_SIZE 64
  11. #if defined(STM32F401xC) || defined(STM32F401xE)
  12. #include "stm32f4xx_hal.h"
  13. #endif
  14. #if defined (STM32L432xx)
  15. #include "stm32l4xx_hal.h"
  16. #endif
  17. #if defined (STM32L031xx) || defined (STM32L082xx)
  18. #include "stm32l0xx_hal.h"
  19. #endif
  20. #ifdef __cplusplus
  21. extern "C"
  22. {
  23. #endif
  24. void app(UART_HandleTypeDef *, UART_HandleTypeDef *);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* SRC_APPBRIDGE_H_ */