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