uart4.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * UART4 Masks
  3. */
  4. #ifndef __BFIN_PERIPHERAL_UART4__
  5. #define __BFIN_PERIPHERAL_UART4__
  6. /* UART_CONTROL */
  7. #define UEN (1 << 0)
  8. #define LOOP_ENA (1 << 1)
  9. #define UMOD (3 << 4)
  10. #define UMOD_UART (0 << 4)
  11. #define UMOD_MDB (1 << 4)
  12. #define UMOD_IRDA (1 << 4)
  13. #define WLS (3 << 8)
  14. #define WLS_5 (0 << 8)
  15. #define WLS_6 (1 << 8)
  16. #define WLS_7 (2 << 8)
  17. #define WLS_8 (3 << 8)
  18. #define STB (1 << 12)
  19. #define STBH (1 << 13)
  20. #define PEN (1 << 14)
  21. #define EPS (1 << 15)
  22. #define STP (1 << 16)
  23. #define FPE (1 << 17)
  24. #define FFE (1 << 18)
  25. #define SB (1 << 19)
  26. #define FCPOL (1 << 22)
  27. #define RPOLC (1 << 23)
  28. #define TPOLC (1 << 24)
  29. #define MRTS (1 << 25)
  30. #define XOFF (1 << 26)
  31. #define ARTS (1 << 27)
  32. #define ACTS (1 << 28)
  33. #define RFIT (1 << 29)
  34. #define RFRT (1 << 30)
  35. /* UART_STATUS */
  36. #define DR (1 << 0)
  37. #define OE (1 << 1)
  38. #define PE (1 << 2)
  39. #define FE (1 << 3)
  40. #define BI (1 << 4)
  41. #define THRE (1 << 5)
  42. #define TEMT (1 << 7)
  43. #define TFI (1 << 8)
  44. #define ASTKY (1 << 9)
  45. #define ADDR (1 << 10)
  46. #define RO (1 << 11)
  47. #define SCTS (1 << 12)
  48. #define CTS (1 << 16)
  49. #define RFCS (1 << 17)
  50. /* UART_EMASK */
  51. #define ERBFI (1 << 0)
  52. #define ETBEI (1 << 1)
  53. #define ELSI (1 << 2)
  54. #define EDSSI (1 << 3)
  55. #define EDTPTI (1 << 4)
  56. #define ETFI (1 << 5)
  57. #define ERFCI (1 << 6)
  58. #define EAWI (1 << 7)
  59. #define ERXS (1 << 8)
  60. #define ETXS (1 << 9)
  61. #endif