diff --git a/arch/README.txt b/arch/README.txt index b93474e81d5..21296e99442 100644 --- a/arch/README.txt +++ b/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/arch/avr/include/at91uc3/irq.h b/arch/avr/include/at32uc3/irq.h similarity index 98% rename from arch/avr/include/at91uc3/irq.h rename to arch/avr/include/at32uc3/irq.h index 09e94dfa467..01fc5f26537 100755 --- a/arch/avr/include/at91uc3/irq.h +++ b/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 @@ -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/arch/avr/src/at91uc3/Make.defs b/arch/avr/src/at32uc3/Make.defs old mode 100755 new mode 100644 similarity index 89% rename from arch/avr/src/at91uc3/Make.defs rename to arch/avr/src/at32uc3/Make.defs index 6e2054a2a9e..94dc5d2dcb6 --- a/arch/avr/src/at91uc3/Make.defs +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_abdac.h b/arch/avr/src/at32uc3/at32uc3_abdac.h old mode 100755 new mode 100644 similarity index 96% rename from arch/avr/src/at91uc3/at91uc3_abdac.h rename to arch/avr/src/at32uc3/at32uc3_abdac.h index 4f398db358d..f71229f895d --- a/arch/avr/src/at91uc3/at91uc3_abdac.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_adc.h b/arch/avr/src/at32uc3/at32uc3_adc.h old mode 100755 new mode 100644 similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_adc.h rename to arch/avr/src/at32uc3/at32uc3_adc.h index cd43f4e4fcd..7695e6e6536 --- a/arch/avr/src/at91uc3/at91uc3_adc.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_clkinit.c b/arch/avr/src/at32uc3/at32uc3_clkinit.c similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_clkinit.c rename to arch/avr/src/at32uc3/at32uc3_clkinit.c index 1252021e915..3f2c7c096cc 100644 --- a/arch/avr/src/at91uc3/at91uc3_clkinit.c +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_config.h b/arch/avr/src/at32uc3/at32uc3_config.h old mode 100755 new mode 100644 similarity index 96% rename from arch/avr/src/at91uc3/at91uc3_config.h rename to arch/avr/src/at32uc3/at32uc3_config.h index eed6d3f0f13..004c8b2d151 --- a/arch/avr/src/at91uc3/at91uc3_config.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_eic.h b/arch/avr/src/at32uc3/at32uc3_eic.h old mode 100755 new mode 100644 similarity index 97% rename from arch/avr/src/at91uc3/at91uc3_eic.h rename to arch/avr/src/at32uc3/at32uc3_eic.h index dc6b31a02d0..505d0b84bdb --- a/arch/avr/src/at91uc3/at91uc3_eic.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_flashc.h b/arch/avr/src/at32uc3/at32uc3_flashc.h old mode 100755 new mode 100644 similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_flashc.h rename to arch/avr/src/at32uc3/at32uc3_flashc.h index 1d0d4188410..45df326baba --- a/arch/avr/src/at91uc3/at91uc3_flashc.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_gpio.c b/arch/avr/src/at32uc3/at32uc3_gpio.c similarity index 96% rename from arch/avr/src/at91uc3/at91uc3_gpio.c rename to arch/avr/src/at32uc3/at32uc3_gpio.c index 82055ea847e..4ca7b7b2e14 100644 --- a/arch/avr/src/at91uc3/at91uc3_gpio.c +++ b/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 @@ -42,13 +42,13 @@ #include #include -#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/arch/avr/src/at91uc3/at91uc3_gpio.h b/arch/avr/src/at32uc3/at32uc3_gpio.h old mode 100755 new mode 100644 similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_gpio.h rename to arch/avr/src/at32uc3/at32uc3_gpio.h index d049d48e63d..b5f377efbfa --- a/arch/avr/src/at91uc3/at91uc3_gpio.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_gpioirq.c b/arch/avr/src/at32uc3/at32uc3_gpioirq.c similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_gpioirq.c rename to arch/avr/src/at32uc3/at32uc3_gpioirq.c index 0a74225ecb4..0e05bf02a1d 100644 --- a/arch/avr/src/at91uc3/at91uc3_gpioirq.c +++ b/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 @@ -39,7 +39,7 @@ ****************************************************************************/ #include -#include "at91uc3_config.h" +#include "at32uc3_config.h" #include #include @@ -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/arch/avr/src/at91uc3/at91uc3_hmatrix.h b/arch/avr/src/at32uc3/at32uc3_hmatrix.h old mode 100755 new mode 100644 similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_hmatrix.h rename to arch/avr/src/at32uc3/at32uc3_hmatrix.h index 379d6bf6c1c..6190fe3de31 --- a/arch/avr/src/at91uc3/at91uc3_hmatrix.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_intc.h b/arch/avr/src/at32uc3/at32uc3_intc.h old mode 100755 new mode 100644 similarity index 96% rename from arch/avr/src/at91uc3/at91uc3_intc.h rename to arch/avr/src/at32uc3/at32uc3_intc.h index 9991f5e5385..700b274596b --- a/arch/avr/src/at91uc3/at91uc3_intc.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_internal.h b/arch/avr/src/at32uc3/at32uc3_internal.h old mode 100755 new mode 100644 similarity index 95% rename from arch/avr/src/at91uc3/at91uc3_internal.h rename to arch/avr/src/at32uc3/at32uc3_internal.h index d429df50a8c..07a2e9136a2 --- a/arch/avr/src/at91uc3/at91uc3_internal.h +++ b/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 @@ -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 -#include "at91uc3_config.h" +#include "at32uc3_config.h" #ifdef CONFIG_AVR32_GPIOIRQ # include @@ -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/arch/avr/src/at91uc3/at91uc3_irq.c b/arch/avr/src/at32uc3/at32uc3_irq.c similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_irq.c rename to arch/avr/src/at32uc3/at32uc3_irq.c index 6791c1fb377..29fedf057ef 100644 --- a/arch/avr/src/at91uc3/at91uc3_irq.c +++ b/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 @@ -39,7 +39,7 @@ ****************************************************************************/ #include -#include "at91uc3_config.h" +#include "at32uc3_config.h" #include #include @@ -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/arch/avr/src/at91uc3/at91uc3_lowconsole.c b/arch/avr/src/at32uc3/at32uc3_lowconsole.c similarity index 96% rename from arch/avr/src/at91uc3/at91uc3_lowconsole.c rename to arch/avr/src/at32uc3/at32uc3_lowconsole.c index 4b2ba02b72b..641d7bffec9 100644 --- a/arch/avr/src/at91uc3/at91uc3_lowconsole.c +++ b/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 @@ -38,7 +38,7 @@ ******************************************************************************/ #include -#include "at91uc3_config.h" +#include "at32uc3_config.h" #include #include @@ -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/arch/avr/src/at91uc3/at91uc3_lowinit.c b/arch/avr/src/at32uc3/at32uc3_lowinit.c similarity index 97% rename from arch/avr/src/at91uc3/at91uc3_lowinit.c rename to arch/avr/src/at32uc3/at32uc3_lowinit.c index 549d79b9957..d8d62488a2d 100644 --- a/arch/avr/src/at91uc3/at91uc3_lowinit.c +++ b/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 @@ -39,9 +39,9 @@ #include -#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/arch/avr/src/at91uc3/at91uc3_memorymap.h b/arch/avr/src/at32uc3/at32uc3_memorymap.h old mode 100755 new mode 100644 similarity index 95% rename from arch/avr/src/at91uc3/at91uc3_memorymap.h rename to arch/avr/src/at32uc3/at32uc3_memorymap.h index b5d930fec62..dfe31ee272a --- a/arch/avr/src/at91uc3/at91uc3_memorymap.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_pdca.h b/arch/avr/src/at32uc3/at32uc3_pdca.h old mode 100755 new mode 100644 similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_pdca.h rename to arch/avr/src/at32uc3/at32uc3_pdca.h index ca5b6da3c6e..7a6c3bfe16c --- a/arch/avr/src/at91uc3/at91uc3_pdca.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_pinmux.h b/arch/avr/src/at32uc3/at32uc3_pinmux.h old mode 100755 new mode 100644 similarity index 87% rename from arch/avr/src/at91uc3/at91uc3_pinmux.h rename to arch/avr/src/at32uc3/at32uc3_pinmux.h index 94fd7e89bd5..0c55fb94ca1 --- a/arch/avr/src/at91uc3/at91uc3_pinmux.h +++ b/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 - * - * 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 -#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 + * + * 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 +#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/arch/avr/src/at91uc3/at91uc3_pm.h b/arch/avr/src/at32uc3/at32uc3_pm.h old mode 100755 new mode 100644 similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_pm.h rename to arch/avr/src/at32uc3/at32uc3_pm.h index ddb73c07aa4..786cf1d680d --- a/arch/avr/src/at91uc3/at91uc3_pm.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_pwm.h b/arch/avr/src/at32uc3/at32uc3_pwm.h old mode 100755 new mode 100644 similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_pwm.h rename to arch/avr/src/at32uc3/at32uc3_pwm.h index 2907dd08299..e2dee47e589 --- a/arch/avr/src/at91uc3/at91uc3_pwm.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_rtc.h b/arch/avr/src/at32uc3/at32uc3_rtc.h old mode 100755 new mode 100644 similarity index 96% rename from arch/avr/src/at91uc3/at91uc3_rtc.h rename to arch/avr/src/at32uc3/at32uc3_rtc.h index 6b9fdd3e210..1a861d0bccf --- a/arch/avr/src/at91uc3/at91uc3_rtc.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_serial.c b/arch/avr/src/at32uc3/at32uc3_serial.c similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_serial.c rename to arch/avr/src/at32uc3/at32uc3_serial.c index b8055997934..7ed9d4b9512 100644 --- a/arch/avr/src/at91uc3/at91uc3_serial.c +++ b/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 @@ -54,13 +54,13 @@ #include -#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/arch/avr/src/at91uc3/at91uc3_spi.h b/arch/avr/src/at32uc3/at32uc3_spi.h old mode 100755 new mode 100644 similarity index 97% rename from arch/avr/src/at91uc3/at91uc3_spi.h rename to arch/avr/src/at32uc3/at32uc3_spi.h index 1f90372ebe4..c2a4b99d3ed --- a/arch/avr/src/at91uc3/at91uc3_spi.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_ssc.h b/arch/avr/src/at32uc3/at32uc3_ssc.h old mode 100755 new mode 100644 similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_ssc.h rename to arch/avr/src/at32uc3/at32uc3_ssc.h index 39fd1cbd245..fa67d4714a5 --- a/arch/avr/src/at91uc3/at91uc3_ssc.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_tc.h b/arch/avr/src/at32uc3/at32uc3_tc.h old mode 100755 new mode 100644 similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_tc.h rename to arch/avr/src/at32uc3/at32uc3_tc.h index 98d5b9b13a2..f615d1b9366 --- a/arch/avr/src/at91uc3/at91uc3_tc.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_timerisr.c b/arch/avr/src/at32uc3/at32uc3_timerisr.c similarity index 98% rename from arch/avr/src/at91uc3/at91uc3_timerisr.c rename to arch/avr/src/at32uc3/at32uc3_timerisr.c index e386489529e..7630f03d0b5 100644 --- a/arch/avr/src/at91uc3/at91uc3_timerisr.c +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_twi.h b/arch/avr/src/at32uc3/at32uc3_twi.h old mode 100755 new mode 100644 similarity index 97% rename from arch/avr/src/at91uc3/at91uc3_twi.h rename to arch/avr/src/at32uc3/at32uc3_twi.h index 6171db9e77f..afec99fb124 --- a/arch/avr/src/at91uc3/at91uc3_twi.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_usart.h b/arch/avr/src/at32uc3/at32uc3_usart.h old mode 100755 new mode 100644 similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_usart.h rename to arch/avr/src/at32uc3/at32uc3_usart.h index f06eb0b3a1e..350946321c5 --- a/arch/avr/src/at91uc3/at91uc3_usart.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_usbb.h b/arch/avr/src/at32uc3/at32uc3_usbb.h old mode 100755 new mode 100644 similarity index 99% rename from arch/avr/src/at91uc3/at91uc3_usbb.h rename to arch/avr/src/at32uc3/at32uc3_usbb.h index a3e43777399..b6bc1765ae7 --- a/arch/avr/src/at91uc3/at91uc3_usbb.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3_wdt.h b/arch/avr/src/at32uc3/at32uc3_wdt.h old mode 100755 new mode 100644 similarity index 95% rename from arch/avr/src/at91uc3/at91uc3_wdt.h rename to arch/avr/src/at32uc3/at32uc3_wdt.h index c1c68149c16..384e67265be --- a/arch/avr/src/at91uc3/at91uc3_wdt.h +++ b/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 @@ -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/arch/avr/src/at91uc3/at91uc3a_pinmux.h b/arch/avr/src/at32uc3/at32uc3a_pinmux.h old mode 100755 new mode 100644 similarity index 91% rename from arch/avr/src/at91uc3/at91uc3a_pinmux.h rename to arch/avr/src/at32uc3/at32uc3a_pinmux.h index 630fc47a928..124d056d6a0 --- a/arch/avr/src/at91uc3/at91uc3a_pinmux.h +++ b/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 - * - * 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 - -/************************************************************************************ - * 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 + * + * 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 + +/************************************************************************************ + * Pre-processor Definitions + ************************************************************************************/ + +#warning "Not Implemented" + +/************************************************************************************ + * Public Types + ************************************************************************************/ + +/************************************************************************************ + * Public Data + ************************************************************************************/ + +/************************************************************************************ + * Public Functions + ************************************************************************************/ + +#endif /* __ARCH_AVR_SRC_AT32UC3_AT32UC3_PINMUX_H */ + diff --git a/arch/avr/src/at91uc3/at91uc3b_pinmux.h b/arch/avr/src/at32uc3/at32uc3b_pinmux.h old mode 100755 new mode 100644 similarity index 97% rename from arch/avr/src/at91uc3/at91uc3b_pinmux.h rename to arch/avr/src/at32uc3/at32uc3b_pinmux.h index ffa4cff2067..352af2635c3 --- a/arch/avr/src/at91uc3/at91uc3b_pinmux.h +++ b/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 - * - * 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 - -/************************************************************************************ - * 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 + * + * 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 + +/************************************************************************************ + * 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/arch/avr/src/at91uc3/chip.h b/arch/avr/src/at32uc3/chip.h old mode 100755 new mode 100644 similarity index 89% rename from arch/avr/src/at91uc3/chip.h rename to arch/avr/src/at32uc3/chip.h index a75302d3cee..ec2351b9cff --- a/arch/avr/src/at91uc3/chip.h +++ b/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 @@ -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 */