drv_uarte.h 668 B

123456789101112131415161718192021222324252627282930313233
  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. * 2020-04-28 xckhmf Modify for <nrfx>
  9. * 2020-10-31 xckhmf Support for UART1
  10. *
  11. */
  12. #ifndef __DRV_UART_H__
  13. #define __DRV_UART_H__
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define RT_DEVICE_CTRL_CUSTOM 0x20
  18. #define RT_DEVICE_CTRL_PIN 0x21
  19. #define RT_DEVICE_POWERSAVE 0x22
  20. #define RT_DEVICE_WAKEUP 0x23
  21. #define UART_CONFIG_BAUD_RATE_9600 1
  22. #define UART_CONFIG_BAUD_RATE_115200 2
  23. void rt_hw_uart_init(void);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* __DRV_UART_H__ */