uartio.h 455 B

12345678910111213141516171819
  1. /*
  2. * uartio.h
  3. *
  4. * Created on: Jan 21, 2022
  5. * Author: radioman
  6. */
  7. #ifndef INC_UARTIO_H_
  8. #define INC_UARTIO_H_
  9. #define UART_RX_BUF_SIZE 256
  10. #define UART_TX_BUF_SIZE 256
  11. void UARTIO_Init(UART_HandleTypeDef *huart);
  12. uint32_t UARTIO_DataAvail(UART_HandleTypeDef *huart);
  13. uint32_t UARTIO_Receive(UART_HandleTypeDef *huart, uint8_t *buf);
  14. uint32_t UARTIO_Transmit(UART_HandleTypeDef *huart, uint8_t *buf, uint32_t len);
  15. #endif /* INC_UARTIO_H_ */