uartBufferIT.h 583 B

12345678910111213141516171819202122232425
  1. /*
  2. * uartBufferIT.h
  3. *
  4. * Created on: Aug 22, 2022
  5. * Author: yoojin.lim
  6. *
  7. * 1. Current MAX buffer size : 65535 (ref. range of uint16)
  8. * 2. Consider DMA and circular queue if you need data read over 65535 bytes
  9. */
  10. #ifndef INC_IMC_UARTBUFFERIT_H_
  11. #define INC_IMC_UARTBUFFERIT_H_
  12. #include <stdint.h>
  13. extern UART_HandleTypeDef huart2;
  14. #define UART huart2
  15. #define UART_INSTANCE USART2
  16. #define RX_BUFFER_SIZE 65535 // uint16 range 0 ~ 65535
  17. void uartBufferInit (void);
  18. void uartBufferReset (void);
  19. #endif /* INC_IMC_UARTBUFFERIT_H_ */