ppi.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * PPI Masks
  3. */
  4. #ifndef __BFIN_PERIPHERAL_PPI__
  5. #define __BFIN_PERIPHERAL_PPI__
  6. /* PPI_CONTROL Masks */
  7. #define PORT_EN 0x0001 /* PPI Port Enable */
  8. #define PORT_DIR 0x0002 /* PPI Port Direction */
  9. #define XFR_TYPE 0x000C /* PPI Transfer Type */
  10. #define PORT_CFG 0x0030 /* PPI Port Configuration */
  11. #define FLD_SEL 0x0040 /* PPI Active Field Select */
  12. #define PACK_EN 0x0080 /* PPI Packing Mode */
  13. #define DMA32 0x0100 /* PPI 32-bit DMA Enable */
  14. #define SKIP_EN 0x0200 /* PPI Skip Element Enable */
  15. #define SKIP_EO 0x0400 /* PPI Skip Even/Odd Elements */
  16. #define DLENGTH 0x3800 /* PPI Data Length */
  17. #define DLEN_8 0x0000 /* Data Length = 8 Bits */
  18. #define DLEN_10 0x0800 /* Data Length = 10 Bits */
  19. #define DLEN_11 0x1000 /* Data Length = 11 Bits */
  20. #define DLEN_12 0x1800 /* Data Length = 12 Bits */
  21. #define DLEN_13 0x2000 /* Data Length = 13 Bits */
  22. #define DLEN_14 0x2800 /* Data Length = 14 Bits */
  23. #define DLEN_15 0x3000 /* Data Length = 15 Bits */
  24. #define DLEN_16 0x3800 /* Data Length = 16 Bits */
  25. #define POLC 0x4000 /* PPI Clock Polarity */
  26. #define POLS 0x8000 /* PPI Frame Sync Polarity */
  27. /* PPI_STATUS Masks */
  28. #define FLD 0x0400 /* Field Indicator */
  29. #define FT_ERR 0x0800 /* Frame Track Error */
  30. #define OVR 0x1000 /* FIFO Overflow Error */
  31. #define UNDR 0x2000 /* FIFO Underrun Error */
  32. #define ERR_DET 0x4000 /* Error Detected Indicator */
  33. #define ERR_NCOR 0x8000 /* Error Not Corrected Indicator */
  34. #endif