UltimaSerial AVR32: Where are the definition? 

Data logger
UltimaSerial

 

Windaq add-ons
Windaq Add-ons

 

Spectrogram
UltimaWaterfall

 

Ultimaserial XChart
XChart

 

FFT1024
FFT1024

 

Ultimaserial Classroom
Lessons

During my early days of AVR32 test drive, one of my frustration is "where are the definitions of all those symbols, flags, registers, etc. ?"

Assuming you are using AVR32 Studio, and one of its great features is when you need to find out the definition of a function, a variable, you simply hold down to the control key and click on the text and the Studio will take you to the definition immediately

but not always....

A lot of system-level definitions are simply used by the AVR32 examples, but you can never ctrl-click to find their definition. When you try to google them out, you will be directed to Atmel's website, documents created by the robot called doxygen, which also has no clue where to locate the real definition!

Finally, I realized these system/board level definitions reside outside of the project folder and AVR32 Studio simply has no clue where to find them, just as dump as me :)

They are in 

C:\Program Files\Atmel\AVR Tools\AVR32 Toolchain\avr32\include\avr32

Here are some definitions I am talking about:

#ifndef AVR32_UC3A0512_H_INCLUDED
#define AVR32_UC3A0512_H_INCLUDED


/* Core */
#include "avr32/core_sc0_140.h"
/* OCD */
#include "avr32/ocd_s0_140.h"

/* CORE */
#define AVR32_CORE_CLK_CPU_COUNT           16
#define AVR32_CORE_COMPARE_IRQ             0
#define AVR32_CORE_SCAN_CHAIN_MSB          19
#define AVR32_CORE_SCAN_CLOCK_MSB          13


/* OCD */
#define AVR32_OCD_CLK_CPU                  1

/* Memories */
#define AVR32_EBI_CS0_ADDRESS              0xC0000000
#define AVR32_EBI_CS0_SIZE                 0x01000000
#define AVR32_EBI_CS0                      ((unsigned char *)AVR32_EBI_CS0_ADDRESS)
#define AVR32_EBI_CS1_ADDRESS              0xD0000000
#define AVR32_EBI_CS1_SIZE                 0x08000000
#define AVR32_EBI_CS1                      ((unsigned char *)AVR32_EBI_CS1_ADDRESS)
#define AVR32_EBI_CS2_ADDRESS              0xC8000000
#define AVR32_EBI_CS2_SIZE                 0x01000000
#define AVR32_EBI_CS2                      ((unsigned char *)AVR32_EBI_CS2_ADDRESS)
#define AVR32_EBI_CS3_ADDRESS              0xCC000000
#define AVR32_EBI_CS3_SIZE                 0x01000000
#define AVR32_EBI_CS3                      ((unsigned char *)AVR32_EBI_CS3_ADDRESS)
#define AVR32_FLASH_ADDRESS                0x80000000
#define AVR32_FLASH_SIZE                   0x00080000
#define AVR32_FLASH                        ((unsigned char *)AVR32_FLASH_ADDRESS)
#define AVR32_SRAM_ADDRESS                 0x00000000
#define AVR32_SRAM_SIZE                    0x00010000
#define AVR32_SRAM                         ((unsigned char *)AVR32_SRAM_ADDRESS)
#define AVR32_USBB_SLAVE_ADDRESS           0xE0000000
#define AVR32_USBB_SLAVE_SIZE              0x00800000
#define AVR32_USBB_SLAVE                   ((unsigned char *)AVR32_USBB_SLAVE_ADDRESS)

/* Interrupt Controller */
#define AVR32_INTC_NUM                     1
#define AVR32_INTC_ADDRESS                 0xFFFF0800
#define AVR32_INTC                         (*((volatile avr32_intc_t*)AVR32_INTC_ADDRESS))
#define AVR32_INTC_CLK_PBA                 64
#define AVR32_INTC_NUM_INT_GRPS            20
#define AVR32_INTC_NUM_IRQS_PER_GRP0       1
#define AVR32_INTC_NUM_IRQS_PER_GRP1       11
#define AVR32_INTC_NUM_IRQS_PER_GRP10      1
#define AVR32_INTC_NUM_IRQS_PER_GRP11      1
#define AVR32_INTC_NUM_IRQS_PER_GRP12      1
#define AVR32_INTC_NUM_IRQS_PER_GRP13      1
#define AVR32_INTC_NUM_IRQS_PER_GRP14      3
#define AVR32_INTC_NUM_IRQS_PER_GRP15      1
#define AVR32_INTC_NUM_IRQS_PER_GRP16      1
#define AVR32_INTC_NUM_IRQS_PER_GRP17      1
#define AVR32_INTC_NUM_IRQS_PER_GRP18      1
#define AVR32_INTC_NUM_IRQS_PER_GRP19      1
#define AVR32_INTC_NUM_IRQS_PER_GRP2       14
#define AVR32_INTC_NUM_IRQS_PER_GRP3       15
#define AVR32_INTC_NUM_IRQS_PER_GRP4       1
#define AVR32_INTC_NUM_IRQS_PER_GRP5       1
#define AVR32_INTC_NUM_IRQS_PER_GRP6       1
#define AVR32_INTC_NUM_IRQS_PER_GRP7       1
#define AVR32_INTC_NUM_IRQS_PER_GRP8       1
#define AVR32_INTC_NUM_IRQS_PER_GRP9       1
#define AVR32_INTC_NUM_NMI                 1

#include "avr32/intc_101.h"


/* ADC */
#define AVR32_ADC_NUM                      1

/* ADC */
#define AVR32_ADC_ADDRESS                  0xFFFF3C00
#define AVR32_ADC                          (*((volatile avr32_adc_t*)AVR32_ADC_ADDRESS))
#define AVR32_ADC_CLK_PBA                  68
#define AVR32_ADC_IRQ                      480
#define AVR32_ADC_CHANNELS_MSB             7
#define AVR32_ADC_DATA_MSB                 9
#define AVR32_ADC_AD_0_PIN                 21
#define AVR32_ADC_AD_0_FUNCTION            0
#define AVR32_ADC_AD_1_PIN                 22
#define AVR32_ADC_AD_1_FUNCTION            0
#define AVR32_ADC_AD_2_PIN                 23
#define AVR32_ADC_AD_2_FUNCTION            0
#define AVR32_ADC_AD_3_PIN                 24
#define AVR32_ADC_AD_3_FUNCTION            0
#define AVR32_ADC_AD_4_PIN                 25
#define AVR32_ADC_AD_4_FUNCTION            0
#define AVR32_ADC_AD_5_PIN                 26
#define AVR32_ADC_AD_5_FUNCTION            0
#define AVR32_ADC_AD_6_PIN                 27
#define AVR32_ADC_AD_6_FUNCTION            0
#define AVR32_ADC_AD_7_PIN                 28
#define AVR32_ADC_AD_7_FUNCTION            0
#define AVR32_ADC_TEST_CLK_0_PIN           3
#define AVR32_ADC_TEST_DATA_0_PIN          8
#define AVR32_ADC_TEST_DATA_1_PIN          9
#define AVR32_ADC_TEST_DATA_2_PIN          10
#define AVR32_ADC_TEST_DATA_3_PIN          11
#define AVR32_ADC_TEST_DATA_4_PIN          12
#define AVR32_ADC_TEST_DATA_5_PIN          13
#define AVR32_ADC_TEST_DATA_6_PIN          14
#define AVR32_ADC_TEST_DATA_7_PIN          15
#define AVR32_ADC_TEST_DATA_8_PIN          16
#define AVR32_ADC_TEST_DATA_9_PIN          17
#define AVR32_ADC_TEST_EOC_0_PIN           7
#define AVR32_ADC_TEST_ONAD_0_PIN          1
#define AVR32_ADC_TEST_ONSAR_0_PIN         2
#define AVR32_ADC_TEST_SEL_0_PIN           4
#define AVR32_ADC_TEST_SEL_1_PIN           5
#define AVR32_ADC_TEST_SEL_2_PIN           6
#define AVR32_ADC_TEST_START_0_PIN         0
#define AVR32_ADC_TRIGGER_0_PIN            50
#define AVR32_ADC_TRIGGER_0_FUNCTION       1

#include "avr32/adc_110.h"


/* ABDAC */
#define AVR32_ABDAC_NUM                    1

/* ABDAC */
#define AVR32_ABDAC_ADDRESS                0xFFFF4000
#define AVR32_ABDAC                        (*((volatile avr32_abdac_t*)AVR32_ABDAC_ADDRESS))
#define AVR32_ABDAC_CLK_PBA                79
#define AVR32_ABDAC_IRQ                    608
#define AVR32_ABDAC_DATA_0_0_PIN           34
#define AVR32_ABDAC_DATA_0_0_FUNCTION      1
#define AVR32_ABDAC_DATA_1_0_PIN           37
#define AVR32_ABDAC_DATA_1_0_FUNCTION      1
#define AVR32_ABDAC_DATA_0_1_PIN           3
#define AVR32_ABDAC_DATA_0_1_FUNCTION      2
#define AVR32_ABDAC_DATA_1_1_PIN           23
#define AVR32_ABDAC_DATA_1_1_FUNCTION      2
#define AVR32_ABDAC_DATAN_0_0_PIN          35
#define AVR32_ABDAC_DATAN_0_0_FUNCTION     1
#define AVR32_ABDAC_DATAN_1_0_PIN          38
#define AVR32_ABDAC_DATAN_1_0_FUNCTION     1
#define AVR32_ABDAC_DATAN_0_1_PIN          4
#define AVR32_ABDAC_DATAN_0_1_FUNCTION     2
#define AVR32_ABDAC_DATAN_1_1_PIN          24
#define AVR32_ABDAC_DATAN_1_1_FUNCTION     2

#include "avr32/abdac_101.h"


/* EBI */
#define AVR32_EBI_NUM                      1

/* EBI */
#define AVR32_EBI_CLK_HSB                  38
#define AVR32_EBI_HEBI_CS_MSB              3
#define AVR32_EBI_HMATRIX_NR               5
#define AVR32_EBI_SDRAM_CS                 1
#define AVR32_EBI_SMC0_CS                  0
#define AVR32_EBI_SMC1_CS                  1
#define AVR32_EBI_SMC2_CS                  2
#define AVR32_EBI_SMC3_CS                  3
#define AVR32_EBI_ADDR_19_PIN              89
#define AVR32_EBI_ADDR_19_FUNCTION         0
#define AVR32_EBI_ADDR_18_PIN              88
#define AVR32_EBI_ADDR_18_FUNCTION         0
#define AVR32_EBI_ADDR_17_PIN              87
#define AVR32_EBI_ADDR_17_FUNCTION         0
#define AVR32_EBI_ADDR_16_PIN              86
#define AVR32_EBI_ADDR_16_FUNCTION         0
#define AVR32_EBI_ADDR_15_PIN              85
#define AVR32_EBI_ADDR_15_FUNCTION         0
#define AVR32_EBI_ADDR_14_PIN              84
#define AVR32_EBI_ADDR_14_FUNCTION         0
#define AVR32_EBI_ADDR_13_PIN              83
#define AVR32_EBI_ADDR_13_FUNCTION         0
#define AVR32_EBI_ADDR_12_PIN              82
#define AVR32_EBI_ADDR_12_FUNCTION         0
#define AVR32_EBI_ADDR_11_PIN              81
#define AVR32_EBI_ADDR_11_FUNCTION         0
#define AVR32_EBI_ADDR_10_PIN              80
#define AVR32_EBI_ADDR_10_FUNCTION         0
#define AVR32_EBI_ADDR_9_PIN               79
#define AVR32_EBI_ADDR_9_FUNCTION          0
#define AVR32_EBI_ADDR_8_PIN               78
#define AVR32_EBI_ADDR_8_FUNCTION          0
#define AVR32_EBI_ADDR_7_PIN               77
#define AVR32_EBI_ADDR_7_FUNCTION          0
#define AVR32_EBI_ADDR_6_PIN               76
#define AVR32_EBI_ADDR_6_FUNCTION          0
#define AVR32_EBI_ADDR_5_PIN               75
#define AVR32_EBI_ADDR_5_FUNCTION          0
#define AVR32_EBI_ADDR_4_PIN               74
#define AVR32_EBI_ADDR_4_FUNCTION          0
#define AVR32_EBI_ADDR_3_PIN               73
#define AVR32_EBI_ADDR_3_FUNCTION          0
#define AVR32_EBI_ADDR_2_PIN               72
#define AVR32_EBI_ADDR_2_FUNCTION          0
#define AVR32_EBI_ADDR_1_PIN               71
#define AVR32_EBI_ADDR_1_FUNCTION          0
#define AVR32_EBI_ADDR_0_PIN               70
#define AVR32_EBI_ADDR_0_FUNCTION          0
#define AVR32_EBI_ADDR_20_0_PIN            15
#define AVR32_EBI_ADDR_20_0_FUNCTION       2
#define AVR32_EBI_ADDR_21_0_PIN            16
#define AVR32_EBI_ADDR_21_0_FUNCTION       2
#define AVR32_EBI_ADDR_22_0_PIN            17
#define AVR32_EBI_ADDR_22_0_FUNCTION       2
#define AVR32_EBI_ADDR_20_1_PIN            26
#define AVR32_EBI_ADDR_20_1_FUNCTION       2
#define AVR32_EBI_ADDR_21_1_PIN            27
#define AVR32_EBI_ADDR_21_1_FUNCTION       2
#define AVR32_EBI_ADDR_22_1_PIN            28
#define AVR32_EBI_ADDR_22_1_FUNCTION       2
#define AVR32_EBI_ADDR_23_PIN              49
#define AVR32_EBI_ADDR_23_FUNCTION         2
#define AVR32_EBI_CAS_0_PIN                45
#define AVR32_EBI_CAS_0_FUNCTION           2
#define AVR32_EBI_DATA_10_PIN              100
#define AVR32_EBI_DATA_10_FUNCTION         0
#define AVR32_EBI_DATA_9_PIN               99
#define AVR32_EBI_DATA_9_FUNCTION          0
#define AVR32_EBI_DATA_8_PIN               98
#define AVR32_EBI_DATA_8_FUNCTION          0
#define AVR32_EBI_DATA_7_PIN               97
#define AVR32_EBI_DATA_7_FUNCTION          0
#define AVR32_EBI_DATA_6_PIN               96
#define AVR32_EBI_DATA_6_FUNCTION          0
#define AVR32_EBI_DATA_5_PIN               95
#define AVR32_EBI_DATA_5_FUNCTION          0
#define AVR32_EBI_DATA_4_PIN               94
#define AVR32_EBI_DATA_4_FUNCTION          0
#define AVR32_EBI_DATA_3_PIN               93
#define AVR32_EBI_DATA_3_FUNCTION          0
#define AVR32_EBI_DATA_2_PIN               92
#define AVR32_EBI_DATA_2_FUNCTION          0
#define AVR32_EBI_DATA_1_PIN               91
#define AVR32_EBI_DATA_1_FUNCTION          0
#define AVR32_EBI_DATA_0_PIN               90
#define AVR32_EBI_DATA_0_FUNCTION          0
#define AVR32_EBI_DATA_15_PIN              105
#define AVR32_EBI_DATA_15_FUNCTION         0
#define AVR32_EBI_DATA_14_PIN              104
#define AVR32_EBI_DATA_14_FUNCTION         0
#define AVR32_EBI_DATA_13_PIN              103
#define AVR32_EBI_DATA_13_FUNCTION         0
#define AVR32_EBI_DATA_12_PIN              102
#define AVR32_EBI_DATA_12_FUNCTION         0
#define AVR32_EBI_DATA_11_PIN              101
#define AVR32_EBI_DATA_11_FUNCTION         0
#define AVR32_EBI_NCS_1_PIN                106
#define AVR32_EBI_NCS_1_FUNCTION           0
#define AVR32_EBI_NCS_0_0_PIN              14
#define AVR32_EBI_NCS_0_0_FUNCTION         2
#define AVR32_EBI_NCS_0_1_PIN              25
#define AVR32_EBI_NCS_0_1_FUNCTION         2
#define AVR32_EBI_NCS_3_PIN                36
#define AVR32_EBI_NCS_3_FUNCTION           2
#define AVR32_EBI_NCS_2_PIN                61
#define AVR32_EBI_NCS_2_FUNCTION           2
#define AVR32_EBI_NRD_0_PIN                107
#define AVR32_EBI_NRD_0_FUNCTION           0
#define AVR32_EBI_NWAIT_0_PIN              63
#define AVR32_EBI_NWAIT_0_FUNCTION         2
#define AVR32_EBI_NWE0_0_PIN               108
#define AVR32_EBI_NWE0_0_FUNCTION          0
#define AVR32_EBI_NWE1_0_PIN               109
#define AVR32_EBI_NWE1_0_FUNCTION          0
#define AVR32_EBI_RAS_0_PIN                44
#define AVR32_EBI_RAS_0_FUNCTION           2
#define AVR32_EBI_SCAN_CLOCK_0_PIN         42
#define AVR32_EBI_SDA10_0_PIN              48
#define AVR32_EBI_SDA10_0_FUNCTION         2
#define AVR32_EBI_SDCK_0_PIN               42
#define AVR32_EBI_SDCK_0_FUNCTION          2
#define AVR32_EBI_SDCKE_0_PIN              43
#define AVR32_EBI_SDCKE_0_FUNCTION         2
#define AVR32_EBI_SDCS_0_PIN               62
#define AVR32_EBI_SDCS_0_FUNCTION          2
#define AVR32_EBI_SDWE_0_PIN               46
#define AVR32_EBI_SDWE_0_FUNCTION          2

/* EIC */

/* EIC */
#define AVR32_EIC_ADDRESS                  0xFFFF0D80
#define AVR32_EIC                          (*((volatile avr32_eic_t*)AVR32_EIC_ADDRESS))
#define AVR32_EIC_CLK_PBA                  67
#define AVR32_EIC_IRQ_0                   32
#define AVR32_EIC_IRQ_1                   33
#define AVR32_EIC_IRQ_2                   34
#define AVR32_EIC_IRQ_3                   35
#define AVR32_EIC_IRQ_4                   36
#define AVR32_EIC_IRQ_5                   37
#define AVR32_EIC_IRQ_6                   38
#define AVR32_EIC_IRQ_7                   39
#define AVR32_EIC_INT_MSB                  8
#define AVR32_EIC_SCAN_MSB                 7
#define AVR32_EIC_STD_NUM                  8
#define AVR32_EIC_EXTINT_8_PIN             20
#define AVR32_EIC_EXTINT_8_FUNCTION        0
#define AVR32_EIC_EXTINT_4_PIN             3
#define AVR32_EIC_EXTINT_4_FUNCTION        1
#define AVR32_EIC_EXTINT_5_PIN             4
#define AVR32_EIC_EXTINT_5_FUNCTION        1
#define AVR32_EIC_EXTINT_6_PIN             10
#define AVR32_EIC_EXTINT_6_FUNCTION        1
#define AVR32_EIC_EXTINT_0_PIN             21
#define AVR32_EIC_EXTINT_0_FUNCTION        1
#define AVR32_EIC_EXTINT_1_PIN             22
#define AVR32_EIC_EXTINT_1_FUNCTION        1
#define AVR32_EIC_EXTINT_2_PIN             23
#define AVR32_EIC_EXTINT_2_FUNCTION        1
#define AVR32_EIC_EXTINT_3_PIN             24
#define AVR32_EIC_EXTINT_3_FUNCTION        1
#define AVR32_EIC_EXTINT_7_PIN             8
#define AVR32_EIC_EXTINT_7_FUNCTION        2
#define AVR32_EIC_SCAN_0_0_PIN             25
#define AVR32_EIC_SCAN_0_0_FUNCTION        1
#define AVR32_EIC_SCAN_1_0_PIN             26
#define AVR32_EIC_SCAN_1_0_FUNCTION        1
#define AVR32_EIC_SCAN_2_0_PIN             27
#define AVR32_EIC_SCAN_2_0_FUNCTION        1
#define AVR32_EIC_SCAN_3_0_PIN             28
#define AVR32_EIC_SCAN_3_0_FUNCTION        1
#define AVR32_EIC_SCAN_0_1_PIN             85
#define AVR32_EIC_SCAN_0_1_FUNCTION        1
#define AVR32_EIC_SCAN_1_1_PIN             84
#define AVR32_EIC_SCAN_1_1_FUNCTION        1
#define AVR32_EIC_SCAN_2_1_PIN             83
#define AVR32_EIC_SCAN_2_1_FUNCTION        1
#define AVR32_EIC_SCAN_3_1_PIN             82
#define AVR32_EIC_SCAN_3_1_FUNCTION        1
#define AVR32_EIC_SCAN_4_0_PIN             81
#define AVR32_EIC_SCAN_4_0_FUNCTION        1
#define AVR32_EIC_SCAN_5_0_PIN             80
#define AVR32_EIC_SCAN_5_0_FUNCTION        1
#define AVR32_EIC_SCAN_6_0_PIN             79
#define AVR32_EIC_SCAN_6_0_FUNCTION        1
#define AVR32_EIC_SCAN_7_0_PIN             78
#define AVR32_EIC_SCAN_7_0_FUNCTION        1
#define AVR32_EIC_SCAN_4_1_PIN             51
#define AVR32_EIC_SCAN_4_1_FUNCTION        2
#define AVR32_EIC_SCAN_5_1_PIN             52
#define AVR32_EIC_SCAN_5_1_FUNCTION        2
#define AVR32_EIC_SCAN_6_1_PIN             53
#define AVR32_EIC_SCAN_6_1_FUNCTION        2
#define AVR32_EIC_SCAN_7_1_PIN             54
#define AVR32_EIC_SCAN_7_1_FUNCTION        2

#include "avr32/eic_231.h"


/* FLASHC */
#define AVR32_FLASHC_NUM                   1

/* FLASHC */
#define AVR32_FLASHC_ADDRESS               0xFFFE1400
#define AVR32_FLASHC                       (*((volatile avr32_flashc_t*)AVR32_FLASHC_ADDRESS))
#define AVR32_FLASHC_CLK_HSB               32
#define AVR32_FLASHC_CLK_PBB               98
#define AVR32_FLASHC_IRQ                   128
#define AVR32_FLASHC_FLASH_SIZE            524288
#define AVR32_FLASHC_FWS_0_MAX_FREQ        33000000
#define AVR32_FLASHC_FWS_1_MAX_FREQ        66000000
#define AVR32_FLASHC_GPF_NUM               32
#define AVR32_FLASHC_PAGES_PR_REGION       64
#define AVR32_FLASHC_PAGE_SIZE             512
#define AVR32_FLASHC_USER_PAGE             ((volatile unsigned char *)AVR32_FLASHC_USER_PAGE_ADDRESS)
#define AVR32_FLASHC_USER_PAGE_ADDRESS     0x80800000
#define AVR32_FLASHC_USER_PAGE_SIZE        512
#define AVR32_FLASHC_BODEN                   27
#define AVR32_FLASHC_BODEN_MASK              0x18000000
#define AVR32_FLASHC_BODEN_OFFSET            27
#define AVR32_FLASHC_BODEN_SIZE              2
#define AVR32_FLASHC_BODHYST                 26
#define AVR32_FLASHC_BODHYST_MASK            0x04000000
#define AVR32_FLASHC_BODHYST_OFFSET          26
#define AVR32_FLASHC_BODHYST_SIZE            1
#define AVR32_FLASHC_BODLEVEL                20
#define AVR32_FLASHC_BODLEVEL_MASK           0x03F00000
#define AVR32_FLASHC_BODLEVEL_OFFSET         20
#define AVR32_FLASHC_BODLEVEL_SIZE           6
#define AVR32_FLASHC_FGPFRLO_BODEN           27
#define AVR32_FLASHC_FGPFRLO_BODEN_MASK      0x18000000
#define AVR32_FLASHC_FGPFRLO_BODEN_OFFSET    27
#define AVR32_FLASHC_FGPFRLO_BODEN_SIZE      2
#define AVR32_FLASHC_FGPFRLO_BODHYST         26
#define AVR32_FLASHC_FGPFRLO_BODHYST_MASK    0x04000000
#define AVR32_FLASHC_FGPFRLO_BODHYST_OFFSET  26
#define AVR32_FLASHC_FGPFRLO_BODHYST_SIZE    1
#define AVR32_FLASHC_FGPFRLO_BODLEVEL        20
#define AVR32_FLASHC_FGPFRLO_BODLEVEL_MASK   0x03F00000
#define AVR32_FLASHC_FGPFRLO_BODLEVEL_OFFSET 20
#define AVR32_FLASHC_FGPFRLO_BODLEVEL_SIZE   6
#define AVR32_FLASHC_EXTCLK_0_PIN          57
#define AVR32_FLASHC_FLASH_OBS_0_PIN       0
#define AVR32_FLASHC_FLASH_OBS_1_PIN       1
#define AVR32_FLASHC_FLASH_OBS_2_PIN       2
#define AVR32_FLASHC_FLASH_OBS_3_PIN       3
#define AVR32_FLASHC_FLASH_OBS_4_PIN       4
#define AVR32_FLASHC_FLASH_OBS_5_PIN       5
#define AVR32_FLASHC_FLASH_OBS_6_PIN       6
#define AVR32_FLASHC_FLASH_OBS_7_PIN       7
#define AVR32_FLASHC_FLASH_OBS_8_PIN       8
#define AVR32_FLASHC_FLASH_OBS_9_PIN       9
#define AVR32_FLASHC_FLASH_OBS_10_PIN      10
#define AVR32_FLASHC_FLASH_OBS_11_PIN      11
#define AVR32_FLASHC_FLASH_OBS_12_PIN      12
#define AVR32_FLASHC_FLASH_OBS_13_PIN      13
#define AVR32_FLASHC_FLASH_OBS_14_PIN      14
#define AVR32_FLASHC_FLASH_OBS_15_PIN      15
#define AVR32_FLASHC_FLASH_OBS_16_PIN      16
#define AVR32_FLASHC_FLASH_OBS_17_PIN      17
#define AVR32_FLASHC_FLASH_OBS_18_PIN      55
#define AVR32_FLASHC_FLASH_OBS_19_PIN      56
#define AVR32_FLASHC_FLASH_OBS_20_PIN      58
#define AVR32_FLASHC_LATDEL_0_PIN          51
#define AVR32_FLASHC_LATDELCLK_0_PIN       52

#include "avr32/flashc_200.h"


/* FREQM */
#define AVR32_FREQM_NUM                    1

/* FREQM */
#define AVR32_FREQM_ADDRESS                0xFFFF0D50
#define AVR32_FREQM                        (*((volatile avr32_freqm_t*)AVR32_FREQM_ADDRESS))
#define AVR32_FREQM_IRQ                    42
#define AVR32_FREQM_REFSEL_BITS            1

#include "avr32/freqm_231.h"


/* GPIO */
#define AVR32_GPIO_NUM                     1

/* GPIO */
#define AVR32_GPIO_ADDRESS                 0xFFFF1000
#define AVR32_GPIO                         (*((volatile avr32_gpio_t*)AVR32_GPIO_ADDRESS))
#define AVR32_GPIO_LOCAL_ADDRESS           0x40000000
#define AVR32_GPIO_LOCAL                   (*((volatile avr32_gpio_local_t*)AVR32_GPIO_LOCAL_ADDRESS))
#define AVR32_GPIO_CLK_PBA                 65
#define AVR32_GPIO_IRQ_0                  64
#define AVR32_GPIO_IRQ_1                  65
#define AVR32_GPIO_IRQ_2                  66
#define AVR32_GPIO_IRQ_3                  67
#define AVR32_GPIO_IRQ_4                  68
#define AVR32_GPIO_IRQ_5                  69
#define AVR32_GPIO_IRQ_6                  70
#define AVR32_GPIO_IRQ_7                  71
#define AVR32_GPIO_IRQ_8                  72
#define AVR32_GPIO_IRQ_9                  73
#define AVR32_GPIO_IRQ_10                 74
#define AVR32_GPIO_IRQ_11                 75
#define AVR32_GPIO_IRQ_12                 76
#define AVR32_GPIO_IRQ_13                 77
#define AVR32_GPIO_GFER_DEFAULT_VAL        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_GFER_IMPLEMENTED        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_GFILTER_IMPLEMENTED     "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_GPER_DEFAULT_VAL        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_GPER_IMPLEMENTED        "110'b11111111111111111111111111111111111111110000001111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_IRQ_MSB                 13
#define AVR32_GPIO_PADDR_BITS              10
#define AVR32_GPIO_PINS_MSB                109
#define AVR32_GPIO_IER_DEFAULT_VAL         "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_IER_IMPLEMENTED         "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_IFR_IMPLEMENTED         "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_IMR0_DEFAULT_VAL        "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_IMR0_IMPLEMENTED        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_IMR1_DEFAULT_VAL        "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_IMR1_IMPLEMENTED        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_INPUT_SYNC_IMPLEMENTED  "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_IRQS_PER_GROUP          8
#define AVR32_GPIO_NUMBER_OF_PINS          110
#define AVR32_GPIO_ODER_DEFAULT_VAL        "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_ODER_IMPLEMENTED        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_ODMER_DEFAULT_VAL       "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_ODMER_IMPLEMENTED       "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_OVR_DEFAULT_VAL         "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_OVR_IMPLEMENTED         "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"
#define AVR32_GPIO_PADDR_MSB               9
#define AVR32_GPIO_PDATA_MSB               31
#define AVR32_GPIO_PMR0_DEFAULT_VAL        "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_PMR0_IMPLEMENTED        "110'b11101111111111111111110011111111111111110000001111111111111111011111000111111101111111111111111101111111111111"
#define AVR32_GPIO_PMR1_DEFAULT_VAL        "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_PMR1_IMPLEMENTED        "110'b00010000000000000000111111110000000000000000001110000001111111011111000001001100011111111001111100001110011000"
#define AVR32_GPIO_PORT_LENGTH             4
#define AVR32_GPIO_PUER_DEFAULT_VAL        "110'b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
#define AVR32_GPIO_PUER_IMPLEMENTED        "110'b11111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111"

#include "avr32/gpio_110.h"


/* HMATRIX */
#define AVR32_HMATRIX_NUM                  1

/* HMATRIX */
#define AVR32_HMATRIX_ADDRESS              0xFFFE1000
#define AVR32_HMATRIX                      (*((volatile avr32_hmatrix_t*)AVR32_HMATRIX_ADDRESS))
#define AVR32_HMATRIX_CLK_HSB_PBA_BRIDGE   33
#define AVR32_HMATRIX_CLK_HSB_PBB_BRIDGE   34
#define AVR32_HMATRIX_CLK_PBB              96
#define AVR32_HMATRIX_MASTER_CPU_DATA      0
#define AVR32_HMATRIX_MASTER_CPU_INSN      1
#define AVR32_HMATRIX_MASTER_CPU_SAB       2
#define AVR32_HMATRIX_MASTER_MACB_DMA      4
#define AVR32_HMATRIX_MASTER_NUM           6
#define AVR32_HMATRIX_MASTER_PDCA          3
#define AVR32_HMATRIX_MASTER_USBB_DMA      5
#define AVR32_HMATRIX_SLAVE_EBI            5
#define AVR32_HMATRIX_SLAVE_FLASH          0
#define AVR32_HMATRIX_SLAVE_NUM            6
#define AVR32_HMATRIX_SLAVE_PBA            1
#define AVR32_HMATRIX_SLAVE_PBB            2
#define AVR32_HMATRIX_SLAVE_SRAM           3
#define AVR32_HMATRIX_SLAVE_USBB_DPRAM     4

#include "avr32/hmatrix_230.h"


/* SDRAMC */
#define AVR32_SDRAMC_NUM                   1

/* SDRAMC */
#define AVR32_SDRAMC_ADDRESS               0xFFFE2000
#define AVR32_SDRAMC                       (*((volatile avr32_sdramc_t*)AVR32_SDRAMC_ADDRESS))
#define AVR32_SDRAMC_CLK_PBB               101
#define AVR32_SDRAMC_SDRAMC_IRQ            576

#include "avr32/sdramc_220.h"


/* SMC */
#define AVR32_SMC_NUM                      1

/* SMC */
#define AVR32_SMC_ADDRESS                  0xFFFE1C00
#define AVR32_SMC                          (*((volatile avr32_smc_t*)AVR32_SMC_ADDRESS))
#define AVR32_SMC_CLK_PBB                  100

#include "avr32/smc_106.h"


/* JTAG */

/* JTAG */

/* MACB */
#define AVR32_MACB_NUM                     1

/* MACB */
#define AVR32_MACB_ADDRESS                 0xFFFE1800
#define AVR32_MACB                         (*((volatile avr32_macb_t*)AVR32_MACB_ADDRESS))
#define AVR32_MACB_CLK_HSB                 36
#define AVR32_MACB_CLK_PBB                 99
#define AVR32_MACB_IRQ                     512
#define AVR32_MACB_COL_0_PIN               48
#define AVR32_MACB_COL_0_FUNCTION          0
#define AVR32_MACB_CRS_0_PIN               36
#define AVR32_MACB_CRS_0_FUNCTION          0
#define AVR32_MACB_MDC_0_PIN               40
#define AVR32_MACB_MDC_0_FUNCTION          0
#define AVR32_MACB_MDIO_0_PIN              41
#define AVR32_MACB_MDIO_0_FUNCTION         0
#define AVR32_MACB_RXD_0_PIN               37
#define AVR32_MACB_RXD_0_FUNCTION          0
#define AVR32_MACB_RXD_1_PIN               38
#define AVR32_MACB_RXD_1_FUNCTION          0
#define AVR32_MACB_RXD_2_PIN               45
#define AVR32_MACB_RXD_2_FUNCTION          0
#define AVR32_MACB_RXD_3_PIN               46
#define AVR32_MACB_RXD_3_FUNCTION          0
#define AVR32_MACB_RX_CLK_0_PIN            49
#define AVR32_MACB_RX_CLK_0_FUNCTION       0
#define AVR32_MACB_RX_DV_0_PIN             47
#define AVR32_MACB_RX_DV_0_FUNCTION        0
#define AVR32_MACB_RX_ER_0_PIN             39
#define AVR32_MACB_RX_ER_0_FUNCTION        0
#define AVR32_MACB_SCAN_CLOCK_0_0_PIN      32
#define AVR32_MACB_SCAN_CLOCK_0_1_PIN      49
#define AVR32_MACB_SPEED_0_PIN             50
#define AVR32_MACB_SPEED_0_FUNCTION        0
#define AVR32_MACB_TXD_0_PIN               34
#define AVR32_MACB_TXD_0_FUNCTION          0
#define AVR32_MACB_TXD_1_PIN               35
#define AVR32_MACB_TXD_1_FUNCTION          0
#define AVR32_MACB_TXD_2_PIN               42
#define AVR32_MACB_TXD_2_FUNCTION          0
#define AVR32_MACB_TXD_3_PIN               43
#define AVR32_MACB_TXD_3_FUNCTION          0
#define AVR32_MACB_TX_CLK_0_PIN            32
#define AVR32_MACB_TX_CLK_0_FUNCTION       0
#define AVR32_MACB_TX_EN_0_PIN             33
#define AVR32_MACB_TX_EN_0_FUNCTION        0
#define AVR32_MACB_TX_ER_0_PIN             44
#define AVR32_MACB_TX_ER_0_FUNCTION        0
#define AVR32_MACB_WOL_0_0_PIN             9
#define AVR32_MACB_WOL_0_0_FUNCTION        2
#define AVR32_MACB_WOL_0_1_PIN             18
#define AVR32_MACB_WOL_0_1_FUNCTION        2

#include "avr32/macb_112.h"


/* PDCA */
#define AVR32_PDCA_NUM                     1

/* PDCA */
#define AVR32_PDCA_ADDRESS                 0xFFFF0000
#define AVR32_PDCA                         (*((volatile avr32_pdca_t*)AVR32_PDCA_ADDRESS))
#define AVR32_PDCA_CLK_HSB                 37
#define AVR32_PDCA_CLK_PBA                 66
#define AVR32_PDCA_IRQ_0                  96
#define AVR32_PDCA_IRQ_1                  97
#define AVR32_PDCA_IRQ_2                  98
#define AVR32_PDCA_IRQ_3                  99
#define AVR32_PDCA_IRQ_4                  100
#define AVR32_PDCA_IRQ_5                  101
#define AVR32_PDCA_IRQ_6                  102
#define AVR32_PDCA_IRQ_7                  103
#define AVR32_PDCA_IRQ_8                  104
#define AVR32_PDCA_IRQ_9                  105
#define AVR32_PDCA_IRQ_10                 106
#define AVR32_PDCA_IRQ_11                 107
#define AVR32_PDCA_IRQ_12                 108
#define AVR32_PDCA_IRQ_13                 109
#define AVR32_PDCA_IRQ_14                 110
#define AVR32_PDCA_CHANNEL_LENGTH          15
#define AVR32_PDCA_PID_ADC_RX              0
#define AVR32_PDCA_PID_ABDAC_TX            17
#define AVR32_PDCA_PID_SPI0_RX             7
#define AVR32_PDCA_PID_SPI0_TX             15
#define AVR32_PDCA_PID_SPI1_RX             8
#define AVR32_PDCA_PID_SPI1_TX             16
#define AVR32_PDCA_PID_SSC_RX              1
#define AVR32_PDCA_PID_SSC_TX              9
#define AVR32_PDCA_PID_TWI_RX              6
#define AVR32_PDCA_PID_TWI_TX              14
#define AVR32_PDCA_PID_USART0_RX           2
#define AVR32_PDCA_PID_USART0_TX           10
#define AVR32_PDCA_PID_USART1_RX           3
#define AVR32_PDCA_PID_USART1_TX           11
#define AVR32_PDCA_PID_USART2_RX           4
#define AVR32_PDCA_PID_USART2_TX           12
#define AVR32_PDCA_PID_USART3_RX           5
#define AVR32_PDCA_PID_USART3_TX           13

#include "avr32/pdca_102.h"


/* PLL */

/* PLL0 */
#define AVR32_PLL0_DN_0_PIN                50
#define AVR32_PLL0_FDIV_0_PIN              52
#define AVR32_PLL0_FDIV_TEST_0_PIN         53
#define AVR32_PLL0_LOCK_0_PIN              1
#define AVR32_PLL0_PLLCLK_0_PIN            0
#define AVR32_PLL0_UP_0_PIN                51


/* PLL1 */
#define AVR32_PLL1_DN_0_PIN                55
#define AVR32_PLL1_FDIV_0_PIN              57
#define AVR32_PLL1_FDIV_TEST_0_PIN         58
#define AVR32_PLL1_LOCK_0_PIN              3
#define AVR32_PLL1_PLLCLK_0_PIN            2
#define AVR32_PLL1_UP_0_PIN                56

/* PM */
#define AVR32_PM_NUM                       1

/* PM */
#define AVR32_PM_ADDRESS                   0xFFFF0C00
#define AVR32_PM                           (*((volatile avr32_pm_t*)AVR32_PM_ADDRESS))
#define AVR32_PM_CLK_PBA                   67
#define AVR32_PM_IRQ                       41
#define AVR32_PM_GCLK_ABDAC                5
#define AVR32_PM_GCLK_MSB                  3
#define AVR32_PM_GCLK_NUM                  6
#define AVR32_PM_GCLK_USBB                 4
#define AVR32_PM_GPLP_NUM                  2
#define AVR32_PM_CPU_MAX_FREQ              66000000
#define AVR32_PM_HSB_MAX_FREQ              66000000
#define AVR32_PM_PBA_MAX_FREQ              66000000
#define AVR32_PM_PBB_MAX_FREQ              66000000
#define AVR32_PM_PLL_VCO_RANGE0_MAX_FREQ   240000000
#define AVR32_PM_PLL_VCO_RANGE0_MIN_FREQ   160000000
#define AVR32_PM_PLL_VCO_RANGE1_MAX_FREQ   180000000
#define AVR32_PM_PLL_VCO_RANGE1_MIN_FREQ   80000000
#define AVR32_PM_RCOSC_CALIBRATION_BITS    10
#define AVR32_PM_RCOSC_FREQUENCY           115200
#define AVR32_PM_GCLK_0_0_PIN              7
#define AVR32_PM_GCLK_0_0_FUNCTION         1
#define AVR32_PM_GCLK_0_1_PIN              51
#define AVR32_PM_GCLK_0_1_FUNCTION         1
#define AVR32_PM_GCLK_1_0_PIN              52
#define AVR32_PM_GCLK_1_0_FUNCTION         1
#define AVR32_PM_GCLK_2_0_PIN              53
#define AVR32_PM_GCLK_2_0_FUNCTION         1
#define AVR32_PM_GCLK_3_0_PIN              54
#define AVR32_PM_GCLK_3_0_FUNCTION         1
#define AVR32_PM_GCLK_1_1_PIN              61
#define AVR32_PM_GCLK_1_1_FUNCTION         1
#define AVR32_PM_GCLK_2_1_PIN              62
#define AVR32_PM_GCLK_2_1_FUNCTION         1
#define AVR32_PM_GCLK_3_1_PIN              63
#define AVR32_PM_GCLK_3_1_FUNCTION         1
#define AVR32_PM_RSTM_N_0_PIN              63
#define AVR32_PM_XIN0_0_PIN                66
#define AVR32_PM_XIN1_0_PIN                68
#define AVR32_PM_XIN32_0_PIN               64
#define AVR32_PM_XOUT0_0_PIN               67
#define AVR32_PM_XOUT1_0_PIN               69
#define AVR32_PM_XOUT32_0_PIN              65
#define AVR32_PM_CLK_GRP_CPU               0
#define AVR32_PM_CLK_GRP_HSB               1
#define AVR32_PM_CLK_GRP_PBA               2
#define AVR32_PM_CLK_GRP_PBB               3
#define AVR32_PM_NUM_CLK_GRPS              4
#define AVR32_PM_NUM_CLKS_PER_GRP0         17
#define AVR32_PM_NUM_CLKS_PER_GRP1         7
#define AVR32_PM_NUM_CLKS_PER_GRP2         16
#define AVR32_PM_NUM_CLKS_PER_GRP3         6

#include "avr32/pm_231.h"


/* PULLUP */

/* PULLUP0 */
#define AVR32_PULLUP0_LPC_PULLUP_0_0_PIN   98
#define AVR32_PULLUP0_LPC_PULLUP_0_1_PIN   97
#define AVR32_PULLUP0_LPC_PULLUP_0_2_PIN   96
#define AVR32_PULLUP0_LPC_PULLUP_0_3_PIN   95
#define AVR32_PULLUP0_LPC_PULLUP_0_4_PIN   94
#define AVR32_PULLUP0_LPC_PULLUP_0_5_PIN   93
#define AVR32_PULLUP0_LPC_PULLUP_0_6_PIN   92
#define AVR32_PULLUP0_LPC_PULLUP_0_7_PIN   91
#define AVR32_PULLUP0_LPC_PULLUP_0_8_PIN   90
#define AVR32_PULLUP0_LPC_PULLUP_0_9_PIN   109
#define AVR32_PULLUP0_LPC_PULLUP_0_10_PIN  108
#define AVR32_PULLUP0_LPC_PULLUP_0_11_PIN  107
#define AVR32_PULLUP0_LPC_PULLUP_0_12_PIN  106
#define AVR32_PULLUP0_LPC_PULLUP_0_13_PIN  71
#define AVR32_PULLUP0_LPC_PULLUP_0_14_PIN  70
#define AVR32_PULLUP0_LPC_PULLUP_0_15_PIN  105
#define AVR32_PULLUP0_LPC_PULLUP_0_16_PIN  104
#define AVR32_PULLUP0_LPC_PULLUP_0_17_PIN  103
#define AVR32_PULLUP0_LPC_PULLUP_0_18_PIN  102
#define AVR32_PULLUP0_LPC_PULLUP_0_19_PIN  101


/* PULLUP1 */
#define AVR32_PULLUP1_LPC_PULLUP_0_0_PIN   100
#define AVR32_PULLUP1_LPC_PULLUP_0_1_PIN   99
#define AVR32_PULLUP1_LPC_PULLUP_0_2_PIN   89
#define AVR32_PULLUP1_LPC_PULLUP_0_3_PIN   88
#define AVR32_PULLUP1_LPC_PULLUP_0_4_PIN   87
#define AVR32_PULLUP1_LPC_PULLUP_0_5_PIN   86
#define AVR32_PULLUP1_LPC_PULLUP_0_6_PIN   85
#define AVR32_PULLUP1_LPC_PULLUP_0_7_PIN   84
#define AVR32_PULLUP1_LPC_PULLUP_0_8_PIN   83
#define AVR32_PULLUP1_LPC_PULLUP_0_9_PIN   82
#define AVR32_PULLUP1_LPC_PULLUP_0_10_PIN  81
#define AVR32_PULLUP1_LPC_PULLUP_0_11_PIN  80
#define AVR32_PULLUP1_LPC_PULLUP_0_12_PIN  79
#define AVR32_PULLUP1_LPC_PULLUP_0_13_PIN  78
#define AVR32_PULLUP1_LPC_PULLUP_0_14_PIN  77
#define AVR32_PULLUP1_LPC_PULLUP_0_15_PIN  76
#define AVR32_PULLUP1_LPC_PULLUP_0_16_PIN  75
#define AVR32_PULLUP1_LPC_PULLUP_0_17_PIN  74
#define AVR32_PULLUP1_LPC_PULLUP_0_18_PIN  73
#define AVR32_PULLUP1_LPC_PULLUP_0_19_PIN  72

/* PWM */
#define AVR32_PWM_NUM                      1

/* PWM */
#define AVR32_PWM_ADDRESS                  0xFFFF3000
#define AVR32_PWM                          (*((volatile avr32_pwm_t*)AVR32_PWM_ADDRESS))
#define AVR32_PWM_CLK_PBA                  76
#define AVR32_PWM_IRQ                      384
#define AVR32_PWM_CHANNEL_LENGTH           0x7
#define AVR32_PWM_LINES_MSB                6
#define AVR32_PWM_0_PIN                    51
#define AVR32_PWM_0_FUNCTION               0
#define AVR32_PWM_1_PIN                    52
#define AVR32_PWM_1_FUNCTION               0
#define AVR32_PWM_2_PIN                    53
#define AVR32_PWM_2_FUNCTION               0
#define AVR32_PWM_3_PIN                    54
#define AVR32_PWM_3_FUNCTION               0
#define AVR32_PWM_4_0_PIN                  5
#define AVR32_PWM_4_0_FUNCTION             1
#define AVR32_PWM_5_0_PIN                  6
#define AVR32_PWM_5_0_FUNCTION             1
#define AVR32_PWM_4_1_PIN                  59
#define AVR32_PWM_4_1_FUNCTION             1
#define AVR32_PWM_5_1_PIN                  60
#define AVR32_PWM_5_1_FUNCTION             1
#define AVR32_PWM_6_PIN                    50
#define AVR32_PWM_6_FUNCTION               2

#include "avr32/pwm_130.h"


/* RTC */
#define AVR32_RTC_NUM                      1

/* RTC */
#define AVR32_RTC_ADDRESS                  0xFFFF0D00
#define AVR32_RTC                          (*((volatile avr32_rtc_t*)AVR32_RTC_ADDRESS))
#define AVR32_RTC_CLK_PBA                  67
#define AVR32_RTC_IRQ                      40

#include "avr32/rtc_231.h"


/* SPI */
#define AVR32_SPI_NUM                      2

/* SPI0 */
#define AVR32_SPI0_ADDRESS                 0xFFFF2400
#define AVR32_SPI0                         (*((volatile avr32_spi_t*)AVR32_SPI0_ADDRESS))
#define AVR32_SPI0_CLK_PBA                 69
#define AVR32_SPI0_IRQ                     288
#define AVR32_SPI0_SPI_CS_MSB              3
#define AVR32_SPI0_MISO_0_0_PIN            11
#define AVR32_SPI0_MISO_0_0_FUNCTION       0
#define AVR32_SPI0_MISO_0_1_PIN            77
#define AVR32_SPI0_MISO_0_1_FUNCTION       1
#define AVR32_SPI0_MOSI_0_0_PIN            12
#define AVR32_SPI0_MOSI_0_0_FUNCTION       0
#define AVR32_SPI0_MOSI_0_1_PIN            76
#define AVR32_SPI0_MOSI_0_1_FUNCTION       1
#define AVR32_SPI0_NPCS_0_0_PIN            10
#define AVR32_SPI0_NPCS_0_0_FUNCTION       0
#define AVR32_SPI0_NPCS_1_0_PIN            8
#define AVR32_SPI0_NPCS_1_0_FUNCTION       1
#define AVR32_SPI0_NPCS_2_0_PIN            9
#define AVR32_SPI0_NPCS_2_0_FUNCTION       1
#define AVR32_SPI0_NPCS_0_1_PIN            74
#define AVR32_SPI0_NPCS_0_1_FUNCTION       1
#define AVR32_SPI0_NPCS_1_1_PIN            73
#define AVR32_SPI0_NPCS_1_1_FUNCTION       1
#define AVR32_SPI0_NPCS_2_1_PIN            72
#define AVR32_SPI0_NPCS_2_1_FUNCTION       1
#define AVR32_SPI0_NPCS_3_0_PIN            71
#define AVR32_SPI0_NPCS_3_0_FUNCTION       1
#define AVR32_SPI0_NPCS_3_1_PIN            7
#define AVR32_SPI0_NPCS_3_1_FUNCTION       2
#define AVR32_SPI0_SCAN_CLOCK_0_PIN        13
#define AVR32_SPI0_SCK_0_0_PIN             13
#define AVR32_SPI0_SCK_0_0_FUNCTION        0
#define AVR32_SPI0_SCK_0_1_PIN             75
#define AVR32_SPI0_SCK_0_1_FUNCTION        1


/* SPI1 */
#define AVR32_SPI1_ADDRESS                 0xFFFF2800
#define AVR32_SPI1                         (*((volatile avr32_spi_t*)AVR32_SPI1_ADDRESS))
#define AVR32_SPI1_CLK_PBA                 70
#define AVR32_SPI1_IRQ                     320
#define AVR32_SPI1_SPI_CS_MSB              3
#define AVR32_SPI1_MISO_0_0_PIN            17
#define AVR32_SPI1_MISO_0_0_FUNCTION       1
#define AVR32_SPI1_MISO_0_1_PIN            70
#define AVR32_SPI1_MISO_0_1_FUNCTION       1
#define AVR32_SPI1_MOSI_0_0_PIN            16
#define AVR32_SPI1_MOSI_0_0_FUNCTION       1
#define AVR32_SPI1_MOSI_0_1_PIN            105
#define AVR32_SPI1_MOSI_0_1_FUNCTION       1
#define AVR32_SPI1_NPCS_0_0_PIN            14
#define AVR32_SPI1_NPCS_0_0_FUNCTION       1
#define AVR32_SPI1_NPCS_1_0_PIN            18
#define AVR32_SPI1_NPCS_1_0_FUNCTION       1
#define AVR32_SPI1_NPCS_2_0_PIN            19
#define AVR32_SPI1_NPCS_2_0_FUNCTION       1
#define AVR32_SPI1_NPCS_3_PIN              20
#define AVR32_SPI1_NPCS_3_FUNCTION         1
#define AVR32_SPI1_NPCS_0_1_PIN            103
#define AVR32_SPI1_NPCS_0_1_FUNCTION       1
#define AVR32_SPI1_NPCS_1_1_PIN            102
#define AVR32_SPI1_NPCS_1_1_FUNCTION       1
#define AVR32_SPI1_NPCS_2_1_PIN            101
#define AVR32_SPI1_NPCS_2_1_FUNCTION       1
#define AVR32_SPI1_SCAN_CLOCK_0_PIN        15
#define AVR32_SPI1_SCK_0_0_PIN             15
#define AVR32_SPI1_SCK_0_0_FUNCTION        1
#define AVR32_SPI1_SCK_0_1_PIN             104
#define AVR32_SPI1_SCK_0_1_FUNCTION        1

#include "avr32/spi_1991.h"


/* SSC */
#define AVR32_SSC_NUM                      1

/* SSC */
#define AVR32_SSC_ADDRESS                  0xFFFF3400
#define AVR32_SSC                          (*((volatile avr32_ssc_t*)AVR32_SSC_ADDRESS))
#define AVR32_SSC_CLK_PBA                  77
#define AVR32_SSC_IRQ                      416
#define AVR32_SSC_RX_CLOCK_0_PIN           18
#define AVR32_SSC_RX_CLOCK_0_FUNCTION      0
#define AVR32_SSC_RX_DATA_0_PIN            17
#define AVR32_SSC_RX_DATA_0_FUNCTION       0
#define AVR32_SSC_RX_FRAME_SYNC_0_PIN      19
#define AVR32_SSC_RX_FRAME_SYNC_0_FUNCTION 0
#define AVR32_SSC_TX_CLOCK_0_PIN           15
#define AVR32_SSC_TX_CLOCK_0_FUNCTION      0
#define AVR32_SSC_TX_DATA_0_PIN            16
#define AVR32_SSC_TX_DATA_0_FUNCTION       0
#define AVR32_SSC_TX_FRAME_SYNC_0_PIN      14
#define AVR32_SSC_TX_FRAME_SYNC_0_FUNCTION 0

#include "avr32/ssc_310.h"


/* TC */
#define AVR32_TC_NUM                       1

/* TC */
#define AVR32_TC_ADDRESS                   0xFFFF3800
#define AVR32_TC                           (*((volatile avr32_tc_t*)AVR32_TC_ADDRESS))
#define AVR32_TC_CLK_PBA                   78
#define AVR32_TC_IRQ0                      448
#define AVR32_TC_IRQ1                      449
#define AVR32_TC_IRQ2                      450
#define AVR32_TC_A0_0_0_PIN                55
#define AVR32_TC_A0_0_0_FUNCTION           0
#define AVR32_TC_A0_0_1_PIN                106
#define AVR32_TC_A0_0_1_FUNCTION           2
#define AVR32_TC_A1_0_0_PIN                57
#define AVR32_TC_A1_0_0_FUNCTION           0
#define AVR32_TC_A1_0_1_PIN                88
#define AVR32_TC_A1_0_1_FUNCTION           2
#define AVR32_TC_A2_0_0_PIN                59
#define AVR32_TC_A2_0_0_FUNCTION           0
#define AVR32_TC_A2_0_1_PIN                86
#define AVR32_TC_A2_0_1_FUNCTION           2
#define AVR32_TC_B0_0_0_PIN                56
#define AVR32_TC_B0_0_0_FUNCTION           0
#define AVR32_TC_B0_0_1_PIN                89
#define AVR32_TC_B0_0_1_FUNCTION           2
#define AVR32_TC_B1_0_0_PIN                58
#define AVR32_TC_B1_0_0_FUNCTION           0
#define AVR32_TC_B1_0_1_PIN                87
#define AVR32_TC_B1_0_1_FUNCTION           2
#define AVR32_TC_B2_0_0_PIN                60
#define AVR32_TC_B2_0_0_FUNCTION           0
#define AVR32_TC_B2_0_1_PIN                85
#define AVR32_TC_B2_0_1_FUNCTION           2
#define AVR32_TC_CLK0_0_0_PIN              0
#define AVR32_TC_CLK0_0_0_FUNCTION         1
#define AVR32_TC_CLK0_0_1_PIN              44
#define AVR32_TC_CLK0_0_1_FUNCTION         1
#define AVR32_TC_CLK0_0_2_PIN              84
#define AVR32_TC_CLK0_0_2_FUNCTION         2
#define AVR32_TC_CLK1_0_0_PIN              1
#define AVR32_TC_CLK1_0_0_FUNCTION         1
#define AVR32_TC_CLK1_0_1_PIN              45
#define AVR32_TC_CLK1_0_1_FUNCTION         1
#define AVR32_TC_CLK1_0_2_PIN              83
#define AVR32_TC_CLK1_0_2_FUNCTION         2
#define AVR32_TC_CLK2_0_0_PIN              2
#define AVR32_TC_CLK2_0_0_FUNCTION         1
#define AVR32_TC_CLK2_0_1_PIN              46
#define AVR32_TC_CLK2_0_1_FUNCTION         1
#define AVR32_TC_CLK2_0_2_PIN              82
#define AVR32_TC_CLK2_0_2_FUNCTION         2

#include "avr32/tc_222.h"


/* TWI */
#define AVR32_TWI_NUM                      1

/* TWI */
#define AVR32_TWI_ADDRESS                  0xFFFF2C00
#define AVR32_TWI                          (*((volatile avr32_twi_t*)AVR32_TWI_ADDRESS))
#define AVR32_TWI_CLK_PBA                  71
#define AVR32_TWI_IRQ                      352
#define AVR32_TWI_SCL_0_0_PIN              30
#define AVR32_TWI_SCL_0_0_FUNCTION         0
#define AVR32_TWI_SCL_0_1_PIN              30
#define AVR32_TWI_SCL_INPUT_TEST_0_PIN     0
#define AVR32_TWI_SCL_OUTPUT_TEST_0_PIN    1
#define AVR32_TWI_SDA_0_0_PIN              29
#define AVR32_TWI_SDA_0_0_FUNCTION         0
#define AVR32_TWI_SDA_0_1_PIN              29
#define AVR32_TWI_SDA_INPUT_TEST_0_PIN     2
#define AVR32_TWI_SDA_OUTPUT_TEST_0_PIN    3

#include "avr32/twi_211.h"


/* USART */
#define AVR32_USART_NUM                    4

/* USART0 */
#define AVR32_USART0_ADDRESS               0xFFFF1400
#define AVR32_USART0                       (*((volatile avr32_usart_t*)AVR32_USART0_ADDRESS))
#define AVR32_USART0_CLK_PBA               72
#define AVR32_USART0_IRQ                   160
#define AVR32_USART0_CLK_0_PIN             2
#define AVR32_USART0_CLK_0_FUNCTION        0
#define AVR32_USART0_CTS_0_0_PIN           4
#define AVR32_USART0_CTS_0_0_FUNCTION      0
#define AVR32_USART0_CTS_0_1_PIN           98
#define AVR32_USART0_CTS_0_1_FUNCTION      1
#define AVR32_USART0_RTS_0_0_PIN           3
#define AVR32_USART0_RTS_0_0_FUNCTION      0
#define AVR32_USART0_RTS_0_1_PIN           97
#define AVR32_USART0_RTS_0_1_FUNCTION      1
#define AVR32_USART0_RXD_0_0_PIN           0
#define AVR32_USART0_RXD_0_0_FUNCTION      0
#define AVR32_USART0_RXD_0_1_PIN           100
#define AVR32_USART0_RXD_0_1_FUNCTION      1
#define AVR32_USART0_TXD_0_0_PIN           1
#define AVR32_USART0_TXD_0_0_FUNCTION      0
#define AVR32_USART0_TXD_0_1_PIN           99
#define AVR32_USART0_TXD_0_1_FUNCTION      1


/* USART1 */
#define AVR32_USART1_ADDRESS               0xFFFF1800
#define AVR32_USART1                       (*((volatile avr32_usart_t*)AVR32_USART1_ADDRESS))
#define AVR32_USART1_CLK_PBA               73
#define AVR32_USART1_IRQ                   192
#define AVR32_USART1_CLK_0_PIN             7
#define AVR32_USART1_CLK_0_FUNCTION        0
#define AVR32_USART1_CTS_0_0_PIN           9
#define AVR32_USART1_CTS_0_0_FUNCTION      0
#define AVR32_USART1_CTS_0_1_PIN           94
#define AVR32_USART1_CTS_0_1_FUNCTION      1
#define AVR32_USART1_DCD_0_PIN             55
#define AVR32_USART1_DCD_0_FUNCTION        1
#define AVR32_USART1_DSR_0_PIN             56
#define AVR32_USART1_DSR_0_FUNCTION        1
#define AVR32_USART1_DTR_0_PIN             57
#define AVR32_USART1_DTR_0_FUNCTION        1
#define AVR32_USART1_RI_0_PIN              58
#define AVR32_USART1_RI_0_FUNCTION         1
#define AVR32_USART1_RTS_0_0_PIN           8
#define AVR32_USART1_RTS_0_0_FUNCTION      0
#define AVR32_USART1_RTS_0_1_PIN           93
#define AVR32_USART1_RTS_0_1_FUNCTION      1
#define AVR32_USART1_RXD_0_0_PIN           5
#define AVR32_USART1_RXD_0_0_FUNCTION      0
#define AVR32_USART1_RXD_0_1_PIN           96
#define AVR32_USART1_RXD_0_1_FUNCTION      1
#define AVR32_USART1_TXD_0_0_PIN           6
#define AVR32_USART1_TXD_0_0_FUNCTION      0
#define AVR32_USART1_TXD_0_1_PIN           95
#define AVR32_USART1_TXD_0_1_FUNCTION      1


/* USART2 */
#define AVR32_USART2_ADDRESS               0xFFFF1C00
#define AVR32_USART2                       (*((volatile avr32_usart_t*)AVR32_USART2_ADDRESS))
#define AVR32_USART2_CLK_PBA               74
#define AVR32_USART2_IRQ                   224
#define AVR32_USART2_CLK_0_PIN             63
#define AVR32_USART2_CLK_0_FUNCTION        0
#define AVR32_USART2_CTS_0_0_PIN           30
#define AVR32_USART2_CTS_0_0_FUNCTION      1
#define AVR32_USART2_CTS_0_1_PIN           33
#define AVR32_USART2_CTS_0_1_FUNCTION      1
#define AVR32_USART2_CTS_0_2_PIN           108
#define AVR32_USART2_CTS_0_2_FUNCTION      1
#define AVR32_USART2_RTS_0_0_PIN           29
#define AVR32_USART2_RTS_0_0_FUNCTION      1
#define AVR32_USART2_RTS_0_1_PIN           32
#define AVR32_USART2_RTS_0_1_FUNCTION      1
#define AVR32_USART2_RTS_0_2_PIN           107
#define AVR32_USART2_RTS_0_2_FUNCTION      1
#define AVR32_USART2_RXD_0_0_PIN           61
#define AVR32_USART2_RXD_0_0_FUNCTION      0
#define AVR32_USART2_RXD_0_1_PIN           90
#define AVR32_USART2_RXD_0_1_FUNCTION      1
#define AVR32_USART2_TXD_0_0_PIN           62
#define AVR32_USART2_TXD_0_0_FUNCTION      0
#define AVR32_USART2_TXD_0_1_PIN           109
#define AVR32_USART2_TXD_0_1_FUNCTION      1


/* USART3 */
#define AVR32_USART3_ADDRESS               0xFFFF2000
#define AVR32_USART3                       (*((volatile avr32_usart_t*)AVR32_USART3_ADDRESS))
#define AVR32_USART3_CLK_PBA               75
#define AVR32_USART3_IRQ                   256
#define AVR32_USART3_CLK_0_PIN             36
#define AVR32_USART3_CLK_0_FUNCTION        1
#define AVR32_USART3_CTS_0_0_PIN           88
#define AVR32_USART3_CTS_0_0_FUNCTION      1
#define AVR32_USART3_CTS_0_1_PIN           33
#define AVR32_USART3_CTS_0_1_FUNCTION      2
#define AVR32_USART3_RTS_0_0_PIN           89
#define AVR32_USART3_RTS_0_0_FUNCTION      1
#define AVR32_USART3_RTS_0_1_PIN           32
#define AVR32_USART3_RTS_0_1_FUNCTION      2
#define AVR32_USART3_RXD_0_0_PIN           42
#define AVR32_USART3_RXD_0_0_FUNCTION      1
#define AVR32_USART3_RXD_0_1_PIN           92
#define AVR32_USART3_RXD_0_1_FUNCTION      1
#define AVR32_USART3_TXD_0_0_PIN           43
#define AVR32_USART3_TXD_0_0_FUNCTION      1
#define AVR32_USART3_TXD_0_1_PIN           91
#define AVR32_USART3_TXD_0_1_FUNCTION      1

#include "avr32/usart_400.h"


/* USBB */
#define AVR32_USBB_NUM                     1

/* USBB */
#define AVR32_USBB_ADDRESS                 0xFFFE0000
#define AVR32_USBB                         (*((volatile avr32_usbb_t*)AVR32_USBB_ADDRESS))
#define AVR32_USBB_CLK_HSB                 35
#define AVR32_USBB_CLK_PBB                 97
#define AVR32_USBB_IRQ                     544
#define AVR32_USBB_EPT_NUM                 7
#define AVR32_USBB_ENABLE_TEST_0_PIN       14
#define AVR32_USBB_EOPN_TEST_0_PIN         0
#define AVR32_USBB_FS_TEST_0_PIN           1
#define AVR32_USBB_OEN_TEST_0_PIN          2
#define AVR32_USBB_ONN_TEST_0_PIN          3
#define AVR32_USBB_PDONDM_TEST_0_PIN       8
#define AVR32_USBB_PDONDP_TEST_0_PIN       9
#define AVR32_USBB_PUIDLE_TEST_0_PIN       11
#define AVR32_USBB_PUON_TEST_0_PIN         10
#define AVR32_USBB_RXDM_TEST_0_PIN         4
#define AVR32_USBB_RXDP_TEST_0_PIN         5
#define AVR32_USBB_RXD_TEST_0_PIN          6
#define AVR32_USBB_SCAN_CLOCK_0_PIN        62
#define AVR32_USBB_SESSVLD_TEST_0_PIN      12
#define AVR32_USBB_TXD_TEST_0_PIN          7
#define AVR32_USBB_USB_ID_0_0_PIN          11
#define AVR32_USBB_USB_ID_0_0_FUNCTION     1
#define AVR32_USBB_USB_ID_0_1_PIN          48
#define AVR32_USBB_USB_ID_0_1_FUNCTION     1
#define AVR32_USBB_USB_ID_0_2_PIN          21
#define AVR32_USBB_USB_ID_0_2_FUNCTION     2
#define AVR32_USBB_USB_VBOF_0_0_PIN        12
#define AVR32_USBB_USB_VBOF_0_0_FUNCTION   1
#define AVR32_USBB_USB_VBOF_0_1_PIN        49
#define AVR32_USBB_USB_VBOF_0_1_FUNCTION   1
#define AVR32_USBB_USB_VBOF_0_2_PIN        22
#define AVR32_USBB_USB_VBOF_0_2_FUNCTION   2
#define AVR32_USBB_VAVBUSVLD_TEST_0_PIN    13
#define AVR32_USBB_VBUSDISCHARGE_TEST_0_PIN 15
#define AVR32_USBB_VBUSPULSING_TEST_0_PIN  16

#include "avr32/usbb_311.h"


/* WDT */
#define AVR32_WDT_NUM                      1

/* WDT */
#define AVR32_WDT_ADDRESS                  0xFFFF0D30
#define AVR32_WDT                          (*((volatile avr32_wdt_t*)AVR32_WDT_ADDRESS))
#define AVR32_WDT_WDTEXTRST_MSB            1

#include "avr32/wdt_231.h"


/* PAD->GPIO bits mapping */
#define AVR32_PIN_PA00   0
#define AVR32_PIN_PA01   1
#define AVR32_PIN_PA02   2
#define AVR32_PIN_PA03   3
#define AVR32_PIN_PA04   4
#define AVR32_PIN_PA05   5
#define AVR32_PIN_PA06   6
#define AVR32_PIN_PA07   7
#define AVR32_PIN_PA08   8
#define AVR32_PIN_PA09   9
#define AVR32_PIN_PA10   10
#define AVR32_PIN_PA11   11
#define AVR32_PIN_PA12   12
#define AVR32_PIN_PA13   13
#define AVR32_PIN_PA14   14
#define AVR32_PIN_PA15   15
#define AVR32_PIN_PA16   16
#define AVR32_PIN_PA17   17
#define AVR32_PIN_PA18   18
#define AVR32_PIN_PA19   19
#define AVR32_PIN_PA20   20
#define AVR32_PIN_PA21   21
#define AVR32_PIN_PA22   22
#define AVR32_PIN_PA23   23
#define AVR32_PIN_PA24   24
#define AVR32_PIN_PA25   25
#define AVR32_PIN_PA26   26
#define AVR32_PIN_PA27   27
#define AVR32_PIN_PA28   28
#define AVR32_PIN_PA29   29
#define AVR32_PIN_PA30   30
#define AVR32_PIN_PB00   32
#define AVR32_PIN_PB01   33
#define AVR32_PIN_PB02   34
#define AVR32_PIN_PB03   35
#define AVR32_PIN_PB04   36
#define AVR32_PIN_PB05   37
#define AVR32_PIN_PB06   38
#define AVR32_PIN_PB07   39
#define AVR32_PIN_PB08   40
#define AVR32_PIN_PB09   41
#define AVR32_PIN_PB10   42
#define AVR32_PIN_PB11   43
#define AVR32_PIN_PB12   44
#define AVR32_PIN_PB13   45
#define AVR32_PIN_PB14   46
#define AVR32_PIN_PB15   47
#define AVR32_PIN_PB16   48
#define AVR32_PIN_PB17   49
#define AVR32_PIN_PB18   50
#define AVR32_PIN_PB19   51
#define AVR32_PIN_PB20   52
#define AVR32_PIN_PB21   53
#define AVR32_PIN_PB22   54
#define AVR32_PIN_PB23   55
#define AVR32_PIN_PB24   56
#define AVR32_PIN_PB25   57
#define AVR32_PIN_PB26   58
#define AVR32_PIN_PB27   59
#define AVR32_PIN_PB28   60
#define AVR32_PIN_PB29   61
#define AVR32_PIN_PB30   62
#define AVR32_PIN_PB31   63
#define AVR32_PIN_PC00   64
#define AVR32_PIN_PC01   65
#define AVR32_PIN_PC02   66
#define AVR32_PIN_PC03   67
#define AVR32_PIN_PC04   68
#define AVR32_PIN_PC05   69
#define AVR32_PIN_PX00   100
#define AVR32_PIN_PX01   99
#define AVR32_PIN_PX02   98
#define AVR32_PIN_PX03   97
#define AVR32_PIN_PX04   96
#define AVR32_PIN_PX05   95
#define AVR32_PIN_PX06   94
#define AVR32_PIN_PX07   93
#define AVR32_PIN_PX08   92
#define AVR32_PIN_PX09   91
#define AVR32_PIN_PX10   90
#define AVR32_PIN_PX11   109
#define AVR32_PIN_PX12   108
#define AVR32_PIN_PX13   107
#define AVR32_PIN_PX14   106
#define AVR32_PIN_PX15   89
#define AVR32_PIN_PX16   88
#define AVR32_PIN_PX17   87
#define AVR32_PIN_PX18   86
#define AVR32_PIN_PX19   85
#define AVR32_PIN_PX20   84
#define AVR32_PIN_PX21   83
#define AVR32_PIN_PX22   82
#define AVR32_PIN_PX23   81
#define AVR32_PIN_PX24   80
#define AVR32_PIN_PX25   79
#define AVR32_PIN_PX26   78
#define AVR32_PIN_PX27   77
#define AVR32_PIN_PX28   76
#define AVR32_PIN_PX29   75
#define AVR32_PIN_PX30   74
#define AVR32_PIN_PX31   73
#define AVR32_PIN_PX32   72
#define AVR32_PIN_PX33   71
#define AVR32_PIN_PX34   70
#define AVR32_PIN_PX35   105
#define AVR32_PIN_PX36   104
#define AVR32_PIN_PX37   103
#define AVR32_PIN_PX38   102
#define AVR32_PIN_PX39   101


/* #ifndef AVR32_UC3A0512_H_INCLUDED */
#endif

Last update: 02/29/12