at91sam9260.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. #ifndef _ARCH_ARM_SAM9260_H_
  2. #define _ARCH_ARM_SAM9260_H_
  3. /*
  4. * Copyright (C) 2006-2007 by egnite Software GmbH. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * 1. Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * 3. Neither the name of the copyright holders nor the names of
  16. * contributors may be used to endorse or promote products derived
  17. * from this software without specific prior written permission.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
  20. * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  22. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
  23. * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  24. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  25. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  26. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  27. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  28. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  29. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. * SUCH DAMAGE.
  31. *
  32. * For additional information see http://www.ethernut.de/
  33. */
  34. /*!
  35. * \file arch/arm/at91sam9260.h
  36. * \brief AT91SAM9260 peripherals.
  37. *
  38. * \verbatim
  39. *
  40. * $Log: at91sam9260.h,v $
  41. * Revision 1.4 2007/02/15 16:28:07 haraldkipp
  42. * Support for system controller interrupts added.
  43. *
  44. * Revision 1.3 2006/09/29 12:45:08 haraldkipp
  45. * Added PIO features and SPI peripheral selections.
  46. *
  47. * Revision 1.2 2006/09/05 12:32:56 haraldkipp
  48. * MIC base address corrected.
  49. *
  50. * Revision 1.1 2006/08/31 19:04:08 haraldkipp
  51. * Added support for the AT91SAM9260 and Atmel's AT91SAM9260 Evaluation Kit.
  52. *
  53. *
  54. * \endverbatim
  55. */
  56. #define FLASH_BASE 0x100000UL
  57. #define RAM_BASE 0x200000UL
  58. #define TC_BASE 0xFFFA0000 /*!< \brief Timer/counter base address. */
  59. #define UDP_BASE 0xFFFA4000 /*!< \brief USB device port base address. */
  60. #define MCI_BASE 0xFFFA8000 /*!< \brief MMC/SDCard interface base address. */
  61. #define TWI_BASE 0xFFFAC000 /*!< \brief Two-wire interface base address. */
  62. #define USART0_BASE 0xFFFB0000 /*!< \brief USART 0 base address. */
  63. #define USART1_BASE 0xFFFB4000 /*!< \brief USART 1 base address. */
  64. #define USART2_BASE 0xFFFB8000 /*!< \brief USART 2 base address. */
  65. #define SSC_BASE 0xFFFBC000 /*!< \brief Serial synchronous controller base address. */
  66. #define ISI_BASE 0xFFFC0000 /*!< \brief Image sensor interface base address. */
  67. #define EMAC_BASE 0xFFFC4000 /*!< \brief EMAC base address. */
  68. #define SPI0_BASE 0xFFFC8000 /*!< \brief SPI0 0 base address. */
  69. #define SPI1_BASE 0xFFFCC000 /*!< \brief SPI0 1 base address. */
  70. #define USART3_BASE 0xFFFD0000 /*!< \brief USART 3 base address. */
  71. #define USART4_BASE 0xFFFD4000 /*!< \brief USART 4 base address. */
  72. #define USART5_BASE 0xFFFD8000 /*!< \brief USART 5 base address. */
  73. #define TC345_BASE 0xFFFDC000 /*!< \brief Timer/counter 3, 4 and 5 base address. */
  74. #define ADC_BASE 0xFFFE0000 /*!< \brief ADC base address. */
  75. #define ECC_BASE 0xFFFFE800 /*!< \brief ECC base address. */
  76. #define SDRAMC_BASE 0xFFFFEA00 /*!< \brief SDRAMC base address. */
  77. #define SMC_BASE 0xFFFFEC00 /*!< \brief SMC base address. */
  78. #define MATRIX_BASE 0xFFFFEE00 /*!< \brief MATRIX base address. */
  79. #define CCFG_BASE 0xFFFFEF10 /*!< \brief CCFG base address. */
  80. #define AIC_BASE 0xFFFFF000 /*!< \brief AIC base address. */
  81. #define DBGU_BASE 0xFFFFF200 /*!< \brief DBGU base address. */
  82. #define PIOA_BASE 0xFFFFF400 /*!< \brief PIO A base address. */
  83. #define PIOB_BASE 0xFFFFF600 /*!< \brief PIO B base address. */
  84. #define PIOC_BASE 0xFFFFF800 /*!< \brief PIO C base address. */
  85. #define PMC_BASE 0xFFFFFC00 /*!< \brief PMC base address. */
  86. #define RSTC_BASE 0xFFFFFD00 /*!< \brief Resect controller register base address. */
  87. #define RTT_BASE 0xFFFFFD20 /*!< \brief Realtime timer base address. */
  88. #define PIT_BASE 0xFFFFFD30 /*!< \brief Periodic interval timer base address. */
  89. #define WDT_BASE 0xFFFFFD40 /*!< \brief Watch Dog register base address. */
  90. #define PERIPH_RPR_OFF 0x00000100 /*!< \brief Receive pointer register offset. */
  91. #define PERIPH_RCR_OFF 0x00000104 /*!< \brief Receive counter register offset. */
  92. #define PERIPH_TPR_OFF 0x00000108 /*!< \brief Transmit pointer register offset. */
  93. #define PERIPH_TCR_OFF 0x0000010C /*!< \brief Transmit counter register offset. */
  94. #define PERIPH_RNPR_OFF 0x00000110 /*!< \brief Receive next pointer register offset. */
  95. #define PERIPH_RNCR_OFF 0x00000114 /*!< \brief Receive next counter register offset. */
  96. #define PERIPH_TNPR_OFF 0x00000118 /*!< \brief Transmit next pointer register offset. */
  97. #define PERIPH_TNCR_OFF 0x0000011C /*!< \brief Transmit next counter register offset. */
  98. #define PERIPH_PTCR_OFF 0x00000120 /*!< \brief PDC transfer control register offset. */
  99. #define PERIPH_PTSR_OFF 0x00000124 /*!< \brief PDC transfer status register offset. */
  100. #define PDC_RXTEN 0x00000001 /*!< \brief Receiver transfer enable. */
  101. #define PDC_RXTDIS 0x00000002 /*!< \brief Receiver transfer disable. */
  102. #define PDC_TXTEN 0x00000100 /*!< \brief Transmitter transfer enable. */
  103. #define PDC_TXTDIS 0x00000200 /*!< \brief Transmitter transfer disable. */
  104. #define DBGU_HAS_PDC
  105. #define SPI_HAS_PDC
  106. #define SSC_HAS_PDC
  107. #define USART_HAS_PDC
  108. #define MCI_HAS_PDC
  109. #define PIO_HAS_MULTIDRIVER
  110. #define PIO_HAS_PULLUP
  111. #define PIO_HAS_PERIPHERALSELECT
  112. #define PIO_HAS_OUTPUTWRITEENABLE
  113. #include <arch/arm/at91_tc.h>
  114. #include <arch/arm/at91_us.h>
  115. #include <arch/arm/at91_dbgu.h>
  116. #include <arch/arm/at91_emac.h>
  117. #include <arch/arm/at91_spi.h>
  118. #include <arch/arm/at91_aic.h>
  119. #include <arch/arm/at91_pio.h>
  120. #include <arch/arm/at91_pmc.h>
  121. #include <arch/arm/at91_rstc.h>
  122. #include <arch/arm/at91_wdt.h>
  123. #include <arch/arm/at91_ssc.h>
  124. #include <arch/arm/at91_twi.h>
  125. #include <arch/arm/at91_smc.h>
  126. #include <arch/arm/at91_mci.h>
  127. #include <arch/arm/at91_matrix.h>
  128. #include <arch/arm/at91_ccfg.h>
  129. #include <arch/arm/at91_sdramc.h>
  130. /*! \addtogroup xgNutArchArmAt91Sam9260 */
  131. /*@{*/
  132. /*! \name Peripheral Identifiers and Interrupts */
  133. /*@{*/
  134. #define FIQ_ID 0 /*!< \brief Fast interrupt. */
  135. #define PIOA_ID 2 /*!< \brief Parallel I/O controller A. */
  136. #define PIOB_ID 3 /*!< \brief Parallel I/O controller B. */
  137. #define PIOC_ID 4 /*!< \brief Parallel I/O controller C. */
  138. #define ADC_ID 5 /*!< \brief Analog to digital converter. */
  139. #define US0_ID 6 /*!< \brief USART 0. */
  140. #define US1_ID 7 /*!< \brief USART 1. */
  141. #define US2_ID 8 /*!< \brief USART 2. */
  142. #define MCI_ID 9 /*!< \brief MMC interface. */
  143. #define UDP_ID 10 /*!< \brief USB device port. */
  144. #define TWI_ID 11 /*!< \brief Two wire interface. */
  145. #define SPI0_ID 12 /*!< \brief Serial peripheral 0. */
  146. #define SPI1_ID 13 /*!< \brief Serial peripheral 1. */
  147. #define SSC_ID 14 /*!< \brief Serial peripheral interface. */
  148. #define TC0_ID 17 /*!< \brief Timer/counter 0. */
  149. #define TC1_ID 18 /*!< \brief Timer/counter 1. */
  150. #define TC2_ID 19 /*!< \brief Timer/counter 2. */
  151. #define UHP_ID 20 /*!< \brief USB host port. */
  152. #define EMAC_ID 21 /*!< \brief Ethernet MAC. */
  153. #define ISI_ID 22 /*!< \brief Image sensor interface. */
  154. #define US3_ID 23 /*!< \brief USART 3. */
  155. #define US4_ID 24 /*!< \brief USART 4. */
  156. #define US5_ID 25 /*!< \brief USART 5. */
  157. #define TC3_ID 26 /*!< \brief Timer/counter 3. */
  158. #define TC4_ID 27 /*!< \brief Timer/counter 4. */
  159. #define TC5_ID 28 /*!< \brief Timer/counter 5. */
  160. #define IRQ0_ID 29 /*!< \brief External interrupt 0. */
  161. #define IRQ1_ID 30 /*!< \brief External interrupt 1. */
  162. #define IRQ2_ID 31 /*!< \brief External interrupt 2. */
  163. /*@}*/
  164. /*! \name USART Peripheral Multiplexing */
  165. /*@{*/
  166. #define PA31_SCK0_A 31 /*!< \brief Channel 0 serial clock pin. */
  167. #define PB4_TXD0_A 4 /*!< \brief Channel 0 transmit data pin. */
  168. #define PB5_RXD0_A 5 /*!< \brief Channel 0 receive data pin. */
  169. #define PB27_CTS0_A 27 /*!< \brief Channel 0 clear to send pin. */
  170. #define PB26_RTS0_A 26 /*!< \brief Channel 0 request to send pin. */
  171. #define PB25_RI0_A 25 /*!< \brief Channel 0 ring indicator pin. */
  172. #define PB22_DSR0_A 22 /*!< \brief Channel 0 data set ready pin. */
  173. #define PB23_DCD0_A 23 /*!< \brief Channel 0 data carrier detect pin. */
  174. #define PB24_DTR0_A 24 /*!< \brief Channel 0 data terminal ready pin. */
  175. #define PA29_SCK1_A 29 /*!< \brief Channel 1 serial clock pin. */
  176. #define PB6_TXD1_A 6 /*!< \brief Channel 1 transmit data pin. */
  177. #define PB7_RXD1_A 7 /*!< \brief Channel 1 receive data pin. */
  178. #define PB29_CTS1_A 29 /*!< \brief Channel 1 clear to send pin. */
  179. #define PB28_RTS1_A 28 /*!< \brief Channel 1 request to send pin. */
  180. #define PA30_SCK2_A 30 /*!< \brief Channel 2 serial clock pin. */
  181. #define PB8_TXD2_A 8 /*!< \brief Channel 2 transmit data pin. */
  182. #define PB9_RXD2_A 9 /*!< \brief Channel 2 receive data pin. */
  183. #define PA5_CTS2_A 5 /*!< \brief Channel 2 clear to send pin. */
  184. #define PA4_RTS2_A 4 /*!< \brief Channel 2 request to send pin. */
  185. #define PC0_SCK3_B 0 /*!< \brief Channel 3 serial clock pin. */
  186. #define PB10_TXD3_A 10 /*!< \brief Channel 3 transmit data pin. */
  187. #define PB11_RXD3_A 11 /*!< \brief Channel 3 receive data pin. */
  188. #define PC10_CTS3_B 10 /*!< \brief Channel 3 clear to send pin. */
  189. #define PC8_RTS3_B 8 /*!< \brief Channel 3 request to send pin. */
  190. #define PA31_TXD4_B 31 /*!< \brief Channel 4 transmit data pin. */
  191. #define PA30_RXD4_B 30 /*!< \brief Channel 4 receive data pin. */
  192. #define PB12_TXD5_A 12 /*!< \brief Channel 5 transmit data pin. */
  193. #define PB13_RXD5_A 13 /*!< \brief Channel 5 receive data pin. */
  194. /*@}*/
  195. /*! \name SPI Peripheral Multiplexing */
  196. /*@{*/
  197. #define PA0_SPI0_MISO_A 0 /*!< \brief Channel 0 master input slave output pin. */
  198. #define PA1_SPI0_MOSI_A 1 /*!< \brief Channel 0 master output slave input pin. */
  199. #define PA2_SPI0_SPCK_A 2 /*!< \brief Channel 0 serial clock pin. */
  200. #define PA3_SPI0_NPCS0_A 3 /*!< \brief Channel 0 chip select 0 pin. */
  201. #define PC11_SPI0_NPCS1_B 11 /*!< \brief Channel 0 chip select 1 pin. */
  202. #define PC16_SPI0_NPCS2_B 16 /*!< \brief Channel 0 chip select 2 pin. */
  203. #define PC17_SPI0_NPCS3_B 17 /*!< \brief Channel 0 chip select 3 pin. */
  204. #define SPI0_PINS _BV(PA0_SPI0_MISO_A) | _BV(PA1_SPI0_MOSI_A) | _BV(PA2_SPI0_SPCK_A)
  205. #define SPI0_PIO_BASE PIOA_BASE
  206. #define SPI0_PSR_OFF PIO_ASR_OFF
  207. #define SPI0_CS0_PIN _BV(PA3_SPI0_NPCS0_A)
  208. #define SPI0_CS0_PIO_BASE PIOA_BASE
  209. #define SPI0_CS0_PSR_OFF PIO_ASR_OFF
  210. #define SPI0_CS1_PIN _BV(PC11_SPI0_NPCS1_B)
  211. #define SPI0_CS1_PIO_BASE PIOC_BASE
  212. #define SPI0_CS1_PSR_OFF PIO_BSR_OFF
  213. #define PB0_SPI1_MISO_A 0 /*!< \brief Channel 1 master input slave output pin. */
  214. #define PB1_SPI1_MOSI_A 1 /*!< \brief Channel 1 master output slave input pin. */
  215. #define PB2_SPI1_SPCK_A 2 /*!< \brief Channel 1 serial clock pin. */
  216. #define PB3_SPI1_NPCS0_A 3 /*!< \brief Channel 1 chip select 0 pin. */
  217. #define PC5_SPI1_NPCS1_B 5 /*!< \brief Channel 1 chip select 1 pin. */
  218. #define PC18_SPI1_NPCS1_B 18 /*!< \brief Channel 1 chip select 1 pin. */
  219. #define PC4_SPI1_NPCS2_B 4 /*!< \brief Channel 1 chip select 2 pin. */
  220. #define PC19_SPI1_NPCS2_B 19 /*!< \brief Channel 1 chip select 2 pin. */
  221. #define PC3_SPI1_NPCS3_B 3 /*!< \brief Channel 1 chip select 3 pin. */
  222. #define PC20_SPI1_NPCS3_B 20 /*!< \brief Channel 1 chip select 3 pin. */
  223. #define SPI1_PINS _BV(PB0_SPI1_MISO_A) | _BV(PB1_SPI1_MOSI_A) | _BV(PB2_SPI1_SPCK_A)
  224. #define SPI1_PIO_BASE PIOB_BASE
  225. #define SPI1_PSR_OFF PIO_ASR_OFF
  226. #define SPI1_CS0_PIN _BV(PB3_SPI1_NPCS0_A)
  227. #define SPI1_CS0_PIO_BASE PIOB_BASE
  228. #define SPI1_CS0_PSR_OFF PIO_ASR_OFF
  229. #ifndef SPI1_CS3_PIN
  230. #define SPI1_CS3_PIN _BV(PC3_SPI1_NPCS3_B)
  231. #define SPI1_CS3_PIO_BASE PIOC_BASE
  232. #define SPI1_CS3_PSR_OFF PIO_BSR_OFF
  233. #endif
  234. /*@}*/
  235. /*! \name Image Sensor Interface Peripheral Multiplexing */
  236. /*@{*/
  237. #define PB20_ISI_D0_B 20 /*!< \brief Image sensor data bit 0 pin. */
  238. #define PB21_ISI_D1_B 21 /*!< \brief Image sensor data bit 1 pin. */
  239. #define PB22_ISI_D2_B 22 /*!< \brief Image sensor data bit 2 pin. */
  240. #define PB23_ISI_D3_B 23 /*!< \brief Image sensor data bit 3 pin. */
  241. #define PB24_ISI_D4_B 24 /*!< \brief Image sensor data bit 4 pin. */
  242. #define PB25_ISI_D5_B 25 /*!< \brief Image sensor data bit 5 pin. */
  243. #define PB26_ISI_D6_B 26 /*!< \brief Image sensor data bit 6 pin. */
  244. #define PB27_ISI_D7_B 27 /*!< \brief Image sensor data bit 7 pin. */
  245. #define PB10_ISI_D8_B 10 /*!< \brief Image sensor data bit 8 pin. */
  246. #define PB11_ISI_D9_B 11 /*!< \brief Image sensor data bit 9 pin. */
  247. #define PB12_ISI_D10_B 12 /*!< \brief Image sensor data bit 10 pin. */
  248. #define PB13_ISI_D11_B 13 /*!< \brief Image sensor data bit 11 pin. */
  249. #define PB28_ISI_PCK_B 28 /*!< \brief Image sensor data clock pin. */
  250. #define PB29_ISI_VSYNC_B 29 /*!< \brief Image sensor vertical sync pin. */
  251. #define PB30_ISI_HSYNC_B 30 /*!< \brief Image sensor horizontal sync pin. */
  252. #define PB31_ISI_MCK_B 31 /*!< \brief Image sensor reference clock pin. */
  253. /*@}*/
  254. /*! \name MultiMedia Card and SDCard Interface Peripheral Multiplexing */
  255. /*@{*/
  256. #define PA8_MCCK_A 8 /*!< \brief MultiMedia card clock pin. */
  257. #define PA7_MCCDA_A 7 /*!< \brief MultiMedia card slot A command pin. */
  258. #define PA6_MCDA0_A 6 /*!< \brief MultiMedia card slot A data bit 0 pin. */
  259. #define PA9_MCDA1_A 9 /*!< \brief MultiMedia card slot A data bit 1 pin. */
  260. #define PA10_MCDA2_A 10 /*!< \brief MultiMedia card slot A data bit 2 pin. */
  261. #define PA11_MCDA3_A 11 /*!< \brief MultiMedia card slot A data bit 3 pin. */
  262. #define PA1_MCCDB_B 1 /*!< \brief MultiMedia card slot B command pin. */
  263. #define PA0_MCDB0_B 0 /*!< \brief MultiMedia card slot B data bit 0 pin. */
  264. #define PA5_MCDB1_B 5 /*!< \brief MultiMedia card slot B data bit 1 pin. */
  265. #define PA4_MCDB2_B 4 /*!< \brief MultiMedia card slot B data bit 2 pin. */
  266. #define PA3_MCDB3_B 3 /*!< \brief MultiMedia card slot B data bit 3 pin. */
  267. /*@}*/
  268. /*! \name EMAC Interface Peripheral Multiplexing */
  269. /*@{*/
  270. #define PA10_ETX2_B 10 /*!< \brief Transmit data bit 2 pin. */
  271. #define PA11_ETX3_B 11 /*!< \brief Transmit data bit 3 pin. */
  272. #define PA12_ETX0_A 12 /*!< \brief Transmit data bit 0 pin. */
  273. #define PA13_ETX1_A 13 /*!< \brief Transmit data bit 1 pin. */
  274. #define PA14_ERX0_A 14 /*!< \brief Receive data bit 0 pin. */
  275. #define PA15_ERX1_A 15 /*!< \brief Receive data bit 1 pin. */
  276. #define PA16_ETXEN_A 16 /*!< \brief Transmit enable pin. */
  277. #define PA17_ERXDV_A 17 /*!< \brief Data valid pin. */
  278. #define PA18_ERXER_A 18 /*!< \brief Receive error pin. */
  279. #define PA19_ETXCK_A 19 /*!< \brief Transmit clock pin. */
  280. #define PA20_EMDC_A 20 /*!< \brief Management data clock pin. */
  281. #define PA21_EMDIO_A 21 /*!< \brief Management data I/O pin. */
  282. #define PA22_ETXER_B 22 /*!< \brief Transmit error pin. */
  283. #define PA23_ETX2_B 23 /*!< \brief Transmit data bit 2 pin. */
  284. #define PA24_ETX3_B 24 /*!< \brief Transmit data bit 3 pin. */
  285. #define PA25_ERX2_B 25 /*!< \brief Receive data bit 2 pin. */
  286. #define PA26_ERX3_B 26 /*!< \brief Receive data bit 3 pin. */
  287. #define PA27_ERXCK_B 27 /*!< \brief Receive clock pin. */
  288. #define PA28_ECRS_B 28 /*!< \brief Carrier sense pin. */
  289. #define PA29_ECOL_B 29 /*!< \brief Collision detect pin. */
  290. #define PC21_EF100_B 21 /*!< \brief Force 100Mbit pin. */
  291. /*@}*/
  292. /*! \name ADC Interface Peripheral Multiplexing */
  293. /*@{*/
  294. #define PA22_ADTRG_A 22 /*!< \brief ADC trigger pin. */
  295. /*@}*/
  296. /*! \name Debug Unit Peripheral Multiplexing */
  297. /*@{*/
  298. #define PB14_DRXD_A 14 /*!< \brief Debug unit receive data pin. */
  299. #define PB15_DTXD_A 15 /*!< \brief Debug unit transmit data pin. */
  300. /*@}*/
  301. /*! \name Synchronous Serial Controller Peripheral Multiplexing */
  302. /*@{*/
  303. #define PB18_TD0_A 18 /*!< \brief Transmit data pin. */
  304. #define PB19_RD0_A 19 /*!< \brief Receive data pin. */
  305. #define PB16_TK0_A 16 /*!< \brief Transmit clock pin. */
  306. #define PB20_RK0_A 20 /*!< \brief Receive clock pin. */
  307. #define PB17_TF0_A 17 /*!< \brief Transmit frame sync. pin. */
  308. #define PB21_RF0_A 21 /*!< \brief Receive frame sync. pin. */
  309. /*@}*/
  310. /*! \name Two Wire Interface Peripheral Multiplexing */
  311. /*@{*/
  312. #define PA23_TWD_A 23 /*!< \brief Two wire serial data pin. */
  313. #define PA24_TWCK_A 24 /*!< \brief Two wire serial clock pin. */
  314. /*@}*/
  315. /*! \name Timer/Counter Peripheral Multiplexing */
  316. /*@{*/
  317. #define PA25_TCLK0_A 25 /*!< \brief Timer/counter 0 external clock input. */
  318. #define PA26_TIOA0_A 26 /*!< \brief Timer/counter 0 I/O line A. */
  319. #define PC9_TIOB0_B 9 /*!< \brief Timer/counter 0 I/O line B. */
  320. #define PB6_TCLK1_B 6 /*!< \brief Timer/counter 1 external clock input. */
  321. #define PA27_TIOA1_A 27 /*!< \brief Timer/counter 1 I/O line A. */
  322. #define PC7_TIOB1_A 7 /*!< \brief Timer/counter 1 I/O line B. */
  323. #define PB7_TCLK2_B 7 /*!< \brief Timer/counter 2 external clock input. */
  324. #define PA28_TIOA2_A 28 /*!< \brief Timer/counter 2 I/O line A. */
  325. #define PC6_TIOB2_A 6 /*!< \brief Timer/counter 2 I/O line B. */
  326. #define PB16_TCLK3_B 16 /*!< \brief Timer/counter 3 external clock input. */
  327. #define PB0_TIOA3_B 0 /*!< \brief Timer/counter 3 I/O line A. */
  328. #define PB1_TIOB3_B 1 /*!< \brief Timer/counter 3 I/O line B. */
  329. #define PB17_TCLK4_B 17 /*!< \brief Timer/counter 4 external clock input. */
  330. #define PB2_TIOA4_B 2 /*!< \brief Timer/counter 4 I/O line A. */
  331. #define PB18_TIOB4_B 18 /*!< \brief Timer/counter 4 I/O line B. */
  332. #define PC22_TCLK5_B 22 /*!< \brief Timer/counter 5 external clock input. */
  333. #define PB3_TIOA5_B 3 /*!< \brief Timer/counter 5 I/O line A. */
  334. #define PB19_TIOB5_B 19 /*!< \brief Timer/counter 5 I/O line B. */
  335. /*@}*/
  336. /*! \name Clocks, Oscillators and PLLs Peripheral Multiplexing */
  337. /*@{*/
  338. #define PB30_PCK0_A 30 /*!< \brief Programmable clock 0 output pin. */
  339. #define PC1_PCK0_B 1 /*!< \brief Programmable clock 0 output pin. */
  340. #define PB31_PCK1_A 31 /*!< \brief Programmable clock 1 output pin. */
  341. #define PC2_PCK1_B 2 /*!< \brief Programmable clock 1 output pin. */
  342. /*@}*/
  343. /*! \name CompactFlash Peripheral Multiplexing */
  344. /*@{*/
  345. #define PC10_A25_CFRNW_A 10 /*!< \brief Read not write pin. */
  346. #define PC8_NCS4_CFCS0_A 8 /*!< \brief Chip select line 0 pin. */
  347. #define PC9_NCS5_CFCS1_A 9 /*!< \brief Chip select line 1 pin. */
  348. #define PC6_CFCE1_B 6 /*!< \brief Chip enable line 1 pin. */
  349. #define PC7_CFCE2_B 7 /*!< \brief Chip enable line 2 pin. */
  350. /*@}*/
  351. /*! \name External Bus Interface Peripheral Multiplexing */
  352. /*@{*/
  353. #define PC16_D16_A 16 /*!< \brief Data bus bit 16 pin. */
  354. #define PC17_D17_A 17 /*!< \brief Data bus bit 17 pin. */
  355. #define PC18_D18_A 18 /*!< \brief Data bus bit 18 pin. */
  356. #define PC19_D19_A 19 /*!< \brief Data bus bit 19 pin. */
  357. #define PC20_D20_A 20 /*!< \brief Data bus bit 20 pin. */
  358. #define PC21_D21_A 21 /*!< \brief Data bus bit 21 pin. */
  359. #define PC22_D22_A 22 /*!< \brief Data bus bit 22 pin. */
  360. #define PC23_D23_A 23 /*!< \brief Data bus bit 23 pin. */
  361. #define PC24_D24_A 24 /*!< \brief Data bus bit 24 pin. */
  362. #define PC25_D25_A 25 /*!< \brief Data bus bit 25 pin. */
  363. #define PC26_D26_A 26 /*!< \brief Data bus bit 26 pin. */
  364. #define PC27_D27_A 27 /*!< \brief Data bus bit 27 pin. */
  365. #define PC28_D28_A 28 /*!< \brief Data bus bit 28 pin. */
  366. #define PC29_D29_A 29 /*!< \brief Data bus bit 29 pin. */
  367. #define PC30_D30_A 30 /*!< \brief Data bus bit 30 pin. */
  368. #define PC31_D31_A 31 /*!< \brief Data bus bit 31 pin. */
  369. #define PC4_A23_A 4 /*!< \brief Address bus bit 23 pin. */
  370. #define PC5_A24_A 5 /*!< \brief Address bus bit 24 pin. */
  371. #define PC11_NCS2_A 11 /*!< \brief Negated chip select 2 pin. */
  372. #define PC14_NCS3_NANDCS_A 14 /*!< \brief Negated chip select 3 pin. */
  373. #define PC13_NCS6_B 13 /*!< \brief Negated chip select 6 pin. */
  374. #define PC12_NCS7_B 12 /*!< \brief Negated chip select 7 pin. */
  375. #define PC15_NWAIT_A 15 /*!< \brief External wait signal pin. */
  376. /*@}*/
  377. /*! \name Advanced Interrupt Controller Peripheral Multiplexing */
  378. /*@{*/
  379. #define PC13_FIQ_A 13 /*!< \brief Fast interrupt input pin. */
  380. #define PC12_IRQ0_A 12 /*!< \brief External interrupt 0 input pin. */
  381. #define PC15_IRQ1_B 15 /*!< \brief External interrupt 1 input pin. */
  382. #define PC14_IRQ2_B 14 /*!< \brief External interrupt 2 input pin. */
  383. /*@}*/
  384. /*@} xgNutArchArmAt91Sam9260 */
  385. #endif /* _ARCH_ARM_SAM9260_H_ */