at91_pdc.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * File : at91_pdc.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Development Team
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * Change Logs:
  21. * Date Author Notes
  22. * 2011-01-13 weety first version
  23. */
  24. #ifndef __AT91_PDC_H__
  25. #define __AT91_PDC_H__
  26. #define AT91_PDC_RPR 0x100 /* Receive Pointer Register */
  27. #define AT91_PDC_RCR 0x104 /* Receive Counter Register */
  28. #define AT91_PDC_TPR 0x108 /* Transmit Pointer Register */
  29. #define AT91_PDC_TCR 0x10c /* Transmit Counter Register */
  30. #define AT91_PDC_RNPR 0x110 /* Receive Next Pointer Register */
  31. #define AT91_PDC_RNCR 0x114 /* Receive Next Counter Register */
  32. #define AT91_PDC_TNPR 0x118 /* Transmit Next Pointer Register */
  33. #define AT91_PDC_TNCR 0x11c /* Transmit Next Counter Register */
  34. #define AT91_PDC_PTCR 0x120 /* Transfer Control Register */
  35. #define AT91_PDC_RXTEN (1 << 0) /* Receiver Transfer Enable */
  36. #define AT91_PDC_RXTDIS (1 << 1) /* Receiver Transfer Disable */
  37. #define AT91_PDC_TXTEN (1 << 8) /* Transmitter Transfer Enable */
  38. #define AT91_PDC_TXTDIS (1 << 9) /* Transmitter Transfer Disable */
  39. #define AT91_PDC_PTSR 0x124 /* Transfer Status Register */
  40. #endif