Register definitions. More...
![]() |
Peripheral Identifiers and Interrupts | |
| |
#define | FIQ_ID 0 |
Fast interrupt ID. | |
#define | SYSC_ID 1 |
System interrupt ID. | |
#define | PIOA_ID 2 |
Parallel I/O controller ID. | |
#define | ADC_ID 4 |
Analog to digital converter ID. | |
#define | SPI0_ID 5 |
Serial peripheral interface 0 ID. | |
#define | US0_ID 6 |
USART 0 ID. | |
#define | US1_ID 7 |
USART 1 ID. | |
#define | SSC_ID 8 |
Synchronous serial controller ID. | |
#define | TWI_ID 9 |
Two-wire interface ID. | |
#define | PWMC_ID 10 |
PWM controller ID. | |
#define | UDP_ID 11 |
USB device port ID. | |
#define | TC0_ID 12 |
Timer 0 ID. | |
#define | TC1_ID 13 |
Timer 1 ID. | |
#define | TC2_ID 14 |
Timer 2 ID. | |
#define | IRQ0_ID 30 |
External interrupt 0 ID. | |
#define | IRQ1_ID 31 |
External interrupt 1 ID. | |
Historical SPI0 Peripheral Multiplexing Names | |
| |
#define | SPI0_NPCS0_PA11A 11 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_NPCS1_PA09B 9 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS1_PA31A 31 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_NPCS2_PA10B 10 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS2_PA30B 30 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS3_PA03B 3 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS3_PA05B 5 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS3_PA22B 22 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_MISO_PA12A 12 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_MOSI_PA13A 13 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_SPCK_PA14A 14 |
Port bit number on PIO-A Perpheral A. | |
USART Peripheral Multiplexing | |
| |
#define | PA5_RXD0_A 5 |
#define | PA6_TXD0_A 6 |
#define | PA2_SCK0_B 2 |
#define | PA7_RTS0_A 7 |
#define | PA8_CTS0_A 8 |
#define | PA21_RXD1_A 21 |
#define | PA22_TXD1_A 22 |
#define | PA23_SCK1_A 23 |
#define | PA24_RTS1_A 24 |
#define | PA25_CTS1_A 25 |
#define | PB26_DCD1_A 26 |
#define | PB28_DSR1_A 28 |
#define | PB27_DTR1_A 27 |
#define | PB29_RI1_A 29 |
SPI Peripheral Multiplexing | |
| |
#define | PA12_SPI0_MISO_A 12 |
#define | PA13_SPI0_MOSI_A 13 |
#define | PA14_SPI0_SPCK_A 14 |
#define | PA11_SPI0_NPCS0_A 11 |
#define | PA9_SPI0_NPCS1_B 9 |
#define | PA31_SPI0_NPCS1_A 31 |
#define | PA10_SPI0_NPCS2_B 10 |
#define | PB30_SPI0_NPCS2_B 30 |
#define | PA3_SPI0_NPCS3_B 3 |
#define | PA5_SPI0_NPCS3_B 5 |
#define | PA22_SPI0_NPCS3_B 22 |
#define | SPI0_PINS _BV(PA12_SPI0_MISO_A) | _BV(PA13_SPI0_MOSI_A) | _BV(PA14_SPI0_SPCK_A) |
#define | SPI0_PIO_BASE PIOA_BASE |
#define | SPI0_PSR_OFF PIO_ASR_OFF |
#define | SPI0_CS0_PIN _BV(PA11_SPI0_NPCS0_A) |
#define | SPI0_CS0_PIO_BASE PIOA_BASE |
#define | SPI0_CS0_PSR_OFF PIO_ASR_OFF |
Peripheral Identifiers and Interrupts | |
| |
#define | FIQ_ID 0 |
Fast interrupt ID. | |
#define | SYSC_ID 1 |
System controller interrupt. | |
#define | PIOA_ID 2 |
Parallel I/O controller ID. | |
#define | PIOB_ID 3 |
Parallel I/O controller ID. | |
#define | SPI0_ID 4 |
Serial peripheral interface 0 ID. | |
#define | SPI1_ID 5 |
Serial peripheral interface 1 ID. | |
#define | US0_ID 6 |
USART 0 ID. | |
#define | US1_ID 7 |
USART 1 ID. | |
#define | SSC_ID 8 |
Synchronous serial controller ID. | |
#define | TWI_ID 9 |
Two-wire interface ID. | |
#define | PWMC_ID 10 |
PWM controller ID. | |
#define | UDP_ID 11 |
USB device port ID. | |
#define | TC0_ID 12 |
Timer 0 ID. | |
#define | TC1_ID 13 |
Timer 1 ID. | |
#define | TC2_ID 14 |
Timer 2 ID. | |
#define | CAN_ID 15 |
CAN controller ID. | |
#define | EMAC_ID 16 |
Ethernet MAC ID. | |
#define | ADC_ID 17 |
Analog to digital converter ID. | |
#define | IRQ0_ID 30 |
External interrupt 0 ID. | |
#define | IRQ1_ID 31 |
External interrupt 1 ID. | |
Historical SPI0 Peripheral Multiplexing Names | |
| |
#define | SPI0_NPCS0_PA12A 12 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_NPCS1_PA13A 13 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_NPCS1_PA07B 7 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS1_PB13B 13 |
Port bit number on PIO-B Perpheral B. | |
#define | SPI0_NPCS2_PA14A 14 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_NPCS2_PA08B 8 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS2_PB14B 14 |
Port bit number on PIO-B Perpheral B. | |
#define | SPI0_NPCS3_PA15A 15 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_NPCS3_PA09B 9 |
Port bit number on PIO-A Perpheral B. | |
#define | SPI0_NPCS3_PB17B 17 |
Port bit number on PIO-B Perpheral B. | |
#define | SPI0_MISO_PA16A 16 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_MOSI_PA17A 17 |
Port bit number on PIO-A Perpheral A. | |
#define | SPI0_SPCK_PA18A 18 |
Port bit number on PIO-A Perpheral A. | |
USART Peripheral Multiplexing | |
| |
#define | PA0_RXD0_A 0 |
#define | PA1_TXD0_A 1 |
#define | PA2_SCK0_A 2 |
#define | PA3_RTS0_A 3 |
#define | PA4_CTS0_A 4 |
#define | PA5_RXD1_A 5 |
#define | PA6_TXD1_A 6 |
#define | PA7_SCK1_A 7 |
#define | PA8_RTS1_A 8 |
#define | PA9_CTS1_A 9 |
#define | PB23_DCD1_B 23 |
#define | PB24_DSR1_B 24 |
#define | PB25_DTR1_B 25 |
#define | PB26_RI1_B 26 |
SPI Peripheral Multiplexing | |
| |
#define | PA16_SPI0_MISO_A 16 |
#define | PA17_SPI0_MOSI_A 17 |
#define | PA18_SPI0_SPCK_A 18 |
#define | PA12_SPI0_NPCS0_A 12 |
#define | PA13_SPI0_NPCS1_A 13 |
#define | PA7_SPI0_NPCS1_B 7 |
#define | PA14_SPI0_NPCS2_A 14 |
#define | PB14_SPI0_NPCS2_B 14 |
#define | PA8_SPI0_NPCS2_B 8 |
#define | PA15_SPI0_NPCS3_A 15 |
#define | PA9_SPI0_NPCS3_B 9 |
#define | SPI0_PINS _BV(PA16_SPI0_MISO_A) | _BV(PA17_SPI0_MOSI_A) | _BV(PA18_SPI0_SPCK_A) |
#define | SPI0_PIO_BASE PIOA_BASE |
#define | SPI0_PSR_OFF PIO_ASR_OFF |
#define | SPI0_CS0_PIN _BV(PA12_SPI0_NPCS0_A) |
#define | SPI0_CS0_PIO_BASE PIOA_BASE |
#define | SPI0_CS0_PSR_OFF PIO_ASR_OFF |
Register definitions.
#define FIQ_ID 0 |
Fast interrupt ID.
Definition at line 122 of file at91sam7s.h.
#define SYSC_ID 1 |
System interrupt ID.
Definition at line 123 of file at91sam7s.h.
#define PIOA_ID 2 |
Parallel I/O controller ID.
Definition at line 124 of file at91sam7s.h.
Referenced by GpioPortConfigSet().
#define ADC_ID 4 |
Analog to digital converter ID.
Definition at line 126 of file at91sam7s.h.
Referenced by ADCInit().
#define SPI0_ID 5 |
Serial peripheral interface 0 ID.
Definition at line 127 of file at91sam7s.h.
Referenced by At91Spi0Init(), and At91SpiBus0Select().
#define US0_ID 6 |
USART 0 ID.
Definition at line 128 of file at91sam7s.h.
#define US1_ID 7 |
#define SSC_ID 8 |
Synchronous serial controller ID.
Definition at line 130 of file at91sam7s.h.
#define TWI_ID 9 |
#define PWMC_ID 10 |
PWM controller ID.
Definition at line 132 of file at91sam7s.h.
#define UDP_ID 11 |
USB device port ID.
Definition at line 133 of file at91sam7s.h.
#define TC0_ID 12 |
#define TC1_ID 13 |
Timer 1 ID.
Definition at line 135 of file at91sam7s.h.
#define TC2_ID 14 |
Timer 2 ID.
Definition at line 136 of file at91sam7s.h.
#define IRQ0_ID 30 |
External interrupt 0 ID.
Definition at line 138 of file at91sam7s.h.
Referenced by AsixInit(), and NicRxLanc().
#define IRQ1_ID 31 |
External interrupt 1 ID.
Definition at line 139 of file at91sam7s.h.
#define SPI0_NPCS0_PA11A 11 |
Port bit number on PIO-A Perpheral A.
Definition at line 144 of file at91sam7s.h.
#define SPI0_NPCS1_PA09B 9 |
Port bit number on PIO-A Perpheral B.
Definition at line 145 of file at91sam7s.h.
#define SPI0_NPCS1_PA31A 31 |
Port bit number on PIO-A Perpheral A.
Definition at line 146 of file at91sam7s.h.
#define SPI0_NPCS2_PA10B 10 |
Port bit number on PIO-A Perpheral B.
Definition at line 147 of file at91sam7s.h.
#define SPI0_NPCS2_PA30B 30 |
Port bit number on PIO-A Perpheral B.
Definition at line 148 of file at91sam7s.h.
#define SPI0_NPCS3_PA03B 3 |
Port bit number on PIO-A Perpheral B.
Definition at line 149 of file at91sam7s.h.
#define SPI0_NPCS3_PA05B 5 |
Port bit number on PIO-A Perpheral B.
Definition at line 150 of file at91sam7s.h.
#define SPI0_NPCS3_PA22B 22 |
Port bit number on PIO-A Perpheral B.
Definition at line 151 of file at91sam7s.h.
#define SPI0_MISO_PA12A 12 |
Port bit number on PIO-A Perpheral A.
Definition at line 152 of file at91sam7s.h.
#define SPI0_MOSI_PA13A 13 |
Port bit number on PIO-A Perpheral A.
Definition at line 153 of file at91sam7s.h.
#define SPI0_SPCK_PA14A 14 |
Port bit number on PIO-A Perpheral A.
Definition at line 154 of file at91sam7s.h.
#define PA5_RXD0_A 5 |
Definition at line 159 of file at91sam7s.h.
#define PA6_TXD0_A 6 |
Definition at line 160 of file at91sam7s.h.
#define PA2_SCK0_B 2 |
Definition at line 161 of file at91sam7s.h.
#define PA7_RTS0_A 7 |
Definition at line 162 of file at91sam7s.h.
#define PA8_CTS0_A 8 |
Definition at line 163 of file at91sam7s.h.
#define PA21_RXD1_A 21 |
Definition at line 165 of file at91sam7s.h.
#define PA22_TXD1_A 22 |
Definition at line 166 of file at91sam7s.h.
#define PA23_SCK1_A 23 |
Definition at line 167 of file at91sam7s.h.
#define PA24_RTS1_A 24 |
Definition at line 168 of file at91sam7s.h.
#define PA25_CTS1_A 25 |
Definition at line 169 of file at91sam7s.h.
#define PB26_DCD1_A 26 |
Definition at line 170 of file at91sam7s.h.
#define PB28_DSR1_A 28 |
Definition at line 171 of file at91sam7s.h.
#define PB27_DTR1_A 27 |
Definition at line 172 of file at91sam7s.h.
#define PB29_RI1_A 29 |
Definition at line 173 of file at91sam7s.h.
#define PA12_SPI0_MISO_A 12 |
Definition at line 178 of file at91sam7s.h.
#define PA13_SPI0_MOSI_A 13 |
Definition at line 179 of file at91sam7s.h.
#define PA14_SPI0_SPCK_A 14 |
Definition at line 180 of file at91sam7s.h.
#define PA11_SPI0_NPCS0_A 11 |
Definition at line 181 of file at91sam7s.h.
#define PA9_SPI0_NPCS1_B 9 |
Definition at line 182 of file at91sam7s.h.
#define PA31_SPI0_NPCS1_A 31 |
Definition at line 183 of file at91sam7s.h.
#define PA10_SPI0_NPCS2_B 10 |
Definition at line 184 of file at91sam7s.h.
#define PB30_SPI0_NPCS2_B 30 |
Definition at line 185 of file at91sam7s.h.
#define PA3_SPI0_NPCS3_B 3 |
Definition at line 186 of file at91sam7s.h.
#define PA5_SPI0_NPCS3_B 5 |
Definition at line 187 of file at91sam7s.h.
#define PA22_SPI0_NPCS3_B 22 |
Definition at line 188 of file at91sam7s.h.
#define SPI0_PINS _BV(PA12_SPI0_MISO_A) | _BV(PA13_SPI0_MOSI_A) | _BV(PA14_SPI0_SPCK_A) |
Definition at line 190 of file at91sam7s.h.
Referenced by At91Spi0Enable(), and At91SpiBus0Select().
#define SPI0_PIO_BASE PIOA_BASE |
Definition at line 191 of file at91sam7s.h.
Referenced by At91Spi0Enable(), and At91SpiBus0Select().
#define SPI0_PSR_OFF PIO_ASR_OFF |
Definition at line 192 of file at91sam7s.h.
Referenced by At91Spi0Enable(), and At91SpiBus0Select().
#define SPI0_CS0_PIN _BV(PA11_SPI0_NPCS0_A) |
Definition at line 194 of file at91sam7s.h.
Referenced by At91Spi0InitChipSelects().
#define SPI0_CS0_PIO_BASE PIOA_BASE |
Definition at line 195 of file at91sam7s.h.
Referenced by At91Spi0InitChipSelects().
#define SPI0_CS0_PSR_OFF PIO_ASR_OFF |
Definition at line 196 of file at91sam7s.h.
Referenced by At91Spi0InitChipSelects().
#define FIQ_ID 0 |
Fast interrupt ID.
Definition at line 176 of file at91sam7x.h.
#define SYSC_ID 1 |
System controller interrupt.
Definition at line 177 of file at91sam7x.h.
#define PIOA_ID 2 |
Parallel I/O controller ID.
Definition at line 178 of file at91sam7x.h.
#define PIOB_ID 3 |
Parallel I/O controller ID.
Definition at line 179 of file at91sam7x.h.
#define SPI0_ID 4 |
Serial peripheral interface 0 ID.
Definition at line 180 of file at91sam7x.h.
#define SPI1_ID 5 |
Serial peripheral interface 1 ID.
Definition at line 181 of file at91sam7x.h.
#define US0_ID 6 |
USART 0 ID.
Definition at line 182 of file at91sam7x.h.
#define US1_ID 7 |
USART 1 ID.
Definition at line 183 of file at91sam7x.h.
#define SSC_ID 8 |
Synchronous serial controller ID.
Definition at line 184 of file at91sam7x.h.
#define TWI_ID 9 |
Two-wire interface ID.
Definition at line 185 of file at91sam7x.h.
#define PWMC_ID 10 |
PWM controller ID.
Definition at line 186 of file at91sam7x.h.
#define UDP_ID 11 |
USB device port ID.
Definition at line 187 of file at91sam7x.h.
#define TC0_ID 12 |
Timer 0 ID.
Definition at line 188 of file at91sam7x.h.
#define TC1_ID 13 |
Timer 1 ID.
Definition at line 189 of file at91sam7x.h.
#define TC2_ID 14 |
Timer 2 ID.
Definition at line 190 of file at91sam7x.h.
#define CAN_ID 15 |
CAN controller ID.
Definition at line 191 of file at91sam7x.h.
#define EMAC_ID 16 |
Ethernet MAC ID.
Definition at line 192 of file at91sam7x.h.
#define ADC_ID 17 |
Analog to digital converter ID.
Definition at line 193 of file at91sam7x.h.
#define IRQ0_ID 30 |
External interrupt 0 ID.
Definition at line 194 of file at91sam7x.h.
#define IRQ1_ID 31 |
External interrupt 1 ID.
Definition at line 195 of file at91sam7x.h.
#define SPI0_NPCS0_PA12A 12 |
Port bit number on PIO-A Perpheral A.
Definition at line 200 of file at91sam7x.h.
#define SPI0_NPCS1_PA13A 13 |
Port bit number on PIO-A Perpheral A.
Definition at line 201 of file at91sam7x.h.
#define SPI0_NPCS1_PA07B 7 |
Port bit number on PIO-A Perpheral B.
Definition at line 202 of file at91sam7x.h.
#define SPI0_NPCS1_PB13B 13 |
Port bit number on PIO-B Perpheral B.
Definition at line 203 of file at91sam7x.h.
#define SPI0_NPCS2_PA14A 14 |
Port bit number on PIO-A Perpheral A.
Definition at line 204 of file at91sam7x.h.
#define SPI0_NPCS2_PA08B 8 |
Port bit number on PIO-A Perpheral B.
Definition at line 205 of file at91sam7x.h.
#define SPI0_NPCS2_PB14B 14 |
Port bit number on PIO-B Perpheral B.
Definition at line 206 of file at91sam7x.h.
#define SPI0_NPCS3_PA15A 15 |
Port bit number on PIO-A Perpheral A.
Definition at line 207 of file at91sam7x.h.
#define SPI0_NPCS3_PA09B 9 |
Port bit number on PIO-A Perpheral B.
Definition at line 208 of file at91sam7x.h.
#define SPI0_NPCS3_PB17B 17 |
Port bit number on PIO-B Perpheral B.
Definition at line 209 of file at91sam7x.h.
#define SPI0_MISO_PA16A 16 |
Port bit number on PIO-A Perpheral A.
Definition at line 210 of file at91sam7x.h.
#define SPI0_MOSI_PA17A 17 |
Port bit number on PIO-A Perpheral A.
Definition at line 211 of file at91sam7x.h.
#define SPI0_SPCK_PA18A 18 |
Port bit number on PIO-A Perpheral A.
Definition at line 212 of file at91sam7x.h.
#define PA0_RXD0_A 0 |
Definition at line 217 of file at91sam7x.h.
#define PA1_TXD0_A 1 |
Definition at line 218 of file at91sam7x.h.
#define PA2_SCK0_A 2 |
Definition at line 219 of file at91sam7x.h.
#define PA3_RTS0_A 3 |
Definition at line 220 of file at91sam7x.h.
#define PA4_CTS0_A 4 |
Definition at line 221 of file at91sam7x.h.
#define PA5_RXD1_A 5 |
Definition at line 223 of file at91sam7x.h.
#define PA6_TXD1_A 6 |
Definition at line 224 of file at91sam7x.h.
#define PA7_SCK1_A 7 |
Definition at line 225 of file at91sam7x.h.
#define PA8_RTS1_A 8 |
Definition at line 226 of file at91sam7x.h.
#define PA9_CTS1_A 9 |
Definition at line 227 of file at91sam7x.h.
#define PB23_DCD1_B 23 |
Definition at line 228 of file at91sam7x.h.
#define PB24_DSR1_B 24 |
Definition at line 229 of file at91sam7x.h.
#define PB25_DTR1_B 25 |
Definition at line 230 of file at91sam7x.h.
#define PB26_RI1_B 26 |
Definition at line 231 of file at91sam7x.h.
#define PA16_SPI0_MISO_A 16 |
Definition at line 236 of file at91sam7x.h.
#define PA17_SPI0_MOSI_A 17 |
Definition at line 237 of file at91sam7x.h.
#define PA18_SPI0_SPCK_A 18 |
Definition at line 238 of file at91sam7x.h.
#define PA12_SPI0_NPCS0_A 12 |
Definition at line 239 of file at91sam7x.h.
#define PA13_SPI0_NPCS1_A 13 |
Definition at line 240 of file at91sam7x.h.
#define PA7_SPI0_NPCS1_B 7 |
Definition at line 241 of file at91sam7x.h.
#define PA14_SPI0_NPCS2_A 14 |
Definition at line 242 of file at91sam7x.h.
#define PB14_SPI0_NPCS2_B 14 |
Definition at line 243 of file at91sam7x.h.
#define PA8_SPI0_NPCS2_B 8 |
Definition at line 244 of file at91sam7x.h.
#define PA15_SPI0_NPCS3_A 15 |
Definition at line 245 of file at91sam7x.h.
#define PA9_SPI0_NPCS3_B 9 |
Definition at line 246 of file at91sam7x.h.
#define SPI0_PINS _BV(PA16_SPI0_MISO_A) | _BV(PA17_SPI0_MOSI_A) | _BV(PA18_SPI0_SPCK_A) |
Definition at line 248 of file at91sam7x.h.
#define SPI0_PIO_BASE PIOA_BASE |
Definition at line 249 of file at91sam7x.h.
#define SPI0_PSR_OFF PIO_ASR_OFF |
Definition at line 250 of file at91sam7x.h.
#define SPI0_CS0_PIN _BV(PA12_SPI0_NPCS0_A) |
Definition at line 252 of file at91sam7x.h.
#define SPI0_CS0_PIO_BASE PIOA_BASE |
Definition at line 253 of file at91sam7x.h.
#define SPI0_CS0_PSR_OFF PIO_ASR_OFF |
Definition at line 254 of file at91sam7x.h.