You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * linux/<file location within the kernel tree>
  3. *
  4. * Copyright (C) 2010 Texas Instruments Incorporated
  5. * Author: Ganeshan N
  6. *
  7. * Based on <Give reference of old kernel file from which this file is derived from>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation version 2.
  12. *
  13. * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
  14. * whether express or implied; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. */
  18. #ifndef _SUART_ERR_H_
  19. #define _SUART_ERR_H_
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #define PRU_SUART_SUCCESS (0u)
  24. #define PRU_SUART_FAILURE (-1)
  25. /** Returns success on Soft UART transaction */
  26. #define PRU_SUART_ERR_DEVICE_NOT_OPEN (1u)
  27. /** Return */
  28. #define PRU_SUART_ERR_UARTS_INIT_FAIL (2u)
  29. /** Return */
  30. #define PRU_SUART_ERR_UARTS_RESET_FAIL (3u)
  31. /** Return */
  32. #define PRU_SUART_ERR_HANDLE_INVALID (4u)
  33. /** Return */
  34. #define PRU_SUART_ERR_PARAMETER_INVALID (5u)
  35. /** Return */
  36. /* Transmit */
  37. #define PRU_SUART_ERR_TX (6u)
  38. /** Return */
  39. #define PRU_SUART_TX_COMPLETE (7u)
  40. /** Return */
  41. #define PRU_SUART_TX_BUSY (8u)
  42. /** Return */
  43. #define PRU_SUART_TX_UNDERRUN (9u)
  44. /** Return */
  45. /* Receive */
  46. #define PRU_SUART_ERR_RX (10u)
  47. /** Return */
  48. #define PRU_SUART_RX_COMPLETE (11u)
  49. /** Return */
  50. #define PRU_SUART_RX_BUSY (12u)
  51. /** Return */
  52. #define PRU_SUART_RX_OVERRUN (13u)
  53. /** Return */
  54. /* API Specific Errors */
  55. #define SUART_INVALID_TX_BAUD (14u)
  56. #define SUART_INVALID_OVERSAMPLING (15u)
  57. #define SUART_INVALID_RX_BAUD (16u)
  58. #define SUART_UART_IN_USE (17u)
  59. #define SUART_INVALID_CLKDIVISOR (18u)
  60. #define SUART_INVALID_UART_NUM (19u)
  61. #define SUART_INVALID_SR_NUM (20u)
  62. #ifdef __cplusplus
  63. } /* End of extern C */
  64. #endif /* #ifdef __cplusplus */
  65. #endif