summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-30 00:40:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-30 00:40:53 +0000
commitfc44796aa0ce534591ab5f19fad282f34ff1ab44 (patch)
tree9cdab5d8ef446adb1d3034888d31112208c0dafa /nuttx
parent39f492cc53cc5d6b2e744ee68d9f6bd724f933c2 (diff)
downloadnuttx-fc44796aa0ce534591ab5f19fad282f34ff1ab44.tar.gz
nuttx-fc44796aa0ce534591ab5f19fad282f34ff1ab44.tar.bz2
nuttx-fc44796aa0ce534591ab5f19fad282f34ff1ab44.zip
Fix big-time naming error -- what was I thinking?
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3058 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/README.txt6
-rwxr-xr-xnuttx/arch/avr/include/at32uc3/irq.h (renamed from nuttx/arch/avr/include/at91uc3/irq.h)10
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/Make.defs (renamed from nuttx/arch/avr/src/at91uc3/Make.defs)14
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_abdac.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_abdac.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_adc.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_adc.h)8
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_clkinit.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_clkinit.c)10
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_config.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_config.h)10
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_eic.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_eic.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_flashc.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_flashc.h)8
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_gpio.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_gpio.c)20
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_gpio.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_gpio.h)8
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_gpioirq.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_gpioirq.c)10
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_hmatrix.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_hmatrix.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_intc.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_intc.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_internal.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_internal.h)24
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_irq.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_irq.c)10
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_lowconsole.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_lowconsole.c)22
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_lowinit.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_lowinit.c)6
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_memorymap.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_memorymap.h)12
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_pdca.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_pdca.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_pinmux.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_pinmux.h)142
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_pm.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_pm.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_pwm.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_pwm.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_rtc.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_rtc.h)8
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_serial.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_serial.c)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_spi.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_spi.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_ssc.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_ssc.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_tc.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_tc.h)8
-rw-r--r--nuttx/arch/avr/src/at32uc3/at32uc3_timerisr.c (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_timerisr.c)6
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_twi.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_twi.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_usart.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_usart.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_usbb.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_usbb.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3_wdt.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3_wdt.h)8
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3a_pinmux.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3a_pinmux.h)128
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/at32uc3b_pinmux.h (renamed from nuttx/arch/avr/src/at91uc3/at91uc3b_pinmux.h)526
-rw-r--r--[-rwxr-xr-x]nuttx/arch/avr/src/at32uc3/chip.h (renamed from nuttx/arch/avr/src/at91uc3/chip.h)58
36 files changed, 583 insertions, 583 deletions
diff --git a/nuttx/arch/README.txt b/nuttx/arch/README.txt
index b93474e81..21296e994 100644
--- a/nuttx/arch/README.txt
+++ b/nuttx/arch/README.txt
@@ -229,9 +229,9 @@ arch/avr
arch/avr/include/avr32 and arch/avr/src/avr32
Common support for all AVR32 MCUs
- arch/avr/include/at91uc3 and arch/avr/src/at91uc3
- Support specifically for the AT91UC3Bxxx family (specifically only for
- the AT91UC3B0256 at the moment).
+ arch/avr/include/at32uc3 and arch/avr/src/at32uc3
+ Support specifically for the AT32UC3Bxxx family (specifically only for
+ the AT32UC3B0256 at the moment).
arch/hc
This directory is dedicated to ports to the Freescale HC family.
diff --git a/nuttx/arch/avr/include/at91uc3/irq.h b/nuttx/arch/avr/include/at32uc3/irq.h
index 09e94dfa4..01fc5f265 100755
--- a/nuttx/arch/avr/include/at91uc3/irq.h
+++ b/nuttx/arch/avr/include/at32uc3/irq.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * arch/avr/include/at91uc3/irq.h
+ * arch/avr/include/at32uc3/irq.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -37,8 +37,8 @@
* only indirectly through nuttx/irq.h
*/
-#ifndef __ARCH_AVR_INCLUDE_AT91UC3_IRQ_H
-#define __ARCH_AVR_INCLUDE_AT91UC3_IRQ_H
+#ifndef __ARCH_AVR_INCLUDE_AT32UC3_IRQ_H
+#define __ARCH_AVR_INCLUDE_AT32UC3_IRQ_H
/****************************************************************************
* Included Files
@@ -118,7 +118,7 @@
* number takes priority."
*/
-/* Only 19 groups (0-18) are used with the AT91UC3A/B: */
+/* Only 19 groups (0-18) are used with the AT32UC3A/B: */
#define AVR32_IRQ_INTPRIOS 4 /* 4 interrupt priorities */
#define AVR32_IRQ_MAXGROUPS 64 /* Architecture supports up to 64 groups */
@@ -631,5 +631,5 @@ extern "C" {
#endif
#endif
-#endif /* __ARCH_AVR_INCLUDE_AT91UC3_IRQ_H */
+#endif /* __ARCH_AVR_INCLUDE_AT32UC3_IRQ_H */
diff --git a/nuttx/arch/avr/src/at91uc3/Make.defs b/nuttx/arch/avr/src/at32uc3/Make.defs
index 6e2054a2a..94dc5d2dc 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/Make.defs
+++ b/nuttx/arch/avr/src/at32uc3/Make.defs
@@ -1,5 +1,5 @@
############################################################################
-# arch/avr/src/at91uc3/Make.defs
+# arch/avr/src/at32uc3/Make.defs
#
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -48,17 +48,17 @@ CMN_CSRCS = up_assert.c up_allocateheap.c up_blocktask.c up_copystate.c \
up_schedulesigaction.c up_sigdeliver.c up_unblocktask.c \
up_usestack.c up_doirq.c
-# Required AT91UC3 files
+# Required AT32UC3 files
CHIP_ASRCS =
-CHIP_CSRCS = at91uc3_clkinit.c at91uc3_gpio.c at91uc3_irq.c \
- at91uc3_lowconsole.c at91uc3_lowinit.c at91uc3_serial.c \
- at91uc3_timerisr.c
+CHIP_CSRCS = at32uc3_clkinit.c at32uc3_gpio.c at32uc3_irq.c \
+ at32uc3_lowconsole.c at32uc3_lowinit.c at32uc3_serial.c \
+ at32uc3_timerisr.c
-# Configuration-dependent AT91UC3 files
+# Configuration-dependent AT32UC3 files
ifeq ($(CONFIG_AVR32_GPIOIRQ),y)
-CHIP_CSRCS += at91uc3_gpioirq.c
+CHIP_CSRCS += at32uc3_gpioirq.c
endif
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_abdac.h b/nuttx/arch/avr/src/at32uc3/at32uc3_abdac.h
index 4f398db35..f71229f89 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_abdac.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_abdac.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_abdac.h
+ * arch/avr/src/at32uc3/at32uc3_abdac.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_ABDAC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_ABDAC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_ABDAC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_ABDAC_H
/************************************************************************************
* Included Files
@@ -97,5 +97,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_ABDAC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_ABDAC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_adc.h b/nuttx/arch/avr/src/at32uc3/at32uc3_adc.h
index cd43f4e4f..7695e6e65 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_adc.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_adc.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_adc.h
+ * arch/avr/src/at32uc3/at32uc3_adc.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_ADC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_ADC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_ADC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_ADC_H
/************************************************************************************
* Included Files
@@ -191,5 +191,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_ADC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_ADC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_clkinit.c b/nuttx/arch/avr/src/at32uc3/at32uc3_clkinit.c
index 1252021e9..3f2c7c096 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_clkinit.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_clkinit.c
@@ -1,5 +1,5 @@
/**************************************************************************
- * arch/avr/src/at91uc3/at91uc3_clkinit.c
+ * arch/avr/src/at32uc3/at32uc3_clkinit.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -43,11 +43,11 @@
#include "up_arch.h"
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include "up_internal.h"
-#include "at91uc3_internal.h"
-#include "at91uc3_pm.h"
-#include "at91uc3_flashc.h"
+#include "at32uc3_internal.h"
+#include "at32uc3_pm.h"
+#include "at32uc3_flashc.h"
/**************************************************************************
* Private Definitions
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_config.h b/nuttx/arch/avr/src/at32uc3/at32uc3_config.h
index eed6d3f0f..004c8b2d1 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_config.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_config.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_config.h
+ * arch/avr/src/at32uc3/at32uc3_config.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_CONFIG_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_CONFIG_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_CONFIG_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_CONFIG_H
/************************************************************************************
* Included Files
@@ -67,7 +67,7 @@
/* Not all USART features are supported on all chips or all USARTS */
-#ifdef CONFIG_ARCH_CHIP_AT91UC3B
+#ifdef CONFIG_ARCH_CHIP_AT32UC3B
# undef CONFIG_AVR32_USART0_RS485
# undef CONFIG_AVR32_USART0_MAN
# undef CONFIG_AVR32_USART0_MODEM
@@ -172,5 +172,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_CONFIG_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_CONFIG_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_eic.h b/nuttx/arch/avr/src/at32uc3/at32uc3_eic.h
index dc6b31a02..505d0b84b 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_eic.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_eic.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_eic.h
+ * arch/avr/src/at32uc3/at32uc3_eic.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_EIC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_EIC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_EIC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_EIC_H
/************************************************************************************
* Included Files
@@ -129,5 +129,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_EIC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_EIC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_flashc.h b/nuttx/arch/avr/src/at32uc3/at32uc3_flashc.h
index 1d0d41884..45df326ba 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_flashc.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_flashc.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_flashc.h
+ * arch/avr/src/at32uc3/at32uc3_flashc.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_FLASHC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_FLASHC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_FLASHC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_FLASHC_H
/************************************************************************************
* Included Files
@@ -225,5 +225,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_FLASHC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_FLASHC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_gpio.c b/nuttx/arch/avr/src/at32uc3/at32uc3_gpio.c
index 82055ea84..4ca7b7b2e 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_gpio.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_gpio.c
@@ -1,5 +1,5 @@
/**************************************************************************
- * arch/avr/src/at91uc3/at91uc3_gpio.c
+ * arch/avr/src/at32uc3/at32uc3_gpio.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -42,13 +42,13 @@
#include <sys/types.h>
#include <assert.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include "up_internal.h"
-#include "at91uc3_internal.h"
+#include "at32uc3_internal.h"
#include "up_arch.h"
#include "chip.h"
-#include "at91uc3_gpio.h"
+#include "at32uc3_gpio.h"
/**************************************************************************
* Private Definitions
@@ -104,14 +104,14 @@ static uint32_t g_portmap[AVR32_NGPIO_PORTS] =
**************************************************************************/
/************************************************************************************
- * Name: at91uc3_configgpio
+ * Name: at32uc3_configgpio
*
* Description:
* Configure a GPIO pin based on bit-encoded description of the pin.
*
************************************************************************************/
-int at91uc3_configgpio(uint16_t cfgset)
+int at32uc3_configgpio(uint16_t cfgset)
{
unsigned int port;
unsigned int pin;
@@ -227,14 +227,14 @@ int at91uc3_configgpio(uint16_t cfgset)
}
/************************************************************************************
- * Name: at91uc3_gpiowrite
+ * Name: at32uc3_gpiowrite
*
* Description:
* Write one or zero to the selected GPIO pin
*
************************************************************************************/
-void at91uc3_gpiowrite(uint16_t pinset, bool value)
+void at32uc3_gpiowrite(uint16_t pinset, bool value)
{
unsigned int port;
unsigned int pin;
@@ -265,14 +265,14 @@ void at91uc3_gpiowrite(uint16_t pinset, bool value)
}
/************************************************************************************
- * Name: at91uc3_gpioread
+ * Name: at32uc3_gpioread
*
* Description:
* Read one or zero from the selected GPIO pin
*
************************************************************************************/
-bool at91uc3_gpioread(uint16_t pinset)
+bool at32uc3_gpioread(uint16_t pinset)
{
unsigned int port;
unsigned int pin;
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_gpio.h b/nuttx/arch/avr/src/at32uc3/at32uc3_gpio.h
index d049d48e6..b5f377efb 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_gpio.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_gpio.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_gpio.h
+ * arch/avr/src/at32uc3/at32uc3_gpio.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_GPIO_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_GPIO_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_GPIO_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_GPIO_H
/************************************************************************************
* Included Files
@@ -461,5 +461,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_GPIO_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_GPIO_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_gpioirq.c b/nuttx/arch/avr/src/at32uc3/at32uc3_gpioirq.c
index 0a74225ec..0e05bf02a 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_gpioirq.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_gpioirq.c
@@ -1,6 +1,6 @@
/****************************************************************************
- * arch/avr/src/at91uc3/at91uc3_gpioirq.c
- * arch/avr/src/chip/at91uc3_gpioirq.c
+ * arch/avr/src/at32uc3/at32uc3_gpioirq.c
+ * arch/avr/src/chip/at32uc3_gpioirq.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -39,7 +39,7 @@
****************************************************************************/
#include <nuttx/config.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include <stdint.h>
#include <string.h>
@@ -52,8 +52,8 @@
#include "up_arch.h"
#include "os_internal.h"
#include "irq_internal.h"
-#include "at91uc3_internal.h"
-#include "at91uc3_gpio.h"
+#include "at32uc3_internal.h"
+#include "at32uc3_gpio.h"
#ifdef CONFIG_AVR32_GPIOIRQ
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_hmatrix.h b/nuttx/arch/avr/src/at32uc3/at32uc3_hmatrix.h
index 379d6bf6c..6190fe3de 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_hmatrix.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_hmatrix.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_hmatrix.h
+ * arch/avr/src/at32uc3/at32uc3_hmatrix.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_HMATRIX_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_HMATRIX_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_HMATRIX_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_HMATRIX_H
/************************************************************************************
* Included Files
@@ -310,5 +310,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_HMATRIX_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_HMATRIX_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_intc.h b/nuttx/arch/avr/src/at32uc3/at32uc3_intc.h
index 9991f5e53..700b27459 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_intc.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_intc.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_intc.h
+ * arch/avr/src/at32uc3/at32uc3_intc.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_INTC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_INTC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_INTC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_INTC_H
/************************************************************************************
* Included Files
@@ -94,5 +94,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_INTC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_INTC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_internal.h b/nuttx/arch/avr/src/at32uc3/at32uc3_internal.h
index d429df50a..07a2e9136 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_internal.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_internal.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * arch/avr/src/at91uc3b/at91uc3_internal.h
+ * arch/avr/src/at32uc3b/at32uc3_internal.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,15 +33,15 @@
*
****************************************************************************/
-#ifndef __ARCH_AVR_SRC_AVR32_AT91UC3_INTERNAL_H
-#define __ARCH_AVR_SRC_AVR32_AT91UC3_INTERNAL_H
+#ifndef __ARCH_AVR_SRC_AVR32_AT32UC3_INTERNAL_H
+#define __ARCH_AVR_SRC_AVR32_AT32UC3_INTERNAL_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#ifdef CONFIG_AVR32_GPIOIRQ
# include <nuttx/irq.h>
@@ -54,7 +54,7 @@
* Pre-processor Definitions
****************************************************************************/
-/* Bit-encoded input to at91uc3_configgpio() ********************************/
+/* Bit-encoded input to at32uc3_configgpio() ********************************/
/* 16-bit Encoding:
* PERIPHERAL: FMMI UXXG PPPB BBBB with G=0
@@ -229,34 +229,34 @@ EXTERN void up_consoleinit(void);
EXTERN void up_boardinitialize(void);
/****************************************************************************
- * Name: at91uc3_configgpio
+ * Name: at32uc3_configgpio
*
* Description:
* Configure a GPIO pin based on bit-encoded description of the pin.
*
****************************************************************************/
-EXTERN int at91uc3_configgpio(uint16_t cfgset);
+EXTERN int at32uc3_configgpio(uint16_t cfgset);
/****************************************************************************
- * Name: at91uc3_gpiowrite
+ * Name: at32uc3_gpiowrite
*
* Description:
* Write one or zero to the selected GPIO pin
*
****************************************************************************/
-EXTERN void at91uc3_gpiowrite(uint16_t pinset, bool value);
+EXTERN void at32uc3_gpiowrite(uint16_t pinset, bool value);
/****************************************************************************
- * Name: at91uc3_gpioread
+ * Name: at32uc3_gpioread
*
* Description:
* Read one or zero from the selected GPIO pin
*
****************************************************************************/
-EXTERN bool at91uc3_gpioread(uint16_t pinset);
+EXTERN bool at32uc3_gpioread(uint16_t pinset);
/****************************************************************************
* Name: gpio_irqinitialize
@@ -340,5 +340,5 @@ EXTERN void gpio_irqdisable(int irq);
#endif
#endif /* __ASSEMBLY__ */
-#endif /* __ARCH_AVR_SRC_AVR32_AT91UC3_INTERNAL_H */
+#endif /* __ARCH_AVR_SRC_AVR32_AT32UC3_INTERNAL_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_irq.c b/nuttx/arch/avr/src/at32uc3/at32uc3_irq.c
index 6791c1fb3..29fedf057 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_irq.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_irq.c
@@ -1,6 +1,6 @@
/****************************************************************************
- * arch/avr/src/at91uc3_/at91uc3_irq.c
- * arch/avr/src/chip/at91uc3_irq.c
+ * arch/avr/src/at32uc3_/at32uc3_irq.c
+ * arch/avr/src/chip/at32uc3_irq.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -39,7 +39,7 @@
****************************************************************************/
#include <nuttx/config.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include <stdint.h>
#include <errno.h>
@@ -52,10 +52,10 @@
#include "up_arch.h"
#include "os_internal.h"
#include "up_internal.h"
-#include "at91uc3_internal.h"
+#include "at32uc3_internal.h"
#include "chip.h"
-#include "at91uc3_intc.h"
+#include "at32uc3_intc.h"
/****************************************************************************
* Definitions
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_lowconsole.c b/nuttx/arch/avr/src/at32uc3/at32uc3_lowconsole.c
index 4b2ba02b7..641d7bffe 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_lowconsole.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_lowconsole.c
@@ -1,5 +1,5 @@
/******************************************************************************
- * arch/avr/src/at91uc3/at91uc3_lowconsole.c
+ * arch/avr/src/at32uc3/at32uc3_lowconsole.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -38,7 +38,7 @@
******************************************************************************/
#include <nuttx/config.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include <assert.h>
#include <debug.h>
@@ -48,9 +48,9 @@
#include "up_arch.h"
#include "up_internal.h"
-#include "at91uc3_internal.h"
-#include "at91uc3_usart.h"
-#include "at91uc3_pinmux.h"
+#include "at32uc3_internal.h"
+#include "at32uc3_usart.h"
+#include "at32uc3_pinmux.h"
/******************************************************************************
* Private Definitions
@@ -315,8 +315,8 @@ void up_consoleinit(void)
* and {PINMUX_USART_0TXD_1, PINMUX_USART0_TXD_2}, respectively.
*/
- at91uc3_configgpio(PINMUX_USART0_RXD);
- at91uc3_configgpio(PINMUX_USART0_TXD);
+ at32uc3_configgpio(PINMUX_USART0_RXD);
+ at32uc3_configgpio(PINMUX_USART0_TXD);
#endif
#ifdef CONFIG_AVR32_USART1_RS232
@@ -326,8 +326,8 @@ void up_consoleinit(void)
* PINMUX_USART1_TXD_3}, respectively.
*/
- at91uc3_configgpio(PINMUX_USART1_RXD);
- at91uc3_configgpio(PINMUX_USART1_TXD);
+ at32uc3_configgpio(PINMUX_USART1_RXD);
+ at32uc3_configgpio(PINMUX_USART1_TXD);
#endif
#ifdef CONFIG_AVR32_USART2_RS232
@@ -336,8 +336,8 @@ void up_consoleinit(void)
* and {PINMUX_USART2_TXD_1, PINMUX_USART2_TXD_2}, respectively.
*/
- at91uc3_configgpio(PINMUX_USART2_RXD);
- at91uc3_configgpio(PINMUX_USART2_TXD);
+ at32uc3_configgpio(PINMUX_USART2_RXD);
+ at32uc3_configgpio(PINMUX_USART2_TXD);
#endif
/* Then configure the console here (if it is not going to be configured
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_lowinit.c b/nuttx/arch/avr/src/at32uc3/at32uc3_lowinit.c
index 549d79b99..d8d62488a 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_lowinit.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_lowinit.c
@@ -1,5 +1,5 @@
/**************************************************************************
- * arch/avr/src/at91uc3/at91uc3_lowinit.c
+ * arch/avr/src/at32uc3/at32uc3_lowinit.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -39,9 +39,9 @@
#include <nuttx/config.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include "up_internal.h"
-#include "at91uc3_internal.h"
+#include "at32uc3_internal.h"
/**************************************************************************
* Private Definitions
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_memorymap.h b/nuttx/arch/avr/src/at32uc3/at32uc3_memorymap.h
index b5d930fec..dfe31ee27 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_memorymap.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_memorymap.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_memorymap.h
+ * arch/avr/src/at32uc3/at32uc3_memorymap.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_MEMORYMAP_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_MEMORYMAP_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_MEMORYMAP_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_MEMORYMAP_H
/************************************************************************************
* Included Files
@@ -67,9 +67,9 @@
/* Reset vector addess */
-#if defined(CONFIG_ARCH_CHIP_AT91UC3A)
+#if defined(CONFIG_ARCH_CHIP_AT32UC3A)
# define AVR32_VECTOR_BASE AVR32_P1_BASE
-#elif defined(CONFIG_ARCH_CHIP_AT91UC3B)
+#elif defined(CONFIG_ARCH_CHIP_AT32UC3B)
# define AVR32_VECTOR_BASE AVR32_P2_BASE
#else
# warning "Unknown vector base address"
@@ -110,5 +110,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_MEMORYMAP_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_MEMORYMAP_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_pdca.h b/nuttx/arch/avr/src/at32uc3/at32uc3_pdca.h
index ca5b6da3c..7a6c3bfe1 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_pdca.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_pdca.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_pdca.h
+ * arch/avr/src/at32uc3/at32uc3_pdca.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_PDCA_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_PDCA_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_PDCA_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_PDCA_H
/************************************************************************************
* Included Files
@@ -273,5 +273,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_PDCA_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_PDCA_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_pinmux.h b/nuttx/arch/avr/src/at32uc3/at32uc3_pinmux.h
index 94fd7e89b..0c55fb94c 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_pinmux.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_pinmux.h
@@ -1,71 +1,71 @@
-/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_pinmux.h
- *
- * Copyright (C) 2010 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ************************************************************************************/
-
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_PINMUX_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_PINMUX_H
-
-/************************************************************************************
- * Included Files
- ************************************************************************************/
-
-#include <nuttx/config.h>
-#include "chip.h"
-
-#if defined(CONFIG_ARCH_CHIP_AT91UC3B)
-# include "at91uc3b_pinmux.h"
-#elif defined(CONFIG_ARCH_CHIP_AT91UC3A)
-# include "at91uc3a_pinmux.h"
-#else
-# error "Unknown AVR32 chip"
-#endif
-
-/************************************************************************************
- * Pre-processor Definitions
- ************************************************************************************/
-
-/************************************************************************************
- * Public Types
- ************************************************************************************/
-
-/************************************************************************************
- * Public Data
- ************************************************************************************/
-
-/************************************************************************************
- * Public Functions
- ************************************************************************************/
-
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_PINMUX_H */
-
+/************************************************************************************
+ * arch/avr/src/at32uc3/at32uc3_pinmux.h
+ *
+ * Copyright (C) 2010 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ************************************************************************************/
+
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_PINMUX_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_PINMUX_H
+
+/************************************************************************************
+ * Included Files
+ ************************************************************************************/
+
+#include <nuttx/config.h>
+#include "chip.h"
+
+#if defined(CONFIG_ARCH_CHIP_AT32UC3B)
+# include "at32uc3b_pinmux.h"
+#elif defined(CONFIG_ARCH_CHIP_AT32UC3A)
+# include "at32uc3a_pinmux.h"
+#else
+# error "Unknown AVR32 chip"
+#endif
+
+/************************************************************************************
+ * Pre-processor Definitions
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Types
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Data
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Functions
+ ************************************************************************************/
+
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_PINMUX_H */
+
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_pm.h b/nuttx/arch/avr/src/at32uc3/at32uc3_pm.h
index ddb73c07a..786cf1d68 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_pm.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_pm.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_pm.h
+ * arch/avr/src/at32uc3/at32uc3_pm.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_PM_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_PM_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_PM_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_PM_H
/************************************************************************************
* Included Files
@@ -331,5 +331,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_PM_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_PM_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_pwm.h b/nuttx/arch/avr/src/at32uc3/at32uc3_pwm.h
index 2907dd082..e2dee47e5 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_pwm.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_pwm.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_pwm.h
+ * arch/avr/src/at32uc3/at32uc3_pwm.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_PWM_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_PWM_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_PWM_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_PWM_H
/************************************************************************************
* Included Files
@@ -218,5 +218,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_PWM_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_PWM_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_rtc.h b/nuttx/arch/avr/src/at32uc3/at32uc3_rtc.h
index 6b9fdd3e2..1a861d0bc 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_rtc.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_rtc.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_rtc.h
+ * arch/avr/src/at32uc3/at32uc3_rtc.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_RTC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_RTC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_RTC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_RTC_H
/************************************************************************************
* Included Files
@@ -108,5 +108,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_RTC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_RTC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_serial.c b/nuttx/arch/avr/src/at32uc3/at32uc3_serial.c
index b80559979..7ed9d4b95 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_serial.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_serial.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * arch/avr/src/at91uc3/at91uc3_serial.c
+ * arch/avr/src/at32uc3/at32uc3_serial.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -54,13 +54,13 @@
#include <arch/board/board.h>
-#include "at91uc3_config.h"
+#include "at32uc3_config.h"
#include "chip.h"
-#include "at91uc3_usart.h"
+#include "at32uc3_usart.h"
#include "up_arch.h"
#include "up_internal.h"
#include "os_internal.h"
-#include "at91uc3_internal.h"
+#include "at32uc3_internal.h"
/****************************************************************************
* Definitions
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_spi.h b/nuttx/arch/avr/src/at32uc3/at32uc3_spi.h
index 1f90372eb..c2a4b99d3 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_spi.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_spi.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_spi.h
+ * arch/avr/src/at32uc3/at32uc3_spi.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_SPI_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_SPI_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_SPI_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_SPI_H
/************************************************************************************
* Included Files
@@ -162,5 +162,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_SPI_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_SPI_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_ssc.h b/nuttx/arch/avr/src/at32uc3/at32uc3_ssc.h
index 39fd1cbd2..fa67d4714 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_ssc.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_ssc.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_ssc.h
+ * arch/avr/src/at32uc3/at32uc3_ssc.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_SSC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_SSC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_SSC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_SSC_H
/************************************************************************************
* Included Files
@@ -263,5 +263,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_SSC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_SSC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_tc.h b/nuttx/arch/avr/src/at32uc3/at32uc3_tc.h
index 98d5b9b13..f615d1b93 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_tc.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_tc.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_tc.h
+ * arch/avr/src/at32uc3/at32uc3_tc.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_TC_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_TC_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_TC_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_TC_H
/************************************************************************************
* Included Files
@@ -368,5 +368,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_TC_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_TC_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_timerisr.c b/nuttx/arch/avr/src/at32uc3/at32uc3_timerisr.c
index e38648952..7630f03d0 100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_timerisr.c
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_timerisr.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * arch/avr/src/at91uc3/at91uc3_timerisr.c
+ * arch/avr/src/at32uc3/at32uc3_timerisr.c
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -47,8 +47,8 @@
#include "up_arch.h"
#include "chip.h"
-#include "at91uc3_internal.h"
-#include "at91uc3_rtc.h"
+#include "at32uc3_internal.h"
+#include "at32uc3_rtc.h"
/****************************************************************************
* Definitions
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_twi.h b/nuttx/arch/avr/src/at32uc3/at32uc3_twi.h
index 6171db9e7..afec99fb1 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_twi.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_twi.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_twi.h
+ * arch/avr/src/at32uc3/at32uc3_twi.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_TWI_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_TWI_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_TWI_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_TWI_H
/************************************************************************************
* Included Files
@@ -157,5 +157,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_TWI_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_TWI_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_usart.h b/nuttx/arch/avr/src/at32uc3/at32uc3_usart.h
index f06eb0b3a..350946321 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_usart.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_usart.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_usart.h
+ * arch/avr/src/at32uc3/at32uc3_usart.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_USART_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_USART_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_USART_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_USART_H
/************************************************************************************
* Included Files
@@ -335,5 +335,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_USART_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_USART_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_usbb.h b/nuttx/arch/avr/src/at32uc3/at32uc3_usbb.h
index a3e437773..b6bc1765a 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_usbb.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_usbb.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_usbb.h
+ * arch/avr/src/at32uc3/at32uc3_usbb.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_USBB_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_USBB_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_USBB_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_USBB_H
/************************************************************************************
* Included Files
@@ -1094,5 +1094,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_USBB_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_USBB_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3_wdt.h b/nuttx/arch/avr/src/at32uc3/at32uc3_wdt.h
index c1c68149c..384e67265 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3_wdt.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3_wdt.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3_wdt.h
+ * arch/avr/src/at32uc3/at32uc3_wdt.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3_WDT_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3_WDT_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3_WDT_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3_WDT_H
/************************************************************************************
* Included Files
@@ -83,5 +83,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_WDT_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_WDT_H */
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3a_pinmux.h b/nuttx/arch/avr/src/at32uc3/at32uc3a_pinmux.h
index 630fc47a9..124d056d6 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3a_pinmux.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3a_pinmux.h
@@ -1,64 +1,64 @@
-/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3a_pinmux.h
- *
- * Copyright (C) 2010 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ************************************************************************************/
-
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3A_PINMUX_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3A_PINMUX_H
-
-/************************************************************************************
- * Included Files
- ************************************************************************************/
-
-#include <nuttx/config.h>
-
-/************************************************************************************
- * Pre-processor Definitions
- ************************************************************************************/
-
-#warning "Not Implemented"
-
-/************************************************************************************
- * Public Types
- ************************************************************************************/
-
-/************************************************************************************
- * Public Data
- ************************************************************************************/
-
-/************************************************************************************
- * Public Functions
- ************************************************************************************/
-
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3_PINMUX_H */
-
+/************************************************************************************
+ * arch/avr/src/at32uc3/at32uc3a_pinmux.h
+ *
+ * Copyright (C) 2010 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ************************************************************************************/
+
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3A_PINMUX_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3A_PINMUX_H
+
+/************************************************************************************
+ * Included Files
+ ************************************************************************************/
+
+#include <nuttx/config.h>
+
+/************************************************************************************
+ * Pre-processor Definitions
+ ************************************************************************************/
+
+#warning "Not Implemented"
+
+/************************************************************************************
+ * Public Types
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Data
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Functions
+ ************************************************************************************/
+
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_PINMUX_H */
+
diff --git a/nuttx/arch/avr/src/at91uc3/at91uc3b_pinmux.h b/nuttx/arch/avr/src/at32uc3/at32uc3b_pinmux.h
index ffa4cff20..352af2635 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/at91uc3b_pinmux.h
+++ b/nuttx/arch/avr/src/at32uc3/at32uc3b_pinmux.h
@@ -1,263 +1,263 @@
-/************************************************************************************
- * arch/avr/src/at91uc3/at91uc3b_pinmux.h
- *
- * Copyright (C) 2010 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- ************************************************************************************/
-
-#ifndef __ARCH_AVR_SRC_AT91UC3_AT91UC3B_PINMUX_H
-#define __ARCH_AVR_SRC_AT91UC3_AT91UC3B_PINMUX_H
-
-/************************************************************************************
- * Included Files
- ************************************************************************************/
-
-#include <nuttx/config.h>
-
-/************************************************************************************
- * Pre-processor Definitions
- ************************************************************************************/
-
-/* NOTES:
- * 1. No external pins for PA28-PA31, PB0-PB11 on 48-pin packages (UC3B1).
- * 2. Function D is available only on UC3Bx12.
- * 3. In the cases where there are multiple alternatives (such as PINMUX_USART0_RXD_1
- * and PINMUX_USART0_RXD_2) the correct multiplexing must be selected in the board.h
- * file (by defining PINMUX_USART0_RXD to be INMUX_USART0_RXD_1, for example).
- */
-
-#define PINMUX_GPIO0 (GPIO_ENABLE | GPIO_PORTA | 0)
-#define PINMUX_GPIO1 (GPIO_ENABLE | GPIO_PORTA | 1)
-#define PINMUX_GPIO2 (GPIO_ENABLE | GPIO_PORTA | 2)
-#define PINMUX_GPIO3 (GPIO_ENABLE | GPIO_PORTA | 3)
-#define PINMUX_ADC_AD0 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 3)
-#define PINMUX_PM_GCLK0 U (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 3)
-#define PINMUX_SBB_USB_ID (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 3)
-#define PINMUX_ABDAC_DATA0_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 3)
-#define PINMUX_GPIO4 (GPIO_ENABLE | GPIO_PORTA | 4)
-#define PINMUX_ADC_AD1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 4)
-#define PINMUX_M_GCLK1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 4)
-#define PINMUX_USBB_USB_VBOF_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 4)
-#define PINMUX_ABDAC_DATAN0_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 4)
-#define PINMUX_GPIO5 (GPIO_ENABLE | GPIO_PORTA | 5)
-#define PINMUX_EIC_EXTINT0 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 5)
-#define PINMUX_ADC_AD2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 5)
-#define PINMUX_USART1_DCD_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 5)
-#define PINMUX_ABDAC_DATA1_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 5)
-#define PINMUX_GPIO6 (GPIO_ENABLE | GPIO_PORTA | 6)
-#define PINMUX_EIC_EXTINT1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 6)
-#define PINMUX_ADC_AD3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 6)
-#define PINMUX_USART1_DSR_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 6)
-#define PINMUX_ABDAC_DATAN1_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 6)
-#define PINMUX_GPIO7 (GPIO_ENABLE | GPIO_PORTA | 7)
-#define PINMUX_PM_PWM0 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 7)
-#define PINMUX_ADC_AD4 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 7)
-#define PINMUX_USART1_DTR_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 7)
-#define PINMUX_SSC_RX_FRAME_SYNC (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 7)
-#define PINMUX_GPIO8 (GPIO_ENABLE | GPIO_PORTA | 8)
-#define PINMUX_PWM_PWM1_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 8)
-#define PINMUX_ADC_AD5 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 8)
-#define PINMUX_USART1_RI_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 8)
-#define PINMUX_SSC_RX_CLOCK_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 8)
-#define PINMUX_GPIO9 (GPIO_ENABLE | GPIO_PORTA | 9)
-#define PINMUX_TWI_SCL (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 9)
-#define PINMUX_SPI0_NPCS2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 9)
-#define PINMUX_USART1_CTS_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 9)
-#define PINMUX_GPIO10 (GPIO_ENABLE | GPIO_PORTA | 10)
-#define PINMUX_TWI_SDA (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 10)
-#define PINMUX_SPI0_NPCS3_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 10)
-#define PINMUX_USART1_RTS_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 10)
-#define PINMUX_GPIO11 (GPIO_ENABLE | GPIO_PORTA | 11)
-#define PINMUX_USART0_RTS (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 11)
-#define PINMUX_TC_A2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 11)
-#define PINMUX_PWM_PWM0_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 11)
-#define PINMUX_SSC_RX_DATA_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 11)
-#define PINMUX_GPIO12 (GPIO_ENABLE | GPIO_PORTA | 12)
-#define PINMUX_USART0_CTS (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 12)
-#define PINMUX_TC_B2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 12)
-#define PINMUX_PWM_PWM1_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 12)
-#define PINMUX_USART1_TXD_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 12)
-#define PINMUX_GPIO13 (GPIO_ENABLE | GPIO_PORTA | 13)
-#define PINMUX_EIC_NMI (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 13)
-#define PINMUX_PWM_PWM2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 13)
-#define PINMUX_USART0_CLK_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 13)
-#define PINMUX_SSC_RX_CLOCK_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 13)
-#define PINMUX_GPIO14 (GPIO_ENABLE | GPIO_PORTA | 14)
-#define PINMUX_SPI0_MOSI_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 14)
-#define PINMUX_PWM_PWM3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 14)
-#define PINMUX_EIC_EXTINT2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 14)
-#define PINMUX_PM_GCLK2_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 14)
-#define PINMUX_GPIO15 (GPIO_ENABLE | GPIO_PORTA | 15)
-#define PINMUX_SPI0_SCK_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 15)
-#define PINMUX_PWM_PWM4_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 15)
-#define PINMUX_USART2_CLK (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 15)
-#define PINMUX_GPIO16 (GPIO_ENABLE | GPIO_PORTA | 16)
-#define PINMUX_SPI0_NPCS0_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 16)
-#define PINMUX_TC_CLK1_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 16)
-#define PINMUX_PWM_PWM4_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 16)
-#define PINMUX_GPIO17 (GPIO_ENABLE | GPIO_PORTA | 17)
-#define PINMUX_SPI0_NPCS1_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 17)
-#define PINMUX_TC_CLK2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 17)
-#define PINMUX_SPI0_SCK_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 17)
-#define PINMUX_USART1_RXD_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 17)
-#define PINMUX_GPIO18 (GPIO_ENABLE | GPIO_PORTA | 18)
-#define PINMUX_USART0_RXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 18)
-#define PINMUX_PWM_PWM5 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 18)
-#define PINMUX_SPI0_MISO_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 18)
-#define PINMUX_SSC_RX_FRAME_SYNC_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 18)
-#define PINMUX_GPIO19 (GPIO_ENABLE | GPIO_PORTA | 19)
-#define PINMUX_USART0_TXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 19)
-#define PINMUX_PWM_PWM6_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 19)
-#define PINMUX_SPI0_MOSI_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 19)
-#define PINMUX_SSC_TX_CLOCK_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 19)
-#define PINMUX_GPIO20 (GPIO_ENABLE | GPIO_PORTA | 20)
-#define PINMUX_USART1_CLK (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 20)
-#define PINMUX_TC_CLK0_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 20)
-#define PINMUX_USART2_RXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 20)
-#define PINMUX_SSC_TX_DATA_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 20)
-#define PINMUX_GPIO21 (GPIO_ENABLE | GPIO_PORTA | 21)
-#define PINMUX_PWM_PWM2_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 21)
-#define PINMUX_TC_A1_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 21)
-#define PINMUX_USART2_TXD_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 21)
-#define PINMUX_SSC_TX_FRAME_SYNC_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 21)
-#define PINMUX_GPIO22 (GPIO_ENABLE | GPIO_PORTA | 22)
-#define PINMUX_PWM_PWM6_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 22)
-#define PINMUX_TC_B1_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 22)
-#define PINMUX_ADC_TRIGGER (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 22)
-#define PINMUX_ABDAC_DATA0_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 22)
-#define PINMUX_GPIO23 (GPIO_ENABLE | GPIO_PORTA | 23)
-#define PINMUX_USART1_TXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 23)
-#define PINMUX_SPI0_NPCS1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 23)
-#define PINMUX_EIC_EXTINT3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 23)
-#define PINMUX_PWM_PWM0_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 23)
-#define PINMUX_GPIO24 (GPIO_ENABLE | GPIO_PORTA | 24)
-#define PINMUX_USART1_RXD_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 24)
-#define PINMUX_SPI0_NPCS0_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 24)
-#define PINMUX_EIC_EXTINT4 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 24)
-#define PINMUX_PWM_PWM1_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 24)
-#define PINMUX_GPIO25 (GPIO_ENABLE | GPIO_PORTA | 25)
-#define PINMUX_SPI0_MISO_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 25)
-#define PINMUX_WM_PWM3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 25)
-#define PINMUX_EIC_EXTINT5 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 25)
-#define PINMUX_GPIO26 (GPIO_ENABLE | GPIO_PORTA | 26)
-#define PINMUX_USBB_USB_ID (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 26)
-#define PINMUX_USART2_TXD_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 26)
-#define PINMUX_TC_A0_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 26)
-#define PINMUX_ABDAC_DATA1_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 26)
-#define PINMUX_GPIO27 (GPIO_ENABLE | GPIO_PORTA | 27)
-#define PINMUX_USBB_USB_VBOF_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 27)
-#define PINMUX_USART2_RXD_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 27)
-#define PINMUX_TC_B0_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 27)
-#define PINMUX_ABDAC_DATAN1_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 27)
-#define PINMUX_GPIO28 (GPIO_ENABLE | GPIO_PORTA | 28)
-#define PINMUX_USART0_CLK_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 28)
-#define PINMUX_PWM_PWM4_3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 28)
-#define PINMUX_SPI0_MISO_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 28)
-#define PINMUX_ABDAC_DATAN0_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 28)
-#define PINMUX_GPIO29 (GPIO_ENABLE | GPIO_PORTA | 29)
-#define PINMUX_TC_CLK0_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 29)
-#define PINMUX_TC_CLK1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 29)
-#define PINMUX_SPI0_MOSI_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 29)
-#define PINMUX_GPIO30 (GPIO_ENABLE | GPIO_PORTA | 30)
-#define PINMUX_ADC_AD6 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 30)
-#define PINMUX_EIC_SCAN0 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 30)
-#define PINMUX_PM_GCLK2_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 30)
-#define PINMUX_GPIO31 (GPIO_ENABLE | GPIO_PORTA | 31)
-#define PINMUX_ADC_AD7 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 31)
-#define PINMUX_EIC_SCAN1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 31)
-#define PINMUX_PWM_PWM6_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 31)
-#define PINMUX_GPIO32 (GPIO_ENABLE | GPIO_PORTB | 0)
-#define PINMUX_TC_A0_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 0)
-#define PINMUX_EIC_SCAN2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 0)
-#define PINMUX_USART2_CTS (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 0)
-#define PINMUX_GPIO33 (GPIO_ENABLE | GPIO_PORTB | 1)
-#define PINMUX_TC_B0_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 1)
-#define PINMUX_EIC_SCAN3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 1)
-#define PINMUX_USART2_RTS (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 1)
-#define PINMUX_GPIO34 (GPIO_ENABLE | GPIO_PORTB | 2)
-#define PINMUX_EIC_EXTINT6 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 2)
-#define PINMUX_TC_A1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 2)
-#define PINMUX_USART1_TXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 2)
-#define PINMUX_GPIO35 (GPIO_ENABLE | GPIO_PORTB | 3)
-#define PINMUX_EIC_EXTINT7 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 3)
-#define PINMUX_TC_B1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 3)
-#define PINMUX_USART1_RXD_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 3)
-#define PINMUX_GPIO36 (GPIO_ENABLE | GPIO_PORTB | 4)
-#define PINMUX_USART1_CTS_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 4)
-#define PINMUX_SPI0_NPCS3_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 4)
-#define PINMUX_TC_CLK2_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 4)
-#define PINMUX_GPIO37 (GPIO_ENABLE | GPIO_PORTB | 5)
-#define PINMUX_USART1_RTS_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 5)
-#define PINMUX_SPI0_NPCS2_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 5)
-#define PINMUX_WM_PWM5 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 5)
-#define PINMUX_GPIO38 (GPIO_ENABLE | GPIO_PORTB | 6)
-#define PINMUX_SSC_RX_CLOCK_3 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 6)
-#define PINMUX_USART1_DCD_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 6)
-#define PINMUX_EIC_SCAN4 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 6)
-#define PINMUX_ABDAC_DATA0_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 6)
-#define PINMUX_GPIO39 (GPIO_ENABLE | GPIO_PORTB | 7)
-#define PINMUX_SSC_RX_DATA_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 7)
-#define PINMUX_USART1_DSR_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 7)
-#define PINMUX_EIC_SCAN5 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 7)
-#define PINMUX_ABDAC_DATAN0_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 7)
-#define PINMUX_GPIO40 (GPIO_ENABLE | GPIO_PORTB | 8)
-#define PINMUX_SSC_RX_FRAME_SYNC_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 8)
-#define PINMUX_USART1_DTR_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 8)
-#define PINMUX_EIC_SCAN6 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 8)
-#define PINMUX_ABDAC_DATA1_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 8)
-#define PINMUX_GPIO41 (GPIO_ENABLE | GPIO_PORTB | 9)
-#define PINMUX_SSC_TX_CLOCK_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 9)
-#define PINMUX_USART1_RI_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 9)
-#define PINMUX_EIC_SCAN7 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 9)
-#define PINMUX_ABDAC_DATAN1_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 9)
-#define PINMUX_GPIO42 (GPIO_ENABLE | GPIO_PORTB | 10)
-#define PINMUX_SSC_TX_DATA_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 10)
-#define PINMUX_TC_A2_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 10)
-#define PINMUX_USART0_RXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 10)
-#define PINMUX_GPIO43 (GPIO_ENABLE | GPIO_PORTB | 11)
-#define PINMUX_SSC_TX_FRAME_SYNC_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 11)
-#define PINMUX_TC_B2_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 11)
-#define PINMUX_USART0_TXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 11)
-
-/************************************************************************************
- * Public Types
- ************************************************************************************/
-
-/************************************************************************************
- * Public Data
- ************************************************************************************/
-
-/************************************************************************************
- * Public Functions
- ************************************************************************************/
-
-#endif /* __ARCH_AVR_SRC_AT91UC3_AT91UC3B_PINMUX_H */
-
+/************************************************************************************
+ * arch/avr/src/at32uc3/at32uc3b_pinmux.h
+ *
+ * Copyright (C) 2010 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX nor the names of its contributors may be
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ************************************************************************************/
+
+#ifndef __ARCH_AVR_SRC_AT32UC3_AT32UC3B_PINMUX_H
+#define __ARCH_AVR_SRC_AT32UC3_AT32UC3B_PINMUX_H
+
+/************************************************************************************
+ * Included Files
+ ************************************************************************************/
+
+#include <nuttx/config.h>
+
+/************************************************************************************
+ * Pre-processor Definitions
+ ************************************************************************************/
+
+/* NOTES:
+ * 1. No external pins for PA28-PA31, PB0-PB11 on 48-pin packages (UC3B1).
+ * 2. Function D is available only on UC3Bx12.
+ * 3. In the cases where there are multiple alternatives (such as PINMUX_USART0_RXD_1
+ * and PINMUX_USART0_RXD_2) the correct multiplexing must be selected in the board.h
+ * file (by defining PINMUX_USART0_RXD to be INMUX_USART0_RXD_1, for example).
+ */
+
+#define PINMUX_GPIO0 (GPIO_ENABLE | GPIO_PORTA | 0)
+#define PINMUX_GPIO1 (GPIO_ENABLE | GPIO_PORTA | 1)
+#define PINMUX_GPIO2 (GPIO_ENABLE | GPIO_PORTA | 2)
+#define PINMUX_GPIO3 (GPIO_ENABLE | GPIO_PORTA | 3)
+#define PINMUX_ADC_AD0 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 3)
+#define PINMUX_PM_GCLK0 U (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 3)
+#define PINMUX_SBB_USB_ID (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 3)
+#define PINMUX_ABDAC_DATA0_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 3)
+#define PINMUX_GPIO4 (GPIO_ENABLE | GPIO_PORTA | 4)
+#define PINMUX_ADC_AD1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 4)
+#define PINMUX_M_GCLK1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 4)
+#define PINMUX_USBB_USB_VBOF_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 4)
+#define PINMUX_ABDAC_DATAN0_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 4)
+#define PINMUX_GPIO5 (GPIO_ENABLE | GPIO_PORTA | 5)
+#define PINMUX_EIC_EXTINT0 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 5)
+#define PINMUX_ADC_AD2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 5)
+#define PINMUX_USART1_DCD_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 5)
+#define PINMUX_ABDAC_DATA1_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 5)
+#define PINMUX_GPIO6 (GPIO_ENABLE | GPIO_PORTA | 6)
+#define PINMUX_EIC_EXTINT1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 6)
+#define PINMUX_ADC_AD3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 6)
+#define PINMUX_USART1_DSR_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 6)
+#define PINMUX_ABDAC_DATAN1_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 6)
+#define PINMUX_GPIO7 (GPIO_ENABLE | GPIO_PORTA | 7)
+#define PINMUX_PM_PWM0 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 7)
+#define PINMUX_ADC_AD4 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 7)
+#define PINMUX_USART1_DTR_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 7)
+#define PINMUX_SSC_RX_FRAME_SYNC (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 7)
+#define PINMUX_GPIO8 (GPIO_ENABLE | GPIO_PORTA | 8)
+#define PINMUX_PWM_PWM1_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 8)
+#define PINMUX_ADC_AD5 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 8)
+#define PINMUX_USART1_RI_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 8)
+#define PINMUX_SSC_RX_CLOCK_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 8)
+#define PINMUX_GPIO9 (GPIO_ENABLE | GPIO_PORTA | 9)
+#define PINMUX_TWI_SCL (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 9)
+#define PINMUX_SPI0_NPCS2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 9)
+#define PINMUX_USART1_CTS_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 9)
+#define PINMUX_GPIO10 (GPIO_ENABLE | GPIO_PORTA | 10)
+#define PINMUX_TWI_SDA (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 10)
+#define PINMUX_SPI0_NPCS3_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 10)
+#define PINMUX_USART1_RTS_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 10)
+#define PINMUX_GPIO11 (GPIO_ENABLE | GPIO_PORTA | 11)
+#define PINMUX_USART0_RTS (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 11)
+#define PINMUX_TC_A2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 11)
+#define PINMUX_PWM_PWM0_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 11)
+#define PINMUX_SSC_RX_DATA_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 11)
+#define PINMUX_GPIO12 (GPIO_ENABLE | GPIO_PORTA | 12)
+#define PINMUX_USART0_CTS (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 12)
+#define PINMUX_TC_B2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 12)
+#define PINMUX_PWM_PWM1_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 12)
+#define PINMUX_USART1_TXD_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 12)
+#define PINMUX_GPIO13 (GPIO_ENABLE | GPIO_PORTA | 13)
+#define PINMUX_EIC_NMI (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 13)
+#define PINMUX_PWM_PWM2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 13)
+#define PINMUX_USART0_CLK_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 13)
+#define PINMUX_SSC_RX_CLOCK_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 13)
+#define PINMUX_GPIO14 (GPIO_ENABLE | GPIO_PORTA | 14)
+#define PINMUX_SPI0_MOSI_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 14)
+#define PINMUX_PWM_PWM3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 14)
+#define PINMUX_EIC_EXTINT2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 14)
+#define PINMUX_PM_GCLK2_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 14)
+#define PINMUX_GPIO15 (GPIO_ENABLE | GPIO_PORTA | 15)
+#define PINMUX_SPI0_SCK_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 15)
+#define PINMUX_PWM_PWM4_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 15)
+#define PINMUX_USART2_CLK (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 15)
+#define PINMUX_GPIO16 (GPIO_ENABLE | GPIO_PORTA | 16)
+#define PINMUX_SPI0_NPCS0_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 16)
+#define PINMUX_TC_CLK1_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 16)
+#define PINMUX_PWM_PWM4_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 16)
+#define PINMUX_GPIO17 (GPIO_ENABLE | GPIO_PORTA | 17)
+#define PINMUX_SPI0_NPCS1_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 17)
+#define PINMUX_TC_CLK2_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 17)
+#define PINMUX_SPI0_SCK_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 17)
+#define PINMUX_USART1_RXD_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 17)
+#define PINMUX_GPIO18 (GPIO_ENABLE | GPIO_PORTA | 18)
+#define PINMUX_USART0_RXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 18)
+#define PINMUX_PWM_PWM5 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 18)
+#define PINMUX_SPI0_MISO_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 18)
+#define PINMUX_SSC_RX_FRAME_SYNC_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 18)
+#define PINMUX_GPIO19 (GPIO_ENABLE | GPIO_PORTA | 19)
+#define PINMUX_USART0_TXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 19)
+#define PINMUX_PWM_PWM6_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 19)
+#define PINMUX_SPI0_MOSI_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 19)
+#define PINMUX_SSC_TX_CLOCK_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 19)
+#define PINMUX_GPIO20 (GPIO_ENABLE | GPIO_PORTA | 20)
+#define PINMUX_USART1_CLK (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 20)
+#define PINMUX_TC_CLK0_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 20)
+#define PINMUX_USART2_RXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 20)
+#define PINMUX_SSC_TX_DATA_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 20)
+#define PINMUX_GPIO21 (GPIO_ENABLE | GPIO_PORTA | 21)
+#define PINMUX_PWM_PWM2_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 21)
+#define PINMUX_TC_A1_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 21)
+#define PINMUX_USART2_TXD_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 21)
+#define PINMUX_SSC_TX_FRAME_SYNC_1 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 21)
+#define PINMUX_GPIO22 (GPIO_ENABLE | GPIO_PORTA | 22)
+#define PINMUX_PWM_PWM6_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 22)
+#define PINMUX_TC_B1_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 22)
+#define PINMUX_ADC_TRIGGER (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 22)
+#define PINMUX_ABDAC_DATA0_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 22)
+#define PINMUX_GPIO23 (GPIO_ENABLE | GPIO_PORTA | 23)
+#define PINMUX_USART1_TXD_1 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 23)
+#define PINMUX_SPI0_NPCS1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 23)
+#define PINMUX_EIC_EXTINT3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 23)
+#define PINMUX_PWM_PWM0_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 23)
+#define PINMUX_GPIO24 (GPIO_ENABLE | GPIO_PORTA | 24)
+#define PINMUX_USART1_RXD_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 24)
+#define PINMUX_SPI0_NPCS0_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 24)
+#define PINMUX_EIC_EXTINT4 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 24)
+#define PINMUX_PWM_PWM1_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 24)
+#define PINMUX_GPIO25 (GPIO_ENABLE | GPIO_PORTA | 25)
+#define PINMUX_SPI0_MISO_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 25)
+#define PINMUX_WM_PWM3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 25)
+#define PINMUX_EIC_EXTINT5 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 25)
+#define PINMUX_GPIO26 (GPIO_ENABLE | GPIO_PORTA | 26)
+#define PINMUX_USBB_USB_ID (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 26)
+#define PINMUX_USART2_TXD_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 26)
+#define PINMUX_TC_A0_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 26)
+#define PINMUX_ABDAC_DATA1_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 26)
+#define PINMUX_GPIO27 (GPIO_ENABLE | GPIO_PORTA | 27)
+#define PINMUX_USBB_USB_VBOF_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 27)
+#define PINMUX_USART2_RXD_1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 27)
+#define PINMUX_TC_B0_1 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 27)
+#define PINMUX_ABDAC_DATAN1_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 27)
+#define PINMUX_GPIO28 (GPIO_ENABLE | GPIO_PORTA | 28)
+#define PINMUX_USART0_CLK_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 28)
+#define PINMUX_PWM_PWM4_3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 28)
+#define PINMUX_SPI0_MISO_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 28)
+#define PINMUX_ABDAC_DATAN0_2 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTA | 28)
+#define PINMUX_GPIO29 (GPIO_ENABLE | GPIO_PORTA | 29)
+#define PINMUX_TC_CLK0_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 29)
+#define PINMUX_TC_CLK1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 29)
+#define PINMUX_SPI0_MOSI_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 29)
+#define PINMUX_GPIO30 (GPIO_ENABLE | GPIO_PORTA | 30)
+#define PINMUX_ADC_AD6 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 30)
+#define PINMUX_EIC_SCAN0 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 30)
+#define PINMUX_PM_GCLK2_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 30)
+#define PINMUX_GPIO31 (GPIO_ENABLE | GPIO_PORTA | 31)
+#define PINMUX_ADC_AD7 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTA | 31)
+#define PINMUX_EIC_SCAN1 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTA | 31)
+#define PINMUX_PWM_PWM6_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTA | 31)
+#define PINMUX_GPIO32 (GPIO_ENABLE | GPIO_PORTB | 0)
+#define PINMUX_TC_A0_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 0)
+#define PINMUX_EIC_SCAN2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 0)
+#define PINMUX_USART2_CTS (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 0)
+#define PINMUX_GPIO33 (GPIO_ENABLE | GPIO_PORTB | 1)
+#define PINMUX_TC_B0_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 1)
+#define PINMUX_EIC_SCAN3 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 1)
+#define PINMUX_USART2_RTS (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 1)
+#define PINMUX_GPIO34 (GPIO_ENABLE | GPIO_PORTB | 2)
+#define PINMUX_EIC_EXTINT6 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 2)
+#define PINMUX_TC_A1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 2)
+#define PINMUX_USART1_TXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 2)
+#define PINMUX_GPIO35 (GPIO_ENABLE | GPIO_PORTB | 3)
+#define PINMUX_EIC_EXTINT7 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 3)
+#define PINMUX_TC_B1_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 3)
+#define PINMUX_USART1_RXD_3 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 3)
+#define PINMUX_GPIO36 (GPIO_ENABLE | GPIO_PORTB | 4)
+#define PINMUX_USART1_CTS_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 4)
+#define PINMUX_SPI0_NPCS3_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 4)
+#define PINMUX_TC_CLK2_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 4)
+#define PINMUX_GPIO37 (GPIO_ENABLE | GPIO_PORTB | 5)
+#define PINMUX_USART1_RTS_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 5)
+#define PINMUX_SPI0_NPCS2_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 5)
+#define PINMUX_WM_PWM5 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 5)
+#define PINMUX_GPIO38 (GPIO_ENABLE | GPIO_PORTB | 6)
+#define PINMUX_SSC_RX_CLOCK_3 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 6)
+#define PINMUX_USART1_DCD_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 6)
+#define PINMUX_EIC_SCAN4 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 6)
+#define PINMUX_ABDAC_DATA0_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 6)
+#define PINMUX_GPIO39 (GPIO_ENABLE | GPIO_PORTB | 7)
+#define PINMUX_SSC_RX_DATA_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 7)
+#define PINMUX_USART1_DSR_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 7)
+#define PINMUX_EIC_SCAN5 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 7)
+#define PINMUX_ABDAC_DATAN0_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 7)
+#define PINMUX_GPIO40 (GPIO_ENABLE | GPIO_PORTB | 8)
+#define PINMUX_SSC_RX_FRAME_SYNC_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 8)
+#define PINMUX_USART1_DTR_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 8)
+#define PINMUX_EIC_SCAN6 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 8)
+#define PINMUX_ABDAC_DATA1_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 8)
+#define PINMUX_GPIO41 (GPIO_ENABLE | GPIO_PORTB | 9)
+#define PINMUX_SSC_TX_CLOCK_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 9)
+#define PINMUX_USART1_RI_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 9)
+#define PINMUX_EIC_SCAN7 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 9)
+#define PINMUX_ABDAC_DATAN1_3 (GPIO_PERIPH | GPIO_FUNCD | GPIO_PORTB | 9)
+#define PINMUX_GPIO42 (GPIO_ENABLE | GPIO_PORTB | 10)
+#define PINMUX_SSC_TX_DATA_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 10)
+#define PINMUX_TC_A2_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 10)
+#define PINMUX_USART0_RXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 10)
+#define PINMUX_GPIO43 (GPIO_ENABLE | GPIO_PORTB | 11)
+#define PINMUX_SSC_TX_FRAME_SYNC_2 (GPIO_PERIPH | GPIO_FUNCA | GPIO_PORTB | 11)
+#define PINMUX_TC_B2_2 (GPIO_PERIPH | GPIO_FUNCB | GPIO_PORTB | 11)
+#define PINMUX_USART0_TXD_2 (GPIO_PERIPH | GPIO_FUNCC | GPIO_PORTB | 11)
+
+/************************************************************************************
+ * Public Types
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Data
+ ************************************************************************************/
+
+/************************************************************************************
+ * Public Functions
+ ************************************************************************************/
+
+#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3B_PINMUX_H */
+
diff --git a/nuttx/arch/avr/src/at91uc3/chip.h b/nuttx/arch/avr/src/at32uc3/chip.h
index a75302d3c..ec2351b9c 100755..100644
--- a/nuttx/arch/avr/src/at91uc3/chip.h
+++ b/nuttx/arch/avr/src/at32uc3/chip.h
@@ -1,5 +1,5 @@
/************************************************************************************
- * arch/avr/src/at91uc3/chip.h
+ * arch/avr/src/at32uc3/chip.h
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -33,8 +33,8 @@
*
************************************************************************************/
-#ifndef __ARCH_AVR_SRC_AT91UC3_CHIP_H
-#define __ARCH_AVR_SRC_AT91UC3_CHIP_H
+#ifndef __ARCH_AVR_SRC_AT32UC3_CHIP_H
+#define __ARCH_AVR_SRC_AT32UC3_CHIP_H
/************************************************************************************
* Included Files
@@ -53,9 +53,9 @@
/* UC3 B0 (64-pin) / B1 (48-pin, no USB host) Series */
-#if CONFIG_ARCH_CHIP_AT91UC3B064
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B0 1 /* UC3 B0 (64-pin) series */
+#if CONFIG_ARCH_CHIP_AT32UC3B064
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B0 1 /* UC3 B0 (64-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (64*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (16*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -71,9 +71,9 @@
# define AVR32_NOSC 2 /* Number of crystal oscillators */
# define AVR32_NADC10 8 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B0128
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B0 1 /* UC3 B0 (64-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B0128
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B0 1 /* UC3 B0 (64-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (128*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (32*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -89,9 +89,9 @@
# define AVR32_NOSC 2 /* Number of crystal oscillators */
# define AVR32_NADC10 8 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B0256
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B0 1 /* UC3 B0 (64-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B0256
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B0 1 /* UC3 B0 (64-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (256*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (32*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -107,9 +107,9 @@
# define AVR32_NOSC 2 /* Number of crystal oscillators */
# define AVR32_NADC10 8 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B0512
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B0 1 /* UC3 B0 (64-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B0512
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B0 1 /* UC3 B0 (64-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (512*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (96*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -125,9 +125,9 @@
# define AVR32_NOSC 2 /* Number of crystal oscillators */
# define AVR32_NADC10 8 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B164
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B1 1 /* UC3 B0 (48-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B164
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B1 1 /* UC3 B0 (48-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (64*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (16*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -143,9 +143,9 @@
# define AVR32_NOSC 1 /* Number of crystal oscillators */
# define AVR32_NADC10 6 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B1128
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B1 1 /* UC3 B0 (48-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B1128
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B1 1 /* UC3 B0 (48-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (128*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (32*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -161,9 +161,9 @@
# define AVR32_NOSC 1 /* Number of crystal oscillators */
# define AVR32_NADC10 6 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B1256
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B1 1 /* UC3 B0 (48-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B1256
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B1 1 /* UC3 B0 (48-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (256*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (32*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -179,9 +179,9 @@
# define AVR32_NOSC 1 /* Number of crystal oscillators */
# define AVR32_NADC10 6 /* Number of 10-bit A/D channels */
# define AVR32_NDMAC 7 /* Number of DMA channels */
-#elif CONFIG_ARCH_CHIP_AT91UC3B1512
-# define CONFIG_ARCH_CHIP_AT91UC3B 1 /* UC3 B series */
-# define CONFIG_ARCH_CHIP_AT91UC3B1 1 /* UC3 B0 (48-pin) series */
+#elif CONFIG_ARCH_CHIP_AT32UC3B1512
+# define CONFIG_ARCH_CHIP_AT32UC3B 1 /* UC3 B series */
+# define CONFIG_ARCH_CHIP_AT32UC3B1 1 /* UC3 B0 (48-pin) series */
# define AVR32_ONCHIP_FLASH_SIZE (512*1024) /* Size of on-chip FLASH (bytes) */
# define AVR32_ONCHIP_SRAM_SIZE (96*1024) /* Size of on-chip SRAM (bytes) */
# define AVR32_USB_FULLSPEED 1 /* USB full-speed support */
@@ -205,7 +205,7 @@
* file for the proper setup
*/
-#include "at91uc3_memorymap.h"
+#include "at32uc3_memorymap.h"
/************************************************************************************
* Public Types
@@ -219,5 +219,5 @@
* Public Functions
************************************************************************************/
-#endif /* __ARCH_AVR_SRC_AT91UC3_CHIP_H */
+#endif /* __ARCH_AVR_SRC_AT32UC3_CHIP_H */