1 //*---------------------------------------------------------------------------
2 //* ATMEL Microcontroller Software Support - ROUSSET -
3 //*---------------------------------------------------------------------------
4 //* The software is delivered "AS IS" without warranty or condition of any
5 //* kind, either express, implied or statutory. This includes without
6 //* limitation any warranty or condition with respect to merchantability or
7 //* fitness for any particular purpose, or against the infringements of
8 //* intellectual property rights of others.
9 //*-----------------------------------------------------------------------------
11 //* Object : Parallel I/O Definition File
12 //* Translator : ARM Software Development Toolkit V2.11a
14 //* 1.0 20/10/97 JCZ : Creation
15 //* 2.0 21/10/98 JCZ : Clean up
16 //*---------------------------------------------------------------------------
21 /*---------------------------------------------*/
22 /* Parallel I/O Interface Structure Definition */
23 /*---------------------------------------------*/
27 at91_reg PIO_PER ; /* PIO Enable Register */
28 at91_reg PIO_PDR ; /* PIO Disable Register */
29 at91_reg PIO_PSR ; /* PIO Status Register */
31 at91_reg PIO_OER ; /* Output Enable Register */
32 at91_reg PIO_ODR ; /* Output Disable Register */
33 at91_reg PIO_OSR ; /* Output Status Register */
35 at91_reg PIO_IFER ; /* Input Filter Enable Register */
36 at91_reg PIO_IFDR ; /* Input Filter Disable Register */
37 at91_reg PIO_IFSR ; /* Input Filter Status Register */
39 at91_reg PIO_SODR ; /* Set Output Data Register */
40 at91_reg PIO_CODR ; /* Clear Output Data Register */
41 at91_reg PIO_ODSR ; /* Output Data Status Register */
42 at91_reg PIO_PDSR ; /* Pin Data Status Register */
43 at91_reg PIO_IER ; /* Interrupt Enable Register */
44 at91_reg PIO_IDR ; /* Interrupt Disable Register */
45 at91_reg PIO_IMR ; /* Interrupt Mask Register */
46 at91_reg PIO_ISR ; /* Interrupt Status Register */
49 /*-----------------------------*/
50 /* PIO Handler type definition */
51 /*-----------------------------*/
53 //typedef void (*TypePIOHandler) ( StructPIO *pio_pt, u_int pio_mask ) ;
55 /*--------------------------------*/
56 /* Device Dependancies Definition */
57 /*--------------------------------*/
59 /* Number of PIO Controller */
62 #define PIO_BASE ((StructPIO *) 0xFFFF0000 )
63 /* Number of PIO Lines */
66 /* Parallel I/O Bits Definition */
100 /* PIO Multiplexing Definition */
102 /* There is only one PIO Controller */
105 #define PIO_TC0 PIO_CTRL
109 #define PIN_TC0 (TIOA0|TIOB0|TCLK0)
111 #define PIO_TC1 PIO_CTRL
115 #define PIN_TC1 (TIOA1|TIOB1|TCLK1)
117 #define PIO_TC2 PIO_CTRL
121 #define PIN_TC2 (TIOA2|TIOB2|TCLK2)
123 #define PIO_EXT_IRQ PIO_CTRL
129 #define PIO_USART0 PIO_CTRL
133 #define PIN_USART0 (SCK0|TXD0|RXD0)
135 #define PIO_USART1 PIO_CTRL
139 #define PIN_USART1 (SCK1|TXD1|RXD1)