mcfslt.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /****************************************************************************/
  2. /*
  3. * mcfslt.h -- ColdFire internal Slice (SLT) timer support defines.
  4. *
  5. * (C) Copyright 2004, Greg Ungerer (gerg@snapgear.com)
  6. * (C) Copyright 2009, Philippe De Muyter (phdm@macqel.be)
  7. */
  8. /****************************************************************************/
  9. #ifndef mcfslt_h
  10. #define mcfslt_h
  11. /****************************************************************************/
  12. /*
  13. * Define the SLT timer register set addresses.
  14. */
  15. #define MCFSLT_STCNT 0x00 /* Terminal count */
  16. #define MCFSLT_SCR 0x04 /* Control */
  17. #define MCFSLT_SCNT 0x08 /* Current count */
  18. #define MCFSLT_SSR 0x0C /* Status */
  19. /*
  20. * Bit definitions for the SCR control register.
  21. */
  22. #define MCFSLT_SCR_RUN 0x04000000 /* Run mode (continuous) */
  23. #define MCFSLT_SCR_IEN 0x02000000 /* Interrupt enable */
  24. #define MCFSLT_SCR_TEN 0x01000000 /* Timer enable */
  25. /*
  26. * Bit definitions for the SSR status register.
  27. */
  28. #define MCFSLT_SSR_BE 0x02000000 /* Bus error condition */
  29. #define MCFSLT_SSR_TE 0x01000000 /* Timeout condition */
  30. /****************************************************************************/
  31. #endif /* mcfslt_h */