ports.h 1013 B

1234567891011121314151617181920212223242526272829303132333435
  1. /******************************* (C) LiteMesh **********************************
  2. * @module buttons_api
  3. * @file buttons_api.h
  4. * @version 1.0.0
  5. * @date XX.XX.XXXX
  6. * $brief buttons_api
  7. *******************************************************************************
  8. * @history Version Author Comment
  9. * XX.XX.XXXX 1.0.0 Telenkov D.A. First release.
  10. *******************************************************************************
  11. */
  12. /* Define to prevent recursive ----------------------------------------------*/
  13. #ifndef __PORTS_H
  14. #define __PORTS_H
  15. #include <stdbool.h>
  16. #define RS232_PORT USART3
  17. #define RS232_MAX_REC_LEN 1500
  18. /**
  19. * @brief
  20. */
  21. void RS232_Init(void);
  22. void RS232_SendByte(char byte);
  23. extern char recvBufRS232[]; // Входной буфер для RS232
  24. extern uint16_t indexRS232;
  25. #endif /* #ifndef __PORTS_H */
  26. /****************************** (C) LiteMesh ***************** end of file ****/