drv_uart.h 779 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-07-15 yby the first version
  9. */
  10. #ifndef __DRV_UART_H__
  11. #define __DRV_UART_H__
  12. #include "board.h"
  13. /* msp432 config class */
  14. struct msp432_uart_config
  15. {
  16. const char *name;
  17. uint32_t uartbase;
  18. uint32_t baudrate;
  19. uint32_t mode;
  20. };
  21. /* msp432 uart dirver class */
  22. struct msp432_uart
  23. {
  24. struct msp432_uart_config *config;
  25. uint32_t uartintbase;
  26. #ifdef RT_SERIAL_USING_DMA
  27. #endif
  28. rt_uint16_t uart_dma_flag;
  29. struct rt_serial_device serial;
  30. };
  31. extern int rt_hw_usart_init(void);
  32. #endif /*__DRV_UART_H__*/
  33. /************************** end of file ******************/