From 6f0d102a3607d61ffc6115bc7bd80b9f25fccff1 Mon Sep 17 00:00:00 2001 From: Thibaut VIARD Date: Mon, 7 Nov 2011 16:49:51 +0100 Subject: [PATCH] [sam] merging with latest headers delivery --- .../sam/cores/sam/wiring_analog.c.disabled | 256 ------------- .../component/{adc.h => component_adc.h} | 78 ++-- .../{chipid.h => component_chipid.h} | 29 +- .../component/{dacc.h => component_dacc.h} | 29 +- .../component/{efc.h => component_efc.h} | 29 +- .../sam3n/include/component/component_gpbr.h | 53 +++ .../{matrix.h => component_matrix.h} | 29 +- .../component/{pdc.h => component_pdc.h} | 29 +- .../component/{pio.h => component_pio.h} | 29 +- .../component/{pmc.h => component_pmc.h} | 290 +++++++-------- .../component/{pwm.h => component_pwm.h} | 29 +- .../component/{rstc.h => component_rstc.h} | 29 +- .../component/{rtc.h => component_rtc.h} | 29 +- .../component/{rtt.h => component_rtt.h} | 29 +- .../component/{spi.h => component_spi.h} | 29 +- .../component/{supc.h => component_supc.h} | 29 +- .../component/{tc.h => component_tc.h} | 29 +- .../component/{twi.h => component_twi.h} | 29 +- .../component/{uart.h => component_uart.h} | 29 +- .../component/{usart.h => component_usart.h} | 29 +- .../component/{wdt.h => component_wdt.h} | 29 +- .../cmsis/sam3n/include/component/gpbr.h | 26 -- .../cmsis/sam3n/include/instance/chipid.h | 15 - .../libsam/cmsis/sam3n/include/instance/efc.h | 19 - .../cmsis/sam3n/include/instance/gpbr.h | 13 - .../instance/{adc.h => instance_adc.h} | 29 +- .../sam3n/include/instance/instance_chipid.h | 42 +++ .../instance/{dacc.h => instance_dacc.h} | 29 +- .../sam3n/include/instance/instance_efc.h | 46 +++ .../sam3n/include/instance/instance_gpbr.h | 40 +++ .../instance/{matrix.h => instance_matrix.h} | 29 +- .../instance/{pioa.h => instance_pioa.h} | 29 +- .../instance/{piob.h => instance_piob.h} | 29 +- .../instance/{pioc.h => instance_pioc.h} | 29 +- .../instance/{pmc.h => instance_pmc.h} | 45 ++- .../instance/{pwm.h => instance_pwm.h} | 29 +- .../sam3n/include/instance/instance_rstc.h | 44 +++ .../instance/{rtc.h => instance_rtc.h} | 29 +- .../sam3n/include/instance/instance_rtt.h | 46 +++ .../instance/{spi.h => instance_spi.h} | 29 +- .../sam3n/include/instance/instance_supc.h | 50 +++ .../instance/{tc0.h => instance_tc0.h} | 29 +- .../instance/{tc1.h => instance_tc1.h} | 29 +- .../instance/{twi0.h => instance_twi0.h} | 29 +- .../instance/{twi1.h => instance_twi1.h} | 29 +- .../instance/{uart0.h => instance_uart0.h} | 29 +- .../instance/{uart1.h => instance_uart1.h} | 29 +- .../instance/{usart0.h => instance_usart0.h} | 29 +- .../instance/{usart1.h => instance_usart1.h} | 29 +- .../sam3n/include/instance/instance_wdt.h | 44 +++ .../cmsis/sam3n/include/instance/rstc.h | 17 - .../libsam/cmsis/sam3n/include/instance/rtt.h | 19 - .../cmsis/sam3n/include/instance/supc.h | 23 -- .../libsam/cmsis/sam3n/include/instance/wdt.h | 17 - .../include/pio/{sam3n1a.h => pio_sam3n1a.h} | 29 +- .../include/pio/{sam3n1b.h => pio_sam3n1b.h} | 29 +- .../include/pio/{sam3n1c.h => pio_sam3n1c.h} | 29 +- .../include/pio/{sam3n2a.h => pio_sam3n2a.h} | 29 +- .../include/pio/{sam3n2b.h => pio_sam3n2b.h} | 29 +- .../include/pio/{sam3n2c.h => pio_sam3n2c.h} | 29 +- .../include/pio/{sam3n4a.h => pio_sam3n4a.h} | 29 +- .../include/pio/{sam3n4b.h => pio_sam3n4b.h} | 29 +- .../include/pio/{sam3n4c.h => pio_sam3n4c.h} | 29 +- .../system/libsam/cmsis/sam3n/include/sam3n.h | 40 ++- .../libsam/cmsis/sam3n/include/sam3n1a.h | 130 ++++--- .../libsam/cmsis/sam3n/include/sam3n1b.h | 132 ++++--- .../libsam/cmsis/sam3n/include/sam3n1c.h | 136 ++++--- .../libsam/cmsis/sam3n/include/sam3n2a.h | 130 ++++--- .../libsam/cmsis/sam3n/include/sam3n2b.h | 132 ++++--- .../libsam/cmsis/sam3n/include/sam3n2c.h | 136 ++++--- .../libsam/cmsis/sam3n/include/sam3n4a.h | 130 ++++--- .../libsam/cmsis/sam3n/include/sam3n4b.h | 132 ++++--- .../libsam/cmsis/sam3n/include/sam3n4c.h | 136 ++++--- .../component/{acc.h => component_acc.h} | 29 +- .../component/{adc.h => component_adc.h} | 29 +- .../{chipid.h => component_chipid.h} | 29 +- .../component/{crccu.h => component_crccu.h} | 29 +- .../component/{dacc.h => component_dacc.h} | 29 +- .../component/{efc.h => component_efc.h} | 29 +- .../sam3s/include/component/component_gpbr.h | 53 +++ .../component/{hsmci.h => component_hsmci.h} | 29 +- .../{matrix.h => component_matrix.h} | 29 +- .../component/{pdc.h => component_pdc.h} | 29 +- .../component/{pio.h => component_pio.h} | 29 +- .../component/{pmc.h => component_pmc.h} | 50 ++- .../component/{pwm.h => component_pwm.h} | 29 +- .../component/{rstc.h => component_rstc.h} | 29 +- .../component/{rtc.h => component_rtc.h} | 29 +- .../component/{rtt.h => component_rtt.h} | 29 +- .../component/{smc.h => component_smc.h} | 29 +- .../component/{spi.h => component_spi.h} | 29 +- .../component/{ssc.h => component_ssc.h} | 29 +- .../component/{supc.h => component_supc.h} | 29 +- .../component/{tc.h => component_tc.h} | 29 +- .../component/{twi.h => component_twi.h} | 29 +- .../component/{uart.h => component_uart.h} | 29 +- .../component/{udp.h => component_udp.h} | 29 +- .../component/{usart.h => component_usart.h} | 29 +- .../component/{wdt.h => component_wdt.h} | 29 +- .../cmsis/sam3s/include/component/gpbr.h | 26 -- .../cmsis/sam3s/include/instance/chipid.h | 15 - .../libsam/cmsis/sam3s/include/instance/efc.h | 19 - .../cmsis/sam3s/include/instance/gpbr.h | 13 - .../instance/{acc.h => instance_acc.h} | 29 +- .../instance/{adc.h => instance_adc.h} | 29 +- .../sam3s/include/instance/instance_chipid.h | 42 +++ .../instance/{crccu.h => instance_crccu.h} | 29 +- .../instance/{dacc.h => instance_dacc.h} | 29 +- .../sam3s/include/instance/instance_efc.h | 46 +++ .../sam3s/include/instance/instance_gpbr.h | 40 +++ .../instance/{hsmci.h => instance_hsmci.h} | 29 +- .../instance/{matrix.h => instance_matrix.h} | 29 +- .../instance/{pioa.h => instance_pioa.h} | 29 +- .../instance/{piob.h => instance_piob.h} | 29 +- .../instance/{pioc.h => instance_pioc.h} | 29 +- .../instance/{pmc.h => instance_pmc.h} | 29 +- .../instance/{pwm.h => instance_pwm.h} | 29 +- .../sam3s/include/instance/instance_rstc.h | 44 +++ .../instance/{rtc.h => instance_rtc.h} | 29 +- .../sam3s/include/instance/instance_rtt.h | 46 +++ .../instance/{smc.h => instance_smc.h} | 29 +- .../instance/{spi.h => instance_spi.h} | 29 +- .../instance/{ssc.h => instance_ssc.h} | 29 +- .../sam3s/include/instance/instance_supc.h | 50 +++ .../instance/{tc0.h => instance_tc0.h} | 29 +- .../instance/{tc1.h => instance_tc1.h} | 29 +- .../instance/{twi0.h => instance_twi0.h} | 29 +- .../instance/{twi1.h => instance_twi1.h} | 29 +- .../instance/{uart0.h => instance_uart0.h} | 29 +- .../instance/{uart1.h => instance_uart1.h} | 29 +- .../instance/{udp.h => instance_udp.h} | 29 +- .../instance/{usart0.h => instance_usart0.h} | 29 +- .../instance/{usart1.h => instance_usart1.h} | 29 +- .../sam3s/include/instance/instance_wdt.h | 44 +++ .../cmsis/sam3s/include/instance/rstc.h | 17 - .../libsam/cmsis/sam3s/include/instance/rtt.h | 19 - .../cmsis/sam3s/include/instance/supc.h | 23 -- .../libsam/cmsis/sam3s/include/instance/wdt.h | 17 - .../include/pio/{sam3s1a.h => pio_sam3s1a.h} | 29 +- .../include/pio/{sam3s1b.h => pio_sam3s1b.h} | 29 +- .../include/pio/{sam3s1c.h => pio_sam3s1c.h} | 29 +- .../include/pio/{sam3s2a.h => pio_sam3s2a.h} | 29 +- .../include/pio/{sam3s2b.h => pio_sam3s2b.h} | 29 +- .../include/pio/{sam3s2c.h => pio_sam3s2c.h} | 29 +- .../include/pio/{sam3s4a.h => pio_sam3s4a.h} | 29 +- .../include/pio/{sam3s4b.h => pio_sam3s4b.h} | 29 +- .../include/pio/{sam3s4c.h => pio_sam3s4c.h} | 29 +- .../system/libsam/cmsis/sam3s/include/sam3s.h | 40 ++- .../libsam/cmsis/sam3s/include/sam3s1a.h | 142 +++++--- .../libsam/cmsis/sam3s/include/sam3s1b.h | 152 +++++--- .../libsam/cmsis/sam3s/include/sam3s1c.h | 160 ++++++--- .../libsam/cmsis/sam3s/include/sam3s2a.h | 142 +++++--- .../libsam/cmsis/sam3s/include/sam3s2b.h | 152 +++++--- .../libsam/cmsis/sam3s/include/sam3s2c.h | 160 ++++++--- .../libsam/cmsis/sam3s/include/sam3s4a.h | 142 +++++--- .../libsam/cmsis/sam3s/include/sam3s4b.h | 152 +++++--- .../libsam/cmsis/sam3s/include/sam3s4c.h | 160 ++++++--- .../cmsis/sam3s8/include/component/gpbr.h | 26 -- .../cmsis/sam3s8/include/instance/chipid.h | 15 - .../cmsis/sam3s8/include/instance/efc.h | 19 - .../cmsis/sam3s8/include/instance/gpbr.h | 13 - .../cmsis/sam3s8/include/instance/rstc.h | 17 - .../cmsis/sam3s8/include/instance/rtt.h | 19 - .../cmsis/sam3s8/include/instance/supc.h | 23 -- .../cmsis/sam3s8/include/instance/wdt.h | 17 - .../libsam/cmsis/sam3s8/include/sam3s8.h | 33 -- .../include/component/component_acc.h} | 29 +- .../include/component/component_adc.h} | 29 +- .../include/component/component_chipid.h} | 29 +- .../include/component/component_crccu.h} | 29 +- .../include/component/component_dacc.h} | 29 +- .../include/component/component_efc.h} | 29 +- .../include/component/component_gpbr.h | 53 +++ .../include/component/component_hsmci.h} | 29 +- .../include/component/component_matrix.h} | 29 +- .../include/component/component_pdc.h} | 29 +- .../include/component/component_pio.h} | 29 +- .../include/component/component_pmc.h} | 54 ++- .../include/component/component_pwm.h} | 29 +- .../include/component/component_rstc.h} | 29 +- .../include/component/component_rtc.h} | 29 +- .../include/component/component_rtt.h} | 29 +- .../include/component/component_smc.h} | 29 +- .../include/component/component_spi.h} | 29 +- .../include/component/component_ssc.h} | 29 +- .../include/component/component_supc.h} | 29 +- .../include/component/component_tc.h} | 29 +- .../include/component/component_twi.h} | 29 +- .../include/component/component_uart.h} | 29 +- .../include/component/component_udp.h} | 29 +- .../include/component/component_usart.h} | 29 +- .../include/component/component_wdt.h} | 29 +- .../include/instance/instance_acc.h} | 29 +- .../include/instance/instance_adc.h} | 29 +- .../include/instance/instance_chipid.h | 42 +++ .../include/instance/instance_crccu.h} | 29 +- .../include/instance/instance_dacc.h} | 29 +- .../sam3sd8/include/instance/instance_efc.h | 46 +++ .../sam3sd8/include/instance/instance_gpbr.h | 40 +++ .../include/instance/instance_hsmci.h} | 29 +- .../include/instance/instance_matrix.h} | 29 +- .../include/instance/instance_pioa.h} | 29 +- .../include/instance/instance_piob.h} | 29 +- .../include/instance/instance_pioc.h} | 29 +- .../include/instance/instance_pmc.h} | 31 +- .../include/instance/instance_pwm.h} | 29 +- .../sam3sd8/include/instance/instance_rstc.h | 44 +++ .../include/instance/instance_rtc.h} | 29 +- .../sam3sd8/include/instance/instance_rtt.h | 46 +++ .../include/instance/instance_smc.h} | 29 +- .../include/instance/instance_spi.h} | 29 +- .../include/instance/instance_ssc.h} | 29 +- .../sam3sd8/include/instance/instance_supc.h | 50 +++ .../include/instance/instance_tc0.h} | 29 +- .../include/instance/instance_tc1.h} | 29 +- .../include/instance/instance_twi0.h} | 29 +- .../include/instance/instance_twi1.h} | 29 +- .../include/instance/instance_uart0.h} | 29 +- .../include/instance/instance_uart1.h} | 29 +- .../include/instance/instance_udp.h} | 29 +- .../include/instance/instance_usart0.h} | 29 +- .../include/instance/instance_usart1.h} | 29 +- .../include/instance/instance_usart2.h} | 29 +- .../sam3sd8/include/instance/instance_wdt.h | 44 +++ .../include/pio/pio_sam3s8a.h} | 29 +- .../include/pio/pio_sam3s8b.h} | 29 +- .../include/pio/pio_sam3s8c.h} | 29 +- .../include/pio/pio_sam3sd8a.h} | 29 +- .../include/pio/pio_sam3sd8b.h} | 29 +- .../include/pio/pio_sam3sd8c.h} | 29 +- .../libsam/cmsis/sam3sd8/include/sam3s8.h | 49 +++ .../{sam3s8 => sam3sd8}/include/sam3s8a.h | 158 +++++--- .../{sam3s8 => sam3sd8}/include/sam3s8b.h | 164 +++++---- .../{sam3s8 => sam3sd8}/include/sam3s8c.h | 174 +++++---- .../{sam3s8 => sam3sd8}/include/sam3sd8a.h | 170 +++++---- .../{sam3s8 => sam3sd8}/include/sam3sd8b.h | 176 +++++---- .../{sam3s8 => sam3sd8}/include/sam3sd8c.h | 186 ++++++---- .../source/templates/exceptions.c | 0 .../source/templates/exceptions.h | 0 .../source/templates/gcc/startup_sam3sd8.c | 0 .../source/templates/iar/startup_sam3sd8.c | 0 .../source/templates/system_sam3sd8.c | 0 .../source/templates/system_sam3sd8.h | 0 .../component/{adc.h => component_adc.h} | 45 ++- .../{adc12b.h => component_adc12b.h} | 31 +- .../{chipid.h => component_chipid.h} | 29 +- .../component/{dmac.h => component_dmac.h} | 29 +- .../component/{efc.h => component_efc.h} | 29 +- .../sam3u/include/component/component_gpbr.h | 53 +++ .../component/{hsmci.h => component_hsmci.h} | 29 +- .../{matrix.h => component_matrix.h} | 29 +- .../component/{pdc.h => component_pdc.h} | 29 +- .../component/{pio.h => component_pio.h} | 29 +- .../sam3u/include/component/component_pmc.h | 340 ++++++++++++++++++ .../component/{pwm.h => component_pwm.h} | 29 +- .../component/{rstc.h => component_rstc.h} | 29 +- .../component/{rtc.h => component_rtc.h} | 29 +- .../component/{rtt.h => component_rtt.h} | 29 +- .../component/{smc.h => component_smc.h} | 29 +- .../component/{spi.h => component_spi.h} | 29 +- .../component/{ssc.h => component_ssc.h} | 29 +- .../component/{supc.h => component_supc.h} | 29 +- .../component/{tc.h => component_tc.h} | 29 +- .../component/{twi.h => component_twi.h} | 29 +- .../component/{uart.h => component_uart.h} | 29 +- .../component/{udphs.h => component_udphs.h} | 29 +- .../component/{usart.h => component_usart.h} | 29 +- .../component/{wdt.h => component_wdt.h} | 29 +- .../cmsis/sam3u/include/component/gpbr.h | 26 -- .../cmsis/sam3u/include/component/pmc.h | 327 ----------------- .../cmsis/sam3u/include/instance/chipid.h | 15 - .../cmsis/sam3u/include/instance/efc0.h | 19 - .../cmsis/sam3u/include/instance/efc1.h | 19 - .../cmsis/sam3u/include/instance/gpbr.h | 13 - .../instance/{adc.h => instance_adc.h} | 29 +- .../instance/{adc12b.h => instance_adc12b.h} | 29 +- .../sam3u/include/instance/instance_chipid.h | 42 +++ .../instance/{dmac.h => instance_dmac.h} | 29 +- .../sam3u/include/instance/instance_efc0.h | 46 +++ .../sam3u/include/instance/instance_efc1.h | 46 +++ .../sam3u/include/instance/instance_gpbr.h | 40 +++ .../instance/{hsmci.h => instance_hsmci.h} | 29 +- .../instance/{matrix.h => instance_matrix.h} | 29 +- .../instance/{pioa.h => instance_pioa.h} | 29 +- .../instance/{piob.h => instance_piob.h} | 29 +- .../instance/{pioc.h => instance_pioc.h} | 29 +- .../instance/{pmc.h => instance_pmc.h} | 43 ++- .../instance/{pwm.h => instance_pwm.h} | 29 +- .../sam3u/include/instance/instance_rstc.h | 44 +++ .../instance/{rtc.h => instance_rtc.h} | 29 +- .../sam3u/include/instance/instance_rtt.h | 46 +++ .../instance/{smc.h => instance_smc.h} | 29 +- .../instance/{spi.h => instance_spi.h} | 29 +- .../instance/{ssc.h => instance_ssc.h} | 29 +- .../sam3u/include/instance/instance_supc.h | 50 +++ .../instance/{tc0.h => instance_tc0.h} | 29 +- .../instance/{twi0.h => instance_twi0.h} | 29 +- .../instance/{twi1.h => instance_twi1.h} | 29 +- .../instance/{uart.h => instance_uart.h} | 29 +- .../instance/{udphs.h => instance_udphs.h} | 29 +- .../instance/{usart0.h => instance_usart0.h} | 29 +- .../instance/{usart1.h => instance_usart1.h} | 29 +- .../instance/{usart2.h => instance_usart2.h} | 29 +- .../instance/{usart3.h => instance_usart3.h} | 29 +- .../sam3u/include/instance/instance_wdt.h | 44 +++ .../cmsis/sam3u/include/instance/rstc.h | 17 - .../libsam/cmsis/sam3u/include/instance/rtt.h | 19 - .../cmsis/sam3u/include/instance/supc.h | 23 -- .../libsam/cmsis/sam3u/include/instance/wdt.h | 17 - .../include/pio/{sam3u1c.h => pio_sam3u1c.h} | 29 +- .../include/pio/{sam3u1e.h => pio_sam3u1e.h} | 29 +- .../include/pio/{sam3u2c.h => pio_sam3u2c.h} | 29 +- .../include/pio/{sam3u2e.h => pio_sam3u2e.h} | 29 +- .../include/pio/{sam3u4c.h => pio_sam3u4c.h} | 29 +- .../include/pio/{sam3u4e.h => pio_sam3u4e.h} | 29 +- .../system/libsam/cmsis/sam3u/include/sam3u.h | 40 ++- .../libsam/cmsis/sam3u/include/sam3u1c.h | 154 +++++--- .../libsam/cmsis/sam3u/include/sam3u1e.h | 158 +++++--- .../libsam/cmsis/sam3u/include/sam3u2c.h | 154 +++++--- .../libsam/cmsis/sam3u/include/sam3u2e.h | 158 +++++--- .../libsam/cmsis/sam3u/include/sam3u4c.h | 154 +++++--- .../libsam/cmsis/sam3u/include/sam3u4e.h | 158 +++++--- .../cmsis/sam3x/include/component/gpbr.h | 26 -- .../cmsis/sam3x/include/instance/chipid.h | 15 - .../cmsis/sam3x/include/instance/efc0.h | 19 - .../cmsis/sam3x/include/instance/efc1.h | 19 - .../cmsis/sam3x/include/instance/gpbr.h | 13 - .../cmsis/sam3x/include/instance/rstc.h | 17 - .../libsam/cmsis/sam3x/include/instance/rtt.h | 19 - .../cmsis/sam3x/include/instance/supc.h | 23 -- .../cmsis/sam3x/include/instance/trng.h | 23 -- .../libsam/cmsis/sam3x/include/instance/wdt.h | 17 - .../libsam/cmsis/sam3x/include/sam3xa.h | 51 --- .../include/component/component_adc.h} | 29 +- .../include/component/component_can.h} | 29 +- .../include/component/component_chipid.h} | 29 +- .../include/component/component_dacc.h} | 29 +- .../include/component/component_dmac.h} | 29 +- .../include/component/component_efc.h} | 29 +- .../include/component/component_emac.h} | 29 +- .../sam3xa/include/component/component_gpbr.h | 53 +++ .../include/component/component_hsmci.h} | 29 +- .../include/component/component_matrix.h} | 29 +- .../include/component/component_pdc.h} | 29 +- .../include/component/component_pio.h} | 29 +- .../include/component/component_pmc.h} | 183 +++++++--- .../include/component/component_pwm.h} | 29 +- .../include/component/component_rstc.h} | 29 +- .../include/component/component_rtc.h} | 29 +- .../include/component/component_rtt.h} | 29 +- .../include/component/component_sdramc.h} | 29 +- .../include/component/component_smc.h} | 29 +- .../include/component/component_spi.h} | 29 +- .../include/component/component_ssc.h} | 29 +- .../include/component/component_supc.h} | 29 +- .../include/component/component_tc.h} | 29 +- .../include/component/component_trng.h} | 29 +- .../include/component/component_twi.h} | 29 +- .../include/component/component_uart.h} | 29 +- .../include/component/component_uotghs.h} | 29 +- .../include/component/component_usart.h} | 29 +- .../include/component/component_wdt.h} | 29 +- .../include/instance/instance_adc.h} | 29 +- .../include/instance/instance_can0.h} | 29 +- .../include/instance/instance_can1.h} | 29 +- .../sam3xa/include/instance/instance_chipid.h | 42 +++ .../include/instance/instance_dacc.h} | 29 +- .../include/instance/instance_dmac.h} | 29 +- .../sam3xa/include/instance/instance_efc0.h | 46 +++ .../sam3xa/include/instance/instance_efc1.h | 46 +++ .../include/instance/instance_emac.h} | 29 +- .../sam3xa/include/instance/instance_gpbr.h | 40 +++ .../include/instance/instance_hsmci.h} | 29 +- .../include/instance/instance_matrix.h} | 29 +- .../include/instance/instance_pioa.h} | 29 +- .../include/instance/instance_piob.h} | 29 +- .../include/instance/instance_pioc.h} | 29 +- .../include/instance/instance_piod.h} | 29 +- .../include/instance/instance_pioe.h} | 29 +- .../include/instance/instance_piof.h} | 29 +- .../include/instance/instance_pmc.h} | 31 +- .../include/instance/instance_pwm.h} | 29 +- .../sam3xa/include/instance/instance_rstc.h | 44 +++ .../include/instance/instance_rtc.h} | 29 +- .../sam3xa/include/instance/instance_rtt.h | 46 +++ .../include/instance/instance_sdramc.h} | 29 +- .../include/instance/instance_smc.h} | 29 +- .../include/instance/instance_spi0.h} | 29 +- .../include/instance/instance_spi1.h} | 29 +- .../include/instance/instance_ssc.h} | 29 +- .../sam3xa/include/instance/instance_supc.h | 50 +++ .../include/instance/instance_tc0.h} | 29 +- .../include/instance/instance_tc1.h} | 29 +- .../include/instance/instance_tc2.h} | 29 +- .../sam3xa/include/instance/instance_trng.h | 50 +++ .../include/instance/instance_twi0.h} | 29 +- .../include/instance/instance_twi1.h} | 29 +- .../include/instance/instance_uart.h} | 29 +- .../include/instance/instance_uotghs.h} | 29 +- .../include/instance/instance_usart0.h} | 29 +- .../include/instance/instance_usart1.h} | 29 +- .../include/instance/instance_usart2.h} | 29 +- .../include/instance/instance_usart3.h} | 29 +- .../sam3xa/include/instance/instance_wdt.h | 44 +++ .../include/pio/pio_sam3a2c.h} | 29 +- .../include/pio/pio_sam3a4c.h} | 29 +- .../include/pio/pio_sam3a8c.h} | 29 +- .../include/pio/pio_sam3x2c.h} | 29 +- .../include/pio/pio_sam3x2e.h} | 29 +- .../include/pio/pio_sam3x2g.h} | 29 +- .../include/pio/pio_sam3x2h.h} | 29 +- .../include/pio/pio_sam3x4c.h} | 29 +- .../include/pio/pio_sam3x4e.h} | 29 +- .../include/pio/pio_sam3x4g.h} | 29 +- .../include/pio/pio_sam3x4h.h} | 29 +- .../include/pio/pio_sam3x8c.h} | 29 +- .../include/pio/pio_sam3x8e.h} | 29 +- .../include/pio/pio_sam3x8g.h} | 29 +- .../include/pio/pio_sam3x8h.h} | 29 +- .../cmsis/{sam3x => sam3xa}/include/sam3a2c.h | 162 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3a4c.h | 162 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3a8c.h | 162 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x2c.h | 166 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x2e.h | 178 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x2g.h | 188 ++++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x2h.h | 188 ++++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x4c.h | 166 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x4e.h | 178 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x4g.h | 188 ++++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x4h.h | 188 ++++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x8c.h | 166 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x8e.h | 178 +++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x8g.h | 188 ++++++---- .../cmsis/{sam3x => sam3xa}/include/sam3x8h.h | 188 ++++++---- .../libsam/cmsis/sam3xa/include/sam3xa.h | 53 +++ .../source/templates/exceptions.c | 0 .../source/templates/exceptions.h | 0 .../source/templates/gcc/startup_sam3x.c | 0 .../source/templates/iar/startup_sam3x.c | 0 .../source/templates/system_sam3x.c | 0 .../source/templates/system_sam3x.h | 0 441 files changed, 15350 insertions(+), 4732 deletions(-) delete mode 100644 hardware/sam/cores/sam/wiring_analog.c.disabled rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{adc.h => component_adc.h} (85%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{chipid.h => component_chipid.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{dacc.h => component_dacc.h} (85%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{efc.h => component_efc.h} (63%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/component/component_gpbr.h rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{matrix.h => component_matrix.h} (84%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{pdc.h => component_pdc.h} (75%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{pio.h => component_pio.h} (98%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{pmc.h => component_pmc.h} (54%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{pwm.h => component_pwm.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{rstc.h => component_rstc.h} (59%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{rtc.h => component_rtc.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{rtt.h => component_rtt.h} (56%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{spi.h => component_spi.h} (90%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{supc.h => component_supc.h} (95%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{tc.h => component_tc.h} (92%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{twi.h => component_twi.h} (90%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{uart.h => component_uart.h} (88%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{usart.h => component_usart.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3n/include/component/{wdt.h => component_wdt.h} (58%) delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/component/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/chipid.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/efc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/gpbr.h rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{adc.h => instance_adc.h} (78%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_chipid.h rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{dacc.h => instance_dacc.h} (70%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_efc.h create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_gpbr.h rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{matrix.h => instance_matrix.h} (58%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{pioa.h => instance_pioa.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{piob.h => instance_piob.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{pioc.h => instance_pioc.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{pmc.h => instance_pmc.h} (59%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{pwm.h => instance_pwm.h} (79%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rstc.h rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{rtc.h => instance_rtc.h} (62%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtt.h rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{spi.h => instance_spi.h} (72%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_supc.h rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{tc0.h => instance_tc0.h} (84%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{tc1.h => instance_tc1.h} (84%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{twi0.h => instance_twi0.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{twi1.h => instance_twi1.h} (59%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{uart0.h => instance_uart0.h} (71%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{uart1.h => instance_uart1.h} (55%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{usart0.h => instance_usart0.h} (77%) rename hardware/sam/system/libsam/cmsis/sam3n/include/instance/{usart1.h => instance_usart1.h} (68%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_wdt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/rstc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/supc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3n/include/instance/wdt.h rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n1a.h => pio_sam3n1a.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n1b.h => pio_sam3n1b.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n1c.h => pio_sam3n1c.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n2a.h => pio_sam3n2a.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n2b.h => pio_sam3n2b.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n2c.h => pio_sam3n2c.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n4a.h => pio_sam3n4a.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n4b.h => pio_sam3n4b.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3n/include/pio/{sam3n4c.h => pio_sam3n4c.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{acc.h => component_acc.h} (80%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{adc.h => component_adc.h} (96%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{chipid.h => component_chipid.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{crccu.h => component_crccu.h} (78%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{dacc.h => component_dacc.h} (90%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{efc.h => component_efc.h} (63%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/component/component_gpbr.h rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{hsmci.h => component_hsmci.h} (95%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{matrix.h => component_matrix.h} (88%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{pdc.h => component_pdc.h} (75%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{pio.h => component_pio.h} (98%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{pmc.h => component_pmc.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{pwm.h => component_pwm.h} (96%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{rstc.h => component_rstc.h} (59%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{rtc.h => component_rtc.h} (85%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{rtt.h => component_rtt.h} (56%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{smc.h => component_smc.h} (84%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{spi.h => component_spi.h} (90%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{ssc.h => component_ssc.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{supc.h => component_supc.h} (95%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{tc.h => component_tc.h} (92%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{twi.h => component_twi.h} (90%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{uart.h => component_uart.h} (88%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{udp.h => component_udp.h} (88%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{usart.h => component_usart.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3s/include/component/{wdt.h => component_wdt.h} (58%) delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/component/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/chipid.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/efc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/gpbr.h rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{acc.h => instance_acc.h} (54%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{adc.h => instance_adc.h} (79%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_chipid.h rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{crccu.h => instance_crccu.h} (68%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{dacc.h => instance_dacc.h} (74%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_efc.h create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_gpbr.h rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{hsmci.h => instance_hsmci.h} (79%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{matrix.h => instance_matrix.h} (62%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{pioa.h => instance_pioa.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{piob.h => instance_piob.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{pioc.h => instance_pioc.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{pmc.h => instance_pmc.h} (77%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{pwm.h => instance_pwm.h} (93%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rstc.h rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{rtc.h => instance_rtc.h} (60%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtt.h rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{smc.h => instance_smc.h} (77%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{spi.h => instance_spi.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{ssc.h => instance_ssc.h} (77%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_supc.h rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{tc0.h => instance_tc0.h} (84%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{tc1.h => instance_tc1.h} (84%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{twi0.h => instance_twi0.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{twi1.h => instance_twi1.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{uart0.h => instance_uart0.h} (71%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{uart1.h => instance_uart1.h} (71%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{udp.h => instance_udp.h} (62%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{usart0.h => instance_usart0.h} (78%) rename hardware/sam/system/libsam/cmsis/sam3s/include/instance/{usart1.h => instance_usart1.h} (78%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_wdt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/rstc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/supc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s/include/instance/wdt.h rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s1a.h => pio_sam3s1a.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s1b.h => pio_sam3s1b.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s1c.h => pio_sam3s1c.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s2a.h => pio_sam3s2a.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s2b.h => pio_sam3s2b.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s2c.h => pio_sam3s2c.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s4a.h => pio_sam3s4a.h} (89%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s4b.h => pio_sam3s4b.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3s/include/pio/{sam3s4c.h => pio_sam3s4c.h} (93%) delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/component/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/chipid.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/efc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rstc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/supc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/instance/wdt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/acc.h => sam3sd8/include/component/component_acc.h} (80%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/adc.h => sam3sd8/include/component/component_adc.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/chipid.h => sam3sd8/include/component/component_chipid.h} (87%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/crccu.h => sam3sd8/include/component/component_crccu.h} (78%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/dacc.h => sam3sd8/include/component/component_dacc.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/efc.h => sam3sd8/include/component/component_efc.h} (63%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_gpbr.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/hsmci.h => sam3sd8/include/component/component_hsmci.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/matrix.h => sam3sd8/include/component/component_matrix.h} (88%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/pdc.h => sam3sd8/include/component/component_pdc.h} (75%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/pio.h => sam3sd8/include/component/component_pio.h} (98%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/pmc.h => sam3sd8/include/component/component_pmc.h} (93%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/pwm.h => sam3sd8/include/component/component_pwm.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/rstc.h => sam3sd8/include/component/component_rstc.h} (59%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/rtc.h => sam3sd8/include/component/component_rtc.h} (89%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/rtt.h => sam3sd8/include/component/component_rtt.h} (58%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/smc.h => sam3sd8/include/component/component_smc.h} (84%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/spi.h => sam3sd8/include/component/component_spi.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/ssc.h => sam3sd8/include/component/component_ssc.h} (94%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/supc.h => sam3sd8/include/component/component_supc.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/tc.h => sam3sd8/include/component/component_tc.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/twi.h => sam3sd8/include/component/component_twi.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/uart.h => sam3sd8/include/component/component_uart.h} (88%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/udp.h => sam3sd8/include/component/component_udp.h} (88%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/usart.h => sam3sd8/include/component/component_usart.h} (94%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/component/wdt.h => sam3sd8/include/component/component_wdt.h} (58%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/acc.h => sam3sd8/include/instance/instance_acc.h} (54%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/adc.h => sam3sd8/include/instance/instance_adc.h} (79%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_chipid.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/crccu.h => sam3sd8/include/instance/instance_crccu.h} (68%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/dacc.h => sam3sd8/include/instance/instance_dacc.h} (74%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_efc.h create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_gpbr.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/hsmci.h => sam3sd8/include/instance/instance_hsmci.h} (79%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/matrix.h => sam3sd8/include/instance/instance_matrix.h} (62%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/pioa.h => sam3sd8/include/instance/instance_pioa.h} (89%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/piob.h => sam3sd8/include/instance/instance_piob.h} (87%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/pioc.h => sam3sd8/include/instance/instance_pioc.h} (87%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/pmc.h => sam3sd8/include/instance/instance_pmc.h} (76%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/pwm.h => sam3sd8/include/instance/instance_pwm.h} (93%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rstc.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/rtc.h => sam3sd8/include/instance/instance_rtc.h} (60%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtt.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/smc.h => sam3sd8/include/instance/instance_smc.h} (77%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/spi.h => sam3sd8/include/instance/instance_spi.h} (72%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/ssc.h => sam3sd8/include/instance/instance_ssc.h} (77%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_supc.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/tc0.h => sam3sd8/include/instance/instance_tc0.h} (84%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/tc1.h => sam3sd8/include/instance/instance_tc1.h} (84%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/twi0.h => sam3sd8/include/instance/instance_twi0.h} (72%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/twi1.h => sam3sd8/include/instance/instance_twi1.h} (72%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/uart0.h => sam3sd8/include/instance/instance_uart0.h} (71%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/uart1.h => sam3sd8/include/instance/instance_uart1.h} (71%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/udp.h => sam3sd8/include/instance/instance_udp.h} (62%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/usart0.h => sam3sd8/include/instance/instance_usart0.h} (78%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/usart1.h => sam3sd8/include/instance/instance_usart1.h} (78%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/instance/usart2.h => sam3sd8/include/instance/instance_usart2.h} (78%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_wdt.h rename hardware/sam/system/libsam/cmsis/{sam3s8/include/pio/sam3s8a.h => sam3sd8/include/pio/pio_sam3s8a.h} (89%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/pio/sam3s8b.h => sam3sd8/include/pio/pio_sam3s8b.h} (91%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/pio/sam3s8c.h => sam3sd8/include/pio/pio_sam3s8c.h} (93%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/pio/sam3sd8a.h => sam3sd8/include/pio/pio_sam3sd8a.h} (89%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/pio/sam3sd8b.h => sam3sd8/include/pio/pio_sam3sd8b.h} (91%) rename hardware/sam/system/libsam/cmsis/{sam3s8/include/pio/sam3sd8c.h => sam3sd8/include/pio/pio_sam3sd8c.h} (93%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8.h rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/include/sam3s8a.h (76%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/include/sam3s8b.h (77%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/include/sam3s8c.h (78%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/include/sam3sd8a.h (75%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/include/sam3sd8b.h (76%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/include/sam3sd8c.h (77%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/source/templates/exceptions.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/source/templates/exceptions.h (100%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/source/templates/gcc/startup_sam3sd8.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/source/templates/iar/startup_sam3sd8.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/source/templates/system_sam3sd8.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3s8 => sam3sd8}/source/templates/system_sam3sd8.h (100%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{adc.h => component_adc.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{adc12b.h => component_adc12b.h} (92%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{chipid.h => component_chipid.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{dmac.h => component_dmac.h} (91%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{efc.h => component_efc.h} (63%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/component/component_gpbr.h rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{hsmci.h => component_hsmci.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{matrix.h => component_matrix.h} (92%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{pdc.h => component_pdc.h} (75%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{pio.h => component_pio.h} (98%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pmc.h rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{pwm.h => component_pwm.h} (96%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{rstc.h => component_rstc.h} (59%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{rtc.h => component_rtc.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{rtt.h => component_rtt.h} (56%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{smc.h => component_smc.h} (96%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{spi.h => component_spi.h} (86%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{ssc.h => component_ssc.h} (92%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{supc.h => component_supc.h} (95%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{tc.h => component_tc.h} (92%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{twi.h => component_twi.h} (90%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{uart.h => component_uart.h} (88%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{udphs.h => component_udphs.h} (95%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{usart.h => component_usart.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3u/include/component/{wdt.h => component_wdt.h} (58%) delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/component/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/component/pmc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/chipid.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc0.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc1.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/gpbr.h rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{adc.h => instance_adc.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{adc12b.h => instance_adc12b.h} (75%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_chipid.h rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{dmac.h => instance_dmac.h} (85%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc0.h create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc1.h create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_gpbr.h rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{hsmci.h => instance_hsmci.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{matrix.h => instance_matrix.h} (69%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{pioa.h => instance_pioa.h} (85%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{piob.h => instance_piob.h} (85%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{pioc.h => instance_pioc.h} (85%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{pmc.h => instance_pmc.h} (60%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{pwm.h => instance_pwm.h} (93%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rstc.h rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{rtc.h => instance_rtc.h} (62%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtt.h rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{smc.h => instance_smc.h} (87%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{spi.h => instance_spi.h} (58%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{ssc.h => instance_ssc.h} (69%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_supc.h rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{tc0.h => instance_tc0.h} (82%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{twi0.h => instance_twi0.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{twi1.h => instance_twi1.h} (72%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{uart.h => instance_uart.h} (70%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{udphs.h => instance_udphs.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{usart0.h => instance_usart0.h} (78%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{usart1.h => instance_usart1.h} (78%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{usart2.h => instance_usart2.h} (78%) rename hardware/sam/system/libsam/cmsis/sam3u/include/instance/{usart3.h => instance_usart3.h} (78%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_wdt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/rstc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/supc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3u/include/instance/wdt.h rename hardware/sam/system/libsam/cmsis/sam3u/include/pio/{sam3u1c.h => pio_sam3u1c.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3u/include/pio/{sam3u1e.h => pio_sam3u1e.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3u/include/pio/{sam3u2c.h => pio_sam3u2c.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3u/include/pio/{sam3u2e.h => pio_sam3u2e.h} (94%) rename hardware/sam/system/libsam/cmsis/sam3u/include/pio/{sam3u4c.h => pio_sam3u4c.h} (93%) rename hardware/sam/system/libsam/cmsis/sam3u/include/pio/{sam3u4e.h => pio_sam3u4e.h} (94%) delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/component/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/chipid.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc0.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc1.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/gpbr.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/rstc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/supc.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/trng.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/instance/wdt.h delete mode 100644 hardware/sam/system/libsam/cmsis/sam3x/include/sam3xa.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/adc.h => sam3xa/include/component/component_adc.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/can.h => sam3xa/include/component/component_can.h} (93%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/chipid.h => sam3xa/include/component/component_chipid.h} (87%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/dacc.h => sam3xa/include/component/component_dacc.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/dmac.h => sam3xa/include/component/component_dmac.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/efc.h => sam3xa/include/component/component_efc.h} (63%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/emac.h => sam3xa/include/component/component_emac.h} (93%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_gpbr.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/hsmci.h => sam3xa/include/component/component_hsmci.h} (94%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/matrix.h => sam3xa/include/component/component_matrix.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/pdc.h => sam3xa/include/component/component_pdc.h} (75%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/pio.h => sam3xa/include/component/component_pio.h} (98%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/pmc.h => sam3xa/include/component/component_pmc.h} (73%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/pwm.h => sam3xa/include/component/component_pwm.h} (97%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/rstc.h => sam3xa/include/component/component_rstc.h} (59%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/rtc.h => sam3xa/include/component/component_rtc.h} (86%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/rtt.h => sam3xa/include/component/component_rtt.h} (56%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/sdramc.h => sam3xa/include/component/component_sdramc.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/smc.h => sam3xa/include/component/component_smc.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/spi.h => sam3xa/include/component/component_spi.h} (86%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/ssc.h => sam3xa/include/component/component_ssc.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/supc.h => sam3xa/include/component/component_supc.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/tc.h => sam3xa/include/component/component_tc.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/trng.h => sam3xa/include/component/component_trng.h} (60%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/twi.h => sam3xa/include/component/component_twi.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/uart.h => sam3xa/include/component/component_uart.h} (88%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/uotghs.h => sam3xa/include/component/component_uotghs.h} (98%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/usart.h => sam3xa/include/component/component_usart.h} (94%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/component/wdt.h => sam3xa/include/component/component_wdt.h} (58%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/adc.h => sam3xa/include/instance/instance_adc.h} (79%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/can0.h => sam3xa/include/instance/instance_can0.h} (91%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/can1.h => sam3xa/include/instance/instance_can1.h} (91%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_chipid.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/dacc.h => sam3xa/include/instance/instance_dacc.h} (74%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/dmac.h => sam3xa/include/instance/instance_dmac.h} (88%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc0.h create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc1.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/emac.h => sam3xa/include/instance/instance_emac.h} (85%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_gpbr.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/hsmci.h => sam3xa/include/instance/instance_hsmci.h} (72%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/matrix.h => sam3xa/include/instance/instance_matrix.h} (68%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/pioa.h => sam3xa/include/instance/instance_pioa.h} (85%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/piob.h => sam3xa/include/instance/instance_piob.h} (85%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/pioc.h => sam3xa/include/instance/instance_pioc.h} (85%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/piod.h => sam3xa/include/instance/instance_piod.h} (85%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/pioe.h => sam3xa/include/instance/instance_pioe.h} (85%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/piof.h => sam3xa/include/instance/instance_piof.h} (85%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/pmc.h => sam3xa/include/instance/instance_pmc.h} (74%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/pwm.h => sam3xa/include/instance/instance_pwm.h} (95%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rstc.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/rtc.h => sam3xa/include/instance/instance_rtc.h} (62%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtt.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/sdramc.h => sam3xa/include/instance/instance_sdramc.h} (61%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/smc.h => sam3xa/include/instance/instance_smc.h} (90%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/spi0.h => sam3xa/include/instance/instance_spi0.h} (59%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/spi1.h => sam3xa/include/instance/instance_spi1.h} (59%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/ssc.h => sam3xa/include/instance/instance_ssc.h} (69%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_supc.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/tc0.h => sam3xa/include/instance/instance_tc0.h} (84%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/tc1.h => sam3xa/include/instance/instance_tc1.h} (84%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/tc2.h => sam3xa/include/instance/instance_tc2.h} (84%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_trng.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/twi0.h => sam3xa/include/instance/instance_twi0.h} (72%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/twi1.h => sam3xa/include/instance/instance_twi1.h} (72%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/uart.h => sam3xa/include/instance/instance_uart.h} (70%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/uotghs.h => sam3xa/include/instance/instance_uotghs.h} (94%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/usart0.h => sam3xa/include/instance/instance_usart0.h} (79%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/usart1.h => sam3xa/include/instance/instance_usart1.h} (79%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/usart2.h => sam3xa/include/instance/instance_usart2.h} (79%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/instance/usart3.h => sam3xa/include/instance/instance_usart3.h} (79%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_wdt.h rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3a2c.h => sam3xa/include/pio/pio_sam3a2c.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3a4c.h => sam3xa/include/pio/pio_sam3a4c.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3a8c.h => sam3xa/include/pio/pio_sam3a8c.h} (92%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x2c.h => sam3xa/include/pio/pio_sam3x2c.h} (93%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x2e.h => sam3xa/include/pio/pio_sam3x2e.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x2g.h => sam3xa/include/pio/pio_sam3x2g.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x2h.h => sam3xa/include/pio/pio_sam3x2h.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x4c.h => sam3xa/include/pio/pio_sam3x4c.h} (93%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x4e.h => sam3xa/include/pio/pio_sam3x4e.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x4g.h => sam3xa/include/pio/pio_sam3x4g.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x4h.h => sam3xa/include/pio/pio_sam3x4h.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x8c.h => sam3xa/include/pio/pio_sam3x8c.h} (93%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x8e.h => sam3xa/include/pio/pio_sam3x8e.h} (95%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x8g.h => sam3xa/include/pio/pio_sam3x8g.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x/include/pio/sam3x8h.h => sam3xa/include/pio/pio_sam3x8h.h} (96%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3a2c.h (79%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3a4c.h (79%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3a8c.h (79%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x2c.h (79%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x2e.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x2g.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x2h.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x4c.h (79%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x4e.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x4g.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x4h.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x8c.h (79%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x8e.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x8g.h (80%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/include/sam3x8h.h (80%) create mode 100644 hardware/sam/system/libsam/cmsis/sam3xa/include/sam3xa.h rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/source/templates/exceptions.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/source/templates/exceptions.h (100%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/source/templates/gcc/startup_sam3x.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/source/templates/iar/startup_sam3x.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/source/templates/system_sam3x.c (100%) rename hardware/sam/system/libsam/cmsis/{sam3x => sam3xa}/source/templates/system_sam3x.h (100%) diff --git a/hardware/sam/cores/sam/wiring_analog.c.disabled b/hardware/sam/cores/sam/wiring_analog.c.disabled deleted file mode 100644 index 70f855036..000000000 --- a/hardware/sam/cores/sam/wiring_analog.c.disabled +++ /dev/null @@ -1,256 +0,0 @@ -/* - Copyright (c) 2011 Arduino. All right reserved. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#include "wiring_private.h" - -#ifdef __cplusplus - extern "C" { -#endif - - -eAnalogReference analog_reference = AR_DEFAULT ; - -void analogReference( eAnalogReference ulMode ) -{ - analog_reference = ulMode ; -} - -uint32_t analogRead( uint32_t ulPin ) -{ - uint8_t low, high; - -#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) - if (pin >= 54) pin -= 54; // allow for channel or pin numbers -#else - if (pin >= 14) pin -= 14; // allow for channel or pin numbers -#endif - -#if defined(ADCSRB) && defined(MUX5) - // the MUX5 bit of ADCSRB selects whether we're reading from channels - // 0 to 7 (MUX5 low) or 8 to 15 (MUX5 high). - ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5); -#endif - - // set the analog reference (high two bits of ADMUX) and select the - // channel (low 4 bits). this also sets ADLAR (left-adjust result) - // to 0 (the default). -#if defined(ADMUX) - ADMUX = (analog_reference << 6) | (pin & 0x07); -#endif - - // without a delay, we seem to read from the wrong channel - //delay(1); - -#if defined(ADCSRA) && defined(ADCL) - // start the conversion - sbi(ADCSRA, ADSC); - - // ADSC is cleared when the conversion finishes - while (bit_is_set(ADCSRA, ADSC)); - - // we have to read ADCL first; doing so locks both ADCL - // and ADCH until ADCH is read. reading ADCL second would - // cause the results of each conversion to be discarded, - // as ADCL and ADCH would be locked when it completed. - low = ADCL; - high = ADCH; -#else - // we dont have an ADC, return 0 - low = 0; - high = 0; -#endif - - // combine the two bytes - return (high << 8) | low; -} - -// Right now, PWM output only works on the pins with -// hardware support. These are defined in the appropriate -// pins_*.c file. For the rest of the pins, we default -// to digital output. -void analogWrite( uint32_t ulPin, uint32_t ulValue ) -{ - // We need to make sure the PWM output is enabled for those pins - // that support it, as we turn it off when digitally reading or - // writing with them. Also, make sure the pin is in output mode - // for consistenty with Wiring, which doesn't require a pinMode - // call for the analog output pins. - pinMode(pin, OUTPUT); - if (val == 0) - { - digitalWrite(pin, LOW); - } - else if (val == 255) - { - digitalWrite(pin, HIGH); - } - else - { - switch(digitalPinToTimer(pin)) - { - // XXX fix needed for atmega8 - #if defined(TCCR0) && defined(COM00) && !defined(__AVR_ATmega8__) - case TIMER0A: - // connect pwm to pin on timer 0 - sbi(TCCR0, COM00); - OCR0 = val; // set pwm duty - break; - #endif - - #if defined(TCCR0A) && defined(COM0A1) - case TIMER0A: - // connect pwm to pin on timer 0, channel A - sbi(TCCR0A, COM0A1); - OCR0A = val; // set pwm duty - break; - #endif - - #if defined(TCCR0A) && defined(COM0B1) - case TIMER0B: - // connect pwm to pin on timer 0, channel B - sbi(TCCR0A, COM0B1); - OCR0B = val; // set pwm duty - break; - #endif - - #if defined(TCCR1A) && defined(COM1A1) - case TIMER1A: - // connect pwm to pin on timer 1, channel A - sbi(TCCR1A, COM1A1); - OCR1A = val; // set pwm duty - break; - #endif - - #if defined(TCCR1A) && defined(COM1B1) - case TIMER1B: - // connect pwm to pin on timer 1, channel B - sbi(TCCR1A, COM1B1); - OCR1B = val; // set pwm duty - break; - #endif - - #if defined(TCCR2) && defined(COM21) - case TIMER2: - // connect pwm to pin on timer 2 - sbi(TCCR2, COM21); - OCR2 = val; // set pwm duty - break; - #endif - - #if defined(TCCR2A) && defined(COM2A1) - case TIMER2A: - // connect pwm to pin on timer 2, channel A - sbi(TCCR2A, COM2A1); - OCR2A = val; // set pwm duty - break; - #endif - - #if defined(TCCR2A) && defined(COM2B1) - case TIMER2B: - // connect pwm to pin on timer 2, channel B - sbi(TCCR2A, COM2B1); - OCR2B = val; // set pwm duty - break; - #endif - - #if defined(TCCR3A) && defined(COM3A1) - case TIMER3A: - // connect pwm to pin on timer 3, channel A - sbi(TCCR3A, COM3A1); - OCR3A = val; // set pwm duty - break; - #endif - - #if defined(TCCR3A) && defined(COM3B1) - case TIMER3B: - // connect pwm to pin on timer 3, channel B - sbi(TCCR3A, COM3B1); - OCR3B = val; // set pwm duty - break; - #endif - - #if defined(TCCR3A) && defined(COM3C1) - case TIMER3C: - // connect pwm to pin on timer 3, channel C - sbi(TCCR3A, COM3C1); - OCR3C = val; // set pwm duty - break; - #endif - - #if defined(TCCR4A) && defined(COM4A1) - case TIMER4A: - // connect pwm to pin on timer 4, channel A - sbi(TCCR4A, COM4A1); - OCR4A = val; // set pwm duty - break; - #endif - - #if defined(TCCR4A) && defined(COM4B1) - case TIMER4B: - // connect pwm to pin on timer 4, channel B - sbi(TCCR4A, COM4B1); - OCR4B = val; // set pwm duty - break; - #endif - - #if defined(TCCR4A) && defined(COM4C1) - case TIMER4C: - // connect pwm to pin on timer 4, channel C - sbi(TCCR4A, COM4C1); - OCR4C = val; // set pwm duty - break; - #endif - - #if defined(TCCR5A) && defined(COM5A1) - case TIMER5A: - // connect pwm to pin on timer 5, channel A - sbi(TCCR5A, COM5A1); - OCR5A = val; // set pwm duty - break; - #endif - - #if defined(TCCR5A) && defined(COM5B1) - case TIMER5B: - // connect pwm to pin on timer 5, channel B - sbi(TCCR5A, COM5B1); - OCR5B = val; // set pwm duty - break; - #endif - - #if defined(TCCR5A) && defined(COM5C1) - case TIMER5C: - // connect pwm to pin on timer 5, channel C - sbi(TCCR5A, COM5C1); - OCR5C = val; // set pwm duty - break; - #endif - - case NOT_ON_TIMER: - default: - if (val < 128) { - digitalWrite(pin, LOW); - } else { - digitalWrite(pin, HIGH); - } - } - } -} - -#ifdef __cplusplus -} -#endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/adc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_adc.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/adc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_adc.h index 3109a5fff..4b4687b3f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_ADC_COMPONENT_ #define _SAM3N_ADC_COMPONENT_ @@ -52,55 +79,6 @@ typedef struct { /* -------- ADC_CR : (ADC Offset: 0x00) Control Register -------- */ #define ADC_CR_SWRST (0x1u << 0) /**< \brief (ADC_CR) Software Reset */ #define ADC_CR_START (0x1u << 1) /**< \brief (ADC_CR) Start Conversion */ -/* -------- ADC_MR : (ADC Offset: 0x04) Mode Register -------- */ -#define ADC_MR_TRGEN (0x1u << 0) /**< \brief (ADC_MR) Trigger Enable */ -#define ADC_MR_TRGEN_DIS (0x0u << 0) /**< \brief (ADC_MR) Hardware triggers are disabled. Starting a conversion is only possible by software. */ -#define ADC_MR_TRGEN_EN (0x1u << 0) /**< \brief (ADC_MR) Hardware trigger selected by TRGSEL field is enabled. */ -#define ADC_MR_TRGSEL_Pos 1 -#define ADC_MR_TRGSEL_Msk (0x7u << ADC_MR_TRGSEL_Pos) /**< \brief (ADC_MR) Trigger Selection */ -#define ADC_MR_TRGSEL_ADC_TRIG0 (0x0u << 1) /**< \brief (ADC_MR) External trigger */ -#define ADC_MR_TRGSEL_ADC_TRIG1 (0x1u << 1) /**< \brief (ADC_MR) TIO Output of the Timer Counter Channel 0 */ -#define ADC_MR_TRGSEL_ADC_TRIG2 (0x2u << 1) /**< \brief (ADC_MR) TIO Output of the Timer Counter Channel 1 */ -#define ADC_MR_TRGSEL_ADC_TRIG3 (0x3u << 1) /**< \brief (ADC_MR) TIO Output of the Timer Counter Channel 2 */ -#define ADC_MR_LOWRES (0x1u << 4) /**< \brief (ADC_MR) Resolution */ -#define ADC_MR_LOWRES_BITS_10 (0x0u << 4) /**< \brief (ADC_MR) 10-bit resolution */ -#define ADC_MR_LOWRES_BITS_8 (0x1u << 4) /**< \brief (ADC_MR) 8-bit resolution */ -#define ADC_MR_SLEEP (0x1u << 5) /**< \brief (ADC_MR) Sleep Mode */ -#define ADC_MR_SLEEP_NORMAL (0x0u << 5) /**< \brief (ADC_MR) Normal Mode: The ADC Core and reference voltage circuitry are kept ON between conversions */ -#define ADC_MR_SLEEP_SLEEP (0x1u << 5) /**< \brief (ADC_MR) Sleep Mode: The ADC Core and reference voltage circuitry are OFF between conversions */ -#define ADC_MR_FWUP (0x1u << 6) /**< \brief (ADC_MR) Fast Wake Up */ -#define ADC_MR_FWUP_OFF (0x0u << 6) /**< \brief (ADC_MR) Normal Sleep Mode: The sleep mode is defined by the SLEEP bit */ -#define ADC_MR_FWUP_ON (0x1u << 6) /**< \brief (ADC_MR) Fast Wake Up Sleep Mode: The Voltage reference is ON between conversions and ADC Core is OFF */ -#define ADC_MR_FREERUN (0x1u << 7) /**< \brief (ADC_MR) Free Run Mode */ -#define ADC_MR_FREERUN_OFF (0x0u << 7) /**< \brief (ADC_MR) Normal Mode */ -#define ADC_MR_FREERUN_ON (0x1u << 7) /**< \brief (ADC_MR) Free Run Mode: Never wait for any trigger. */ -#define ADC_MR_PRESCAL_Pos 8 -#define ADC_MR_PRESCAL_Msk (0xffu << ADC_MR_PRESCAL_Pos) /**< \brief (ADC_MR) Prescaler Rate Selection */ -#define ADC_MR_PRESCAL(value) ((ADC_MR_PRESCAL_Msk & ((value) << ADC_MR_PRESCAL_Pos))) -#define ADC_MR_STARTUP_Pos 16 -#define ADC_MR_STARTUP_Msk (0xfu << ADC_MR_STARTUP_Pos) /**< \brief (ADC_MR) Start Up Time */ -#define ADC_MR_STARTUP_SUT0 (0x0u << 16) /**< \brief (ADC_MR) 0 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT8 (0x1u << 16) /**< \brief (ADC_MR) 8 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT16 (0x2u << 16) /**< \brief (ADC_MR) 16 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT24 (0x3u << 16) /**< \brief (ADC_MR) 24 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT64 (0x4u << 16) /**< \brief (ADC_MR) 64 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT80 (0x5u << 16) /**< \brief (ADC_MR) 80 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT96 (0x6u << 16) /**< \brief (ADC_MR) 96 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT112 (0x7u << 16) /**< \brief (ADC_MR) 112 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT512 (0x8u << 16) /**< \brief (ADC_MR) 512 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT576 (0x9u << 16) /**< \brief (ADC_MR) 576 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT640 (0xAu << 16) /**< \brief (ADC_MR) 640 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT704 (0xBu << 16) /**< \brief (ADC_MR) 704 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT768 (0xCu << 16) /**< \brief (ADC_MR) 768 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT832 (0xDu << 16) /**< \brief (ADC_MR) 832 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT896 (0xEu << 16) /**< \brief (ADC_MR) 896 periods of ADCClock */ -#define ADC_MR_STARTUP_SUT960 (0xFu << 16) /**< \brief (ADC_MR) 960 periods of ADCClock */ -#define ADC_MR_TRACKTIM_Pos 24 -#define ADC_MR_TRACKTIM_Msk (0xfu << ADC_MR_TRACKTIM_Pos) /**< \brief (ADC_MR) Tracking Time */ -#define ADC_MR_TRACKTIM(value) ((ADC_MR_TRACKTIM_Msk & ((value) << ADC_MR_TRACKTIM_Pos))) -#define ADC_MR_USEQ (0x1u << 31) /**< \brief (ADC_MR) Use Sequence Enable */ -#define ADC_MR_USEQ_NUM_ORDER (0x0u << 31) /**< \brief (ADC_MR) Normal Mode: The controller converts channels in a simple numeric order. */ -#define ADC_MR_USEQ_REG_ORDER (0x1u << 31) /**< \brief (ADC_MR) User Sequence Mode: The sequence respects what is defined in ADC_SEQR1 and ADC_SEQR2 registers. */ /* -------- ADC_SEQR1 : (ADC Offset: 0x08) Channel Sequence Register 1 -------- */ #define ADC_SEQR1_USCH1_Pos 0 #define ADC_SEQR1_USCH1_Msk (0xfu << ADC_SEQR1_USCH1_Pos) /**< \brief (ADC_SEQR1) User Sequence Number 1 */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/chipid.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_chipid.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/chipid.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_chipid.h index 79e9d6d7d..a008d67ae 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/chipid.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_chipid.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_CHIPID_COMPONENT_ #define _SAM3N_CHIPID_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/dacc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_dacc.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_dacc.h index 641f9c545..5608c129c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_DACC_COMPONENT_ #define _SAM3N_DACC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/efc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_efc.h similarity index 63% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/efc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_efc.h index a1f1db355..113eedb40 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/efc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_efc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_EFC_COMPONENT_ #define _SAM3N_EFC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_gpbr.h new file mode 100644 index 000000000..5e72e4029 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_gpbr.h @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_GPBR_COMPONENT_ +#define _SAM3N_GPBR_COMPONENT_ + +/* ============================================================================= */ +/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ +/* ============================================================================= */ +/** \addtogroup SAM3N_GPBR General Purpose Backup Register */ +/*@{*/ + +#ifndef __ASSEMBLY__ +/** \brief Gpbr hardware registers */ +typedef struct { + RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ +} Gpbr; +#endif /* __ASSEMBLY__ */ +/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ +#define SYS_GPBR_GPBR_VALUE_Pos 0 +#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ +#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) + +/*@}*/ + + +#endif /* _SAM3N_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/matrix.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_matrix.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_matrix.h index 42733f776..af565e258 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_MATRIX_COMPONENT_ #define _SAM3N_MATRIX_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pdc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pdc.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/pdc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pdc.h index 17a2a5f15..6034cf850 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pdc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pdc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PDC_COMPONENT_ #define _SAM3N_PDC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pio.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pio.h similarity index 98% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/pio.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pio.h index 9bf6a3768..e83076a7a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pio.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pio.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PIO_COMPONENT_ #define _SAM3N_PIO_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pmc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pmc.h similarity index 54% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pmc.h index b9a26fc2b..eefe44af3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PMC_COMPONENT_ #define _SAM3N_PMC_COMPONENT_ @@ -16,13 +43,13 @@ typedef struct { WoReg PMC_SCDR; /**< \brief (Pmc Offset: 0x0004) System Clock Disable Register */ RoReg PMC_SCSR; /**< \brief (Pmc Offset: 0x0008) System Clock Status Register */ RoReg Reserved1[1]; - WoReg PMC_PCER; /**< \brief (Pmc Offset: 0x0010) Peripheral Clock Enable Register */ - WoReg PMC_PCDR; /**< \brief (Pmc Offset: 0x0014) Peripheral Clock Disable Register */ - RoReg PMC_PCSR; /**< \brief (Pmc Offset: 0x0018) Peripheral Clock Status Register */ + WoReg PMC_PCER0; /**< \brief (Pmc Offset: 0x0010) Peripheral Clock Enable Register 0 */ + WoReg PMC_PCDR0; /**< \brief (Pmc Offset: 0x0014) Peripheral Clock Disable Register 0 */ + RoReg PMC_PCSR0; /**< \brief (Pmc Offset: 0x0018) Peripheral Clock Status Register 0 */ RoReg Reserved2[1]; RwReg CKGR_MOR; /**< \brief (Pmc Offset: 0x0020) Main Oscillator Register */ RoReg CKGR_MCFR; /**< \brief (Pmc Offset: 0x0024) Main Clock Frequency Register */ - RwReg CKGR_PLLR; /**< \brief (Pmc Offset: 0x0028) PLL Register */ + RwReg CKGR_PLLAR; /**< \brief (Pmc Offset: 0x0028) PLLA Register */ RoReg Reserved3[1]; RwReg PMC_MCKR; /**< \brief (Pmc Offset: 0x0030) Master Clock Register */ RoReg Reserved4[3]; @@ -54,109 +81,108 @@ typedef struct { #define PMC_SCSR_PCK0 (0x1u << 8) /**< \brief (PMC_SCSR) Programmable Clock 0 Output Status */ #define PMC_SCSR_PCK1 (0x1u << 9) /**< \brief (PMC_SCSR) Programmable Clock 1 Output Status */ #define PMC_SCSR_PCK2 (0x1u << 10) /**< \brief (PMC_SCSR) Programmable Clock 2 Output Status */ -/* -------- PMC_PCER : (PMC Offset: 0x0010) Peripheral Clock Enable Register -------- */ -#define PMC_PCER_PID2 (0x1u << 2) /**< \brief (PMC_PCER) Peripheral Clock 2 Enable */ -#define PMC_PCER_PID3 (0x1u << 3) /**< \brief (PMC_PCER) Peripheral Clock 3 Enable */ -#define PMC_PCER_PID4 (0x1u << 4) /**< \brief (PMC_PCER) Peripheral Clock 4 Enable */ -#define PMC_PCER_PID5 (0x1u << 5) /**< \brief (PMC_PCER) Peripheral Clock 5 Enable */ -#define PMC_PCER_PID6 (0x1u << 6) /**< \brief (PMC_PCER) Peripheral Clock 6 Enable */ -#define PMC_PCER_PID7 (0x1u << 7) /**< \brief (PMC_PCER) Peripheral Clock 7 Enable */ -#define PMC_PCER_PID8 (0x1u << 8) /**< \brief (PMC_PCER) Peripheral Clock 8 Enable */ -#define PMC_PCER_PID9 (0x1u << 9) /**< \brief (PMC_PCER) Peripheral Clock 9 Enable */ -#define PMC_PCER_PID10 (0x1u << 10) /**< \brief (PMC_PCER) Peripheral Clock 10 Enable */ -#define PMC_PCER_PID11 (0x1u << 11) /**< \brief (PMC_PCER) Peripheral Clock 11 Enable */ -#define PMC_PCER_PID12 (0x1u << 12) /**< \brief (PMC_PCER) Peripheral Clock 12 Enable */ -#define PMC_PCER_PID13 (0x1u << 13) /**< \brief (PMC_PCER) Peripheral Clock 13 Enable */ -#define PMC_PCER_PID14 (0x1u << 14) /**< \brief (PMC_PCER) Peripheral Clock 14 Enable */ -#define PMC_PCER_PID15 (0x1u << 15) /**< \brief (PMC_PCER) Peripheral Clock 15 Enable */ -#define PMC_PCER_PID16 (0x1u << 16) /**< \brief (PMC_PCER) Peripheral Clock 16 Enable */ -#define PMC_PCER_PID17 (0x1u << 17) /**< \brief (PMC_PCER) Peripheral Clock 17 Enable */ -#define PMC_PCER_PID18 (0x1u << 18) /**< \brief (PMC_PCER) Peripheral Clock 18 Enable */ -#define PMC_PCER_PID19 (0x1u << 19) /**< \brief (PMC_PCER) Peripheral Clock 19 Enable */ -#define PMC_PCER_PID20 (0x1u << 20) /**< \brief (PMC_PCER) Peripheral Clock 20 Enable */ -#define PMC_PCER_PID21 (0x1u << 21) /**< \brief (PMC_PCER) Peripheral Clock 21 Enable */ -#define PMC_PCER_PID22 (0x1u << 22) /**< \brief (PMC_PCER) Peripheral Clock 22 Enable */ -#define PMC_PCER_PID23 (0x1u << 23) /**< \brief (PMC_PCER) Peripheral Clock 23 Enable */ -#define PMC_PCER_PID24 (0x1u << 24) /**< \brief (PMC_PCER) Peripheral Clock 24 Enable */ -#define PMC_PCER_PID25 (0x1u << 25) /**< \brief (PMC_PCER) Peripheral Clock 25 Enable */ -#define PMC_PCER_PID26 (0x1u << 26) /**< \brief (PMC_PCER) Peripheral Clock 26 Enable */ -#define PMC_PCER_PID27 (0x1u << 27) /**< \brief (PMC_PCER) Peripheral Clock 27 Enable */ -#define PMC_PCER_PID28 (0x1u << 28) /**< \brief (PMC_PCER) Peripheral Clock 28 Enable */ -#define PMC_PCER_PID29 (0x1u << 29) /**< \brief (PMC_PCER) Peripheral Clock 29 Enable */ -#define PMC_PCER_PID30 (0x1u << 30) /**< \brief (PMC_PCER) Peripheral Clock 30 Enable */ -#define PMC_PCER_PID31 (0x1u << 31) /**< \brief (PMC_PCER) Peripheral Clock 31 Enable */ -/* -------- PMC_PCDR : (PMC Offset: 0x0014) Peripheral Clock Disable Register -------- */ -#define PMC_PCDR_PID2 (0x1u << 2) /**< \brief (PMC_PCDR) Peripheral Clock 2 Disable */ -#define PMC_PCDR_PID3 (0x1u << 3) /**< \brief (PMC_PCDR) Peripheral Clock 3 Disable */ -#define PMC_PCDR_PID4 (0x1u << 4) /**< \brief (PMC_PCDR) Peripheral Clock 4 Disable */ -#define PMC_PCDR_PID5 (0x1u << 5) /**< \brief (PMC_PCDR) Peripheral Clock 5 Disable */ -#define PMC_PCDR_PID6 (0x1u << 6) /**< \brief (PMC_PCDR) Peripheral Clock 6 Disable */ -#define PMC_PCDR_PID7 (0x1u << 7) /**< \brief (PMC_PCDR) Peripheral Clock 7 Disable */ -#define PMC_PCDR_PID8 (0x1u << 8) /**< \brief (PMC_PCDR) Peripheral Clock 8 Disable */ -#define PMC_PCDR_PID9 (0x1u << 9) /**< \brief (PMC_PCDR) Peripheral Clock 9 Disable */ -#define PMC_PCDR_PID10 (0x1u << 10) /**< \brief (PMC_PCDR) Peripheral Clock 10 Disable */ -#define PMC_PCDR_PID11 (0x1u << 11) /**< \brief (PMC_PCDR) Peripheral Clock 11 Disable */ -#define PMC_PCDR_PID12 (0x1u << 12) /**< \brief (PMC_PCDR) Peripheral Clock 12 Disable */ -#define PMC_PCDR_PID13 (0x1u << 13) /**< \brief (PMC_PCDR) Peripheral Clock 13 Disable */ -#define PMC_PCDR_PID14 (0x1u << 14) /**< \brief (PMC_PCDR) Peripheral Clock 14 Disable */ -#define PMC_PCDR_PID15 (0x1u << 15) /**< \brief (PMC_PCDR) Peripheral Clock 15 Disable */ -#define PMC_PCDR_PID16 (0x1u << 16) /**< \brief (PMC_PCDR) Peripheral Clock 16 Disable */ -#define PMC_PCDR_PID17 (0x1u << 17) /**< \brief (PMC_PCDR) Peripheral Clock 17 Disable */ -#define PMC_PCDR_PID18 (0x1u << 18) /**< \brief (PMC_PCDR) Peripheral Clock 18 Disable */ -#define PMC_PCDR_PID19 (0x1u << 19) /**< \brief (PMC_PCDR) Peripheral Clock 19 Disable */ -#define PMC_PCDR_PID20 (0x1u << 20) /**< \brief (PMC_PCDR) Peripheral Clock 20 Disable */ -#define PMC_PCDR_PID21 (0x1u << 21) /**< \brief (PMC_PCDR) Peripheral Clock 21 Disable */ -#define PMC_PCDR_PID22 (0x1u << 22) /**< \brief (PMC_PCDR) Peripheral Clock 22 Disable */ -#define PMC_PCDR_PID23 (0x1u << 23) /**< \brief (PMC_PCDR) Peripheral Clock 23 Disable */ -#define PMC_PCDR_PID24 (0x1u << 24) /**< \brief (PMC_PCDR) Peripheral Clock 24 Disable */ -#define PMC_PCDR_PID25 (0x1u << 25) /**< \brief (PMC_PCDR) Peripheral Clock 25 Disable */ -#define PMC_PCDR_PID26 (0x1u << 26) /**< \brief (PMC_PCDR) Peripheral Clock 26 Disable */ -#define PMC_PCDR_PID27 (0x1u << 27) /**< \brief (PMC_PCDR) Peripheral Clock 27 Disable */ -#define PMC_PCDR_PID28 (0x1u << 28) /**< \brief (PMC_PCDR) Peripheral Clock 28 Disable */ -#define PMC_PCDR_PID29 (0x1u << 29) /**< \brief (PMC_PCDR) Peripheral Clock 29 Disable */ -#define PMC_PCDR_PID30 (0x1u << 30) /**< \brief (PMC_PCDR) Peripheral Clock 30 Disable */ -#define PMC_PCDR_PID31 (0x1u << 31) /**< \brief (PMC_PCDR) Peripheral Clock 31 Disable */ -/* -------- PMC_PCSR : (PMC Offset: 0x0018) Peripheral Clock Status Register -------- */ -#define PMC_PCSR_PID2 (0x1u << 2) /**< \brief (PMC_PCSR) Peripheral Clock 2 Status */ -#define PMC_PCSR_PID3 (0x1u << 3) /**< \brief (PMC_PCSR) Peripheral Clock 3 Status */ -#define PMC_PCSR_PID4 (0x1u << 4) /**< \brief (PMC_PCSR) Peripheral Clock 4 Status */ -#define PMC_PCSR_PID5 (0x1u << 5) /**< \brief (PMC_PCSR) Peripheral Clock 5 Status */ -#define PMC_PCSR_PID6 (0x1u << 6) /**< \brief (PMC_PCSR) Peripheral Clock 6 Status */ -#define PMC_PCSR_PID7 (0x1u << 7) /**< \brief (PMC_PCSR) Peripheral Clock 7 Status */ -#define PMC_PCSR_PID8 (0x1u << 8) /**< \brief (PMC_PCSR) Peripheral Clock 8 Status */ -#define PMC_PCSR_PID9 (0x1u << 9) /**< \brief (PMC_PCSR) Peripheral Clock 9 Status */ -#define PMC_PCSR_PID10 (0x1u << 10) /**< \brief (PMC_PCSR) Peripheral Clock 10 Status */ -#define PMC_PCSR_PID11 (0x1u << 11) /**< \brief (PMC_PCSR) Peripheral Clock 11 Status */ -#define PMC_PCSR_PID12 (0x1u << 12) /**< \brief (PMC_PCSR) Peripheral Clock 12 Status */ -#define PMC_PCSR_PID13 (0x1u << 13) /**< \brief (PMC_PCSR) Peripheral Clock 13 Status */ -#define PMC_PCSR_PID14 (0x1u << 14) /**< \brief (PMC_PCSR) Peripheral Clock 14 Status */ -#define PMC_PCSR_PID15 (0x1u << 15) /**< \brief (PMC_PCSR) Peripheral Clock 15 Status */ -#define PMC_PCSR_PID16 (0x1u << 16) /**< \brief (PMC_PCSR) Peripheral Clock 16 Status */ -#define PMC_PCSR_PID17 (0x1u << 17) /**< \brief (PMC_PCSR) Peripheral Clock 17 Status */ -#define PMC_PCSR_PID18 (0x1u << 18) /**< \brief (PMC_PCSR) Peripheral Clock 18 Status */ -#define PMC_PCSR_PID19 (0x1u << 19) /**< \brief (PMC_PCSR) Peripheral Clock 19 Status */ -#define PMC_PCSR_PID20 (0x1u << 20) /**< \brief (PMC_PCSR) Peripheral Clock 20 Status */ -#define PMC_PCSR_PID21 (0x1u << 21) /**< \brief (PMC_PCSR) Peripheral Clock 21 Status */ -#define PMC_PCSR_PID22 (0x1u << 22) /**< \brief (PMC_PCSR) Peripheral Clock 22 Status */ -#define PMC_PCSR_PID23 (0x1u << 23) /**< \brief (PMC_PCSR) Peripheral Clock 23 Status */ -#define PMC_PCSR_PID24 (0x1u << 24) /**< \brief (PMC_PCSR) Peripheral Clock 24 Status */ -#define PMC_PCSR_PID25 (0x1u << 25) /**< \brief (PMC_PCSR) Peripheral Clock 25 Status */ -#define PMC_PCSR_PID26 (0x1u << 26) /**< \brief (PMC_PCSR) Peripheral Clock 26 Status */ -#define PMC_PCSR_PID27 (0x1u << 27) /**< \brief (PMC_PCSR) Peripheral Clock 27 Status */ -#define PMC_PCSR_PID28 (0x1u << 28) /**< \brief (PMC_PCSR) Peripheral Clock 28 Status */ -#define PMC_PCSR_PID29 (0x1u << 29) /**< \brief (PMC_PCSR) Peripheral Clock 29 Status */ -#define PMC_PCSR_PID30 (0x1u << 30) /**< \brief (PMC_PCSR) Peripheral Clock 30 Status */ -#define PMC_PCSR_PID31 (0x1u << 31) /**< \brief (PMC_PCSR) Peripheral Clock 31 Status */ +/* -------- PMC_PCER0 : (PMC Offset: 0x0010) Peripheral Clock Enable Register 0 -------- */ +#define PMC_PCER0_PID2 (0x1u << 2) /**< \brief (PMC_PCER0) Peripheral Clock 2 Enable */ +#define PMC_PCER0_PID3 (0x1u << 3) /**< \brief (PMC_PCER0) Peripheral Clock 3 Enable */ +#define PMC_PCER0_PID4 (0x1u << 4) /**< \brief (PMC_PCER0) Peripheral Clock 4 Enable */ +#define PMC_PCER0_PID5 (0x1u << 5) /**< \brief (PMC_PCER0) Peripheral Clock 5 Enable */ +#define PMC_PCER0_PID6 (0x1u << 6) /**< \brief (PMC_PCER0) Peripheral Clock 6 Enable */ +#define PMC_PCER0_PID7 (0x1u << 7) /**< \brief (PMC_PCER0) Peripheral Clock 7 Enable */ +#define PMC_PCER0_PID8 (0x1u << 8) /**< \brief (PMC_PCER0) Peripheral Clock 8 Enable */ +#define PMC_PCER0_PID9 (0x1u << 9) /**< \brief (PMC_PCER0) Peripheral Clock 9 Enable */ +#define PMC_PCER0_PID10 (0x1u << 10) /**< \brief (PMC_PCER0) Peripheral Clock 10 Enable */ +#define PMC_PCER0_PID11 (0x1u << 11) /**< \brief (PMC_PCER0) Peripheral Clock 11 Enable */ +#define PMC_PCER0_PID12 (0x1u << 12) /**< \brief (PMC_PCER0) Peripheral Clock 12 Enable */ +#define PMC_PCER0_PID13 (0x1u << 13) /**< \brief (PMC_PCER0) Peripheral Clock 13 Enable */ +#define PMC_PCER0_PID14 (0x1u << 14) /**< \brief (PMC_PCER0) Peripheral Clock 14 Enable */ +#define PMC_PCER0_PID15 (0x1u << 15) /**< \brief (PMC_PCER0) Peripheral Clock 15 Enable */ +#define PMC_PCER0_PID16 (0x1u << 16) /**< \brief (PMC_PCER0) Peripheral Clock 16 Enable */ +#define PMC_PCER0_PID17 (0x1u << 17) /**< \brief (PMC_PCER0) Peripheral Clock 17 Enable */ +#define PMC_PCER0_PID18 (0x1u << 18) /**< \brief (PMC_PCER0) Peripheral Clock 18 Enable */ +#define PMC_PCER0_PID19 (0x1u << 19) /**< \brief (PMC_PCER0) Peripheral Clock 19 Enable */ +#define PMC_PCER0_PID20 (0x1u << 20) /**< \brief (PMC_PCER0) Peripheral Clock 20 Enable */ +#define PMC_PCER0_PID21 (0x1u << 21) /**< \brief (PMC_PCER0) Peripheral Clock 21 Enable */ +#define PMC_PCER0_PID22 (0x1u << 22) /**< \brief (PMC_PCER0) Peripheral Clock 22 Enable */ +#define PMC_PCER0_PID23 (0x1u << 23) /**< \brief (PMC_PCER0) Peripheral Clock 23 Enable */ +#define PMC_PCER0_PID24 (0x1u << 24) /**< \brief (PMC_PCER0) Peripheral Clock 24 Enable */ +#define PMC_PCER0_PID25 (0x1u << 25) /**< \brief (PMC_PCER0) Peripheral Clock 25 Enable */ +#define PMC_PCER0_PID26 (0x1u << 26) /**< \brief (PMC_PCER0) Peripheral Clock 26 Enable */ +#define PMC_PCER0_PID27 (0x1u << 27) /**< \brief (PMC_PCER0) Peripheral Clock 27 Enable */ +#define PMC_PCER0_PID28 (0x1u << 28) /**< \brief (PMC_PCER0) Peripheral Clock 28 Enable */ +#define PMC_PCER0_PID29 (0x1u << 29) /**< \brief (PMC_PCER0) Peripheral Clock 29 Enable */ +#define PMC_PCER0_PID30 (0x1u << 30) /**< \brief (PMC_PCER0) Peripheral Clock 30 Enable */ +#define PMC_PCER0_PID31 (0x1u << 31) /**< \brief (PMC_PCER0) Peripheral Clock 31 Enable */ +/* -------- PMC_PCDR0 : (PMC Offset: 0x0014) Peripheral Clock Disable Register 0 -------- */ +#define PMC_PCDR0_PID2 (0x1u << 2) /**< \brief (PMC_PCDR0) Peripheral Clock 2 Disable */ +#define PMC_PCDR0_PID3 (0x1u << 3) /**< \brief (PMC_PCDR0) Peripheral Clock 3 Disable */ +#define PMC_PCDR0_PID4 (0x1u << 4) /**< \brief (PMC_PCDR0) Peripheral Clock 4 Disable */ +#define PMC_PCDR0_PID5 (0x1u << 5) /**< \brief (PMC_PCDR0) Peripheral Clock 5 Disable */ +#define PMC_PCDR0_PID6 (0x1u << 6) /**< \brief (PMC_PCDR0) Peripheral Clock 6 Disable */ +#define PMC_PCDR0_PID7 (0x1u << 7) /**< \brief (PMC_PCDR0) Peripheral Clock 7 Disable */ +#define PMC_PCDR0_PID8 (0x1u << 8) /**< \brief (PMC_PCDR0) Peripheral Clock 8 Disable */ +#define PMC_PCDR0_PID9 (0x1u << 9) /**< \brief (PMC_PCDR0) Peripheral Clock 9 Disable */ +#define PMC_PCDR0_PID10 (0x1u << 10) /**< \brief (PMC_PCDR0) Peripheral Clock 10 Disable */ +#define PMC_PCDR0_PID11 (0x1u << 11) /**< \brief (PMC_PCDR0) Peripheral Clock 11 Disable */ +#define PMC_PCDR0_PID12 (0x1u << 12) /**< \brief (PMC_PCDR0) Peripheral Clock 12 Disable */ +#define PMC_PCDR0_PID13 (0x1u << 13) /**< \brief (PMC_PCDR0) Peripheral Clock 13 Disable */ +#define PMC_PCDR0_PID14 (0x1u << 14) /**< \brief (PMC_PCDR0) Peripheral Clock 14 Disable */ +#define PMC_PCDR0_PID15 (0x1u << 15) /**< \brief (PMC_PCDR0) Peripheral Clock 15 Disable */ +#define PMC_PCDR0_PID16 (0x1u << 16) /**< \brief (PMC_PCDR0) Peripheral Clock 16 Disable */ +#define PMC_PCDR0_PID17 (0x1u << 17) /**< \brief (PMC_PCDR0) Peripheral Clock 17 Disable */ +#define PMC_PCDR0_PID18 (0x1u << 18) /**< \brief (PMC_PCDR0) Peripheral Clock 18 Disable */ +#define PMC_PCDR0_PID19 (0x1u << 19) /**< \brief (PMC_PCDR0) Peripheral Clock 19 Disable */ +#define PMC_PCDR0_PID20 (0x1u << 20) /**< \brief (PMC_PCDR0) Peripheral Clock 20 Disable */ +#define PMC_PCDR0_PID21 (0x1u << 21) /**< \brief (PMC_PCDR0) Peripheral Clock 21 Disable */ +#define PMC_PCDR0_PID22 (0x1u << 22) /**< \brief (PMC_PCDR0) Peripheral Clock 22 Disable */ +#define PMC_PCDR0_PID23 (0x1u << 23) /**< \brief (PMC_PCDR0) Peripheral Clock 23 Disable */ +#define PMC_PCDR0_PID24 (0x1u << 24) /**< \brief (PMC_PCDR0) Peripheral Clock 24 Disable */ +#define PMC_PCDR0_PID25 (0x1u << 25) /**< \brief (PMC_PCDR0) Peripheral Clock 25 Disable */ +#define PMC_PCDR0_PID26 (0x1u << 26) /**< \brief (PMC_PCDR0) Peripheral Clock 26 Disable */ +#define PMC_PCDR0_PID27 (0x1u << 27) /**< \brief (PMC_PCDR0) Peripheral Clock 27 Disable */ +#define PMC_PCDR0_PID28 (0x1u << 28) /**< \brief (PMC_PCDR0) Peripheral Clock 28 Disable */ +#define PMC_PCDR0_PID29 (0x1u << 29) /**< \brief (PMC_PCDR0) Peripheral Clock 29 Disable */ +#define PMC_PCDR0_PID30 (0x1u << 30) /**< \brief (PMC_PCDR0) Peripheral Clock 30 Disable */ +#define PMC_PCDR0_PID31 (0x1u << 31) /**< \brief (PMC_PCDR0) Peripheral Clock 31 Disable */ +/* -------- PMC_PCSR0 : (PMC Offset: 0x0018) Peripheral Clock Status Register 0 -------- */ +#define PMC_PCSR0_PID2 (0x1u << 2) /**< \brief (PMC_PCSR0) Peripheral Clock 2 Status */ +#define PMC_PCSR0_PID3 (0x1u << 3) /**< \brief (PMC_PCSR0) Peripheral Clock 3 Status */ +#define PMC_PCSR0_PID4 (0x1u << 4) /**< \brief (PMC_PCSR0) Peripheral Clock 4 Status */ +#define PMC_PCSR0_PID5 (0x1u << 5) /**< \brief (PMC_PCSR0) Peripheral Clock 5 Status */ +#define PMC_PCSR0_PID6 (0x1u << 6) /**< \brief (PMC_PCSR0) Peripheral Clock 6 Status */ +#define PMC_PCSR0_PID7 (0x1u << 7) /**< \brief (PMC_PCSR0) Peripheral Clock 7 Status */ +#define PMC_PCSR0_PID8 (0x1u << 8) /**< \brief (PMC_PCSR0) Peripheral Clock 8 Status */ +#define PMC_PCSR0_PID9 (0x1u << 9) /**< \brief (PMC_PCSR0) Peripheral Clock 9 Status */ +#define PMC_PCSR0_PID10 (0x1u << 10) /**< \brief (PMC_PCSR0) Peripheral Clock 10 Status */ +#define PMC_PCSR0_PID11 (0x1u << 11) /**< \brief (PMC_PCSR0) Peripheral Clock 11 Status */ +#define PMC_PCSR0_PID12 (0x1u << 12) /**< \brief (PMC_PCSR0) Peripheral Clock 12 Status */ +#define PMC_PCSR0_PID13 (0x1u << 13) /**< \brief (PMC_PCSR0) Peripheral Clock 13 Status */ +#define PMC_PCSR0_PID14 (0x1u << 14) /**< \brief (PMC_PCSR0) Peripheral Clock 14 Status */ +#define PMC_PCSR0_PID15 (0x1u << 15) /**< \brief (PMC_PCSR0) Peripheral Clock 15 Status */ +#define PMC_PCSR0_PID16 (0x1u << 16) /**< \brief (PMC_PCSR0) Peripheral Clock 16 Status */ +#define PMC_PCSR0_PID17 (0x1u << 17) /**< \brief (PMC_PCSR0) Peripheral Clock 17 Status */ +#define PMC_PCSR0_PID18 (0x1u << 18) /**< \brief (PMC_PCSR0) Peripheral Clock 18 Status */ +#define PMC_PCSR0_PID19 (0x1u << 19) /**< \brief (PMC_PCSR0) Peripheral Clock 19 Status */ +#define PMC_PCSR0_PID20 (0x1u << 20) /**< \brief (PMC_PCSR0) Peripheral Clock 20 Status */ +#define PMC_PCSR0_PID21 (0x1u << 21) /**< \brief (PMC_PCSR0) Peripheral Clock 21 Status */ +#define PMC_PCSR0_PID22 (0x1u << 22) /**< \brief (PMC_PCSR0) Peripheral Clock 22 Status */ +#define PMC_PCSR0_PID23 (0x1u << 23) /**< \brief (PMC_PCSR0) Peripheral Clock 23 Status */ +#define PMC_PCSR0_PID24 (0x1u << 24) /**< \brief (PMC_PCSR0) Peripheral Clock 24 Status */ +#define PMC_PCSR0_PID25 (0x1u << 25) /**< \brief (PMC_PCSR0) Peripheral Clock 25 Status */ +#define PMC_PCSR0_PID26 (0x1u << 26) /**< \brief (PMC_PCSR0) Peripheral Clock 26 Status */ +#define PMC_PCSR0_PID27 (0x1u << 27) /**< \brief (PMC_PCSR0) Peripheral Clock 27 Status */ +#define PMC_PCSR0_PID28 (0x1u << 28) /**< \brief (PMC_PCSR0) Peripheral Clock 28 Status */ +#define PMC_PCSR0_PID29 (0x1u << 29) /**< \brief (PMC_PCSR0) Peripheral Clock 29 Status */ +#define PMC_PCSR0_PID30 (0x1u << 30) /**< \brief (PMC_PCSR0) Peripheral Clock 30 Status */ +#define PMC_PCSR0_PID31 (0x1u << 31) /**< \brief (PMC_PCSR0) Peripheral Clock 31 Status */ /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ #define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ #define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ -#define CKGR_MOR_WAITMODE (0x1u << 2) /**< \brief (CKGR_MOR) Wait Mode Command */ #define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ #define CKGR_MOR_MOSCRCF_Pos 4 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ -#define CKGR_MOR_MOSCRCF_4MHZ (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ -#define CKGR_MOR_MOSCRCF_8MHZ (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ -#define CKGR_MOR_MOSCRCF_12MHZ (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ +#define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ +#define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ +#define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ #define CKGR_MOR_MOSCXTST_Pos 8 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) @@ -169,54 +195,47 @@ typedef struct { #define CKGR_MCFR_MAINF_Pos 0 #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) /**< \brief (CKGR_MCFR) Main Clock Frequency */ #define CKGR_MCFR_MAINFRDY (0x1u << 16) /**< \brief (CKGR_MCFR) Main Clock Ready */ -/* -------- CKGR_PLLR : (PMC Offset: 0x0028) PLL Register -------- */ -#define CKGR_PLLR_DIV_Pos 0 -#define CKGR_PLLR_DIV_Msk (0xffu << CKGR_PLLR_DIV_Pos) /**< \brief (CKGR_PLLR) Divider */ -#define CKGR_PLLR_DIV(value) ((CKGR_PLLR_DIV_Msk & ((value) << CKGR_PLLR_DIV_Pos))) -#define CKGR_PLLR_PLLCOUNT_Pos 8 -#define CKGR_PLLR_PLLCOUNT_Msk (0x3fu << CKGR_PLLR_PLLCOUNT_Pos) /**< \brief (CKGR_PLLR) PLL Counter */ -#define CKGR_PLLR_PLLCOUNT(value) ((CKGR_PLLR_PLLCOUNT_Msk & ((value) << CKGR_PLLR_PLLCOUNT_Pos))) -#define CKGR_PLLR_MUL_Pos 16 -#define CKGR_PLLR_MUL_Msk (0x7ffu << CKGR_PLLR_MUL_Pos) /**< \brief (CKGR_PLLR) PLL Multiplier */ -#define CKGR_PLLR_MUL(value) ((CKGR_PLLR_MUL_Msk & ((value) << CKGR_PLLR_MUL_Pos))) -#define CKGR_PLLR_STUCKTO1 (0x1u << 29) /**< \brief (CKGR_PLLR) */ +/* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */ +#define CKGR_PLLAR_DIVA_Pos 0 +#define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) /**< \brief (CKGR_PLLAR) Divider */ +#define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos))) +#define CKGR_PLLAR_PLLACOUNT_Pos 8 +#define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos) /**< \brief (CKGR_PLLAR) PLLA Counter */ +#define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos))) +#define CKGR_PLLAR_MULA_Pos 16 +#define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ +#define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) +#define CKGR_PLLAR_ONE (0x1u << 29) /**< \brief (CKGR_PLLAR) Must Be Set to 1 */ /* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */ #define PMC_MCKR_CSS_Pos 0 #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) /**< \brief (PMC_MCKR) Master Clock Source Selection */ #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ -#define PMC_MCKR_CSS_PLL_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLL Clock is selected */ +#define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ #define PMC_MCKR_PRES_Pos 4 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ #define PMC_MCKR_PRES_CLK (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ #define PMC_MCKR_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 2 */ #define PMC_MCKR_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 4 */ -#define PMC_MCKR_PRES_CLK_28 (0x3u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 8 */ +#define PMC_MCKR_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 8 */ #define PMC_MCKR_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 16 */ #define PMC_MCKR_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 32 */ #define PMC_MCKR_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 64 */ #define PMC_MCKR_PRES_CLK_3 (0x7u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 3 */ -#define PMC_MCKR_PLLDIV2 (0x1u << 12) /**< \brief (PMC_MCKR) PLL Divisor by 2 */ +#define PMC_MCKR_PLLADIV2 (0x1u << 12) /**< \brief (PMC_MCKR) PLLA Divisor by 2 */ /* -------- PMC_PCK[3] : (PMC Offset: 0x0040) Programmable Clock 0 Register -------- */ #define PMC_PCK_CSS_Pos 0 #define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos) /**< \brief (PMC_PCK[3]) Master Clock Source Selection */ #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ -#define PMC_PCK_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) PLLB Clock is selected */ #define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ #define PMC_PCK_PRES_Pos 4 -#define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Processor Clock Prescaler */ -#define PMC_PCK_PRES_CLK (0x0u << 4) /**< \brief (PMC_PCK[3]) Selected clock */ -#define PMC_PCK_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 2 */ -#define PMC_PCK_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 4 */ -#define PMC_PCK_PRES_CLK_28 (0x3u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 8 */ -#define PMC_PCK_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 16 */ -#define PMC_PCK_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 32 */ -#define PMC_PCK_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 64 */ +#define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Programmable Clock Prescaler */ +#define PMC_PCK_PRES(value) ((PMC_PCK_PRES_Msk & ((value) << PMC_PCK_PRES_Pos))) /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ #define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ -#define PMC_IER_LOCK (0x1u << 1) /**< \brief (PMC_IER) PLL Lock Interrupt Enable */ +#define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLLA Lock Interrupt Enable */ #define PMC_IER_MCKRDY (0x1u << 3) /**< \brief (PMC_IER) Master Clock Ready Interrupt Enable */ #define PMC_IER_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IER) Programmable Clock Ready 0 Interrupt Enable */ #define PMC_IER_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IER) Programmable Clock Ready 1 Interrupt Enable */ @@ -226,7 +245,7 @@ typedef struct { #define PMC_IER_CFDEV (0x1u << 18) /**< \brief (PMC_IER) Clock Failure Detector Event Interrupt Enable */ /* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */ #define PMC_IDR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IDR) Main Crystal Oscillator Status Interrupt Disable */ -#define PMC_IDR_LOCK (0x1u << 1) /**< \brief (PMC_IDR) PLL Lock Interrupt Disable */ +#define PMC_IDR_LOCKA (0x1u << 1) /**< \brief (PMC_IDR) PLLA Lock Interrupt Disable */ #define PMC_IDR_MCKRDY (0x1u << 3) /**< \brief (PMC_IDR) Master Clock Ready Interrupt Disable */ #define PMC_IDR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IDR) Programmable Clock Ready 0 Interrupt Disable */ #define PMC_IDR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IDR) Programmable Clock Ready 1 Interrupt Disable */ @@ -236,7 +255,7 @@ typedef struct { #define PMC_IDR_CFDEV (0x1u << 18) /**< \brief (PMC_IDR) Clock Failure Detector Event Interrupt Disable */ /* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */ #define PMC_SR_MOSCXTS (0x1u << 0) /**< \brief (PMC_SR) Main XTAL Oscillator Status */ -#define PMC_SR_LOCK (0x1u << 1) /**< \brief (PMC_SR) PLL Lock Status */ +#define PMC_SR_LOCKA (0x1u << 1) /**< \brief (PMC_SR) PLLA Lock Status */ #define PMC_SR_MCKRDY (0x1u << 3) /**< \brief (PMC_SR) Master Clock Status */ #define PMC_SR_OSCSELS (0x1u << 7) /**< \brief (PMC_SR) Slow Clock Oscillator Selection */ #define PMC_SR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_SR) Programmable Clock Ready Status */ @@ -249,7 +268,7 @@ typedef struct { #define PMC_SR_FOS (0x1u << 20) /**< \brief (PMC_SR) Clock Failure Detector Fault Output Status */ /* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */ #define PMC_IMR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IMR) Main Crystal Oscillator Status Interrupt Mask */ -#define PMC_IMR_LOCK (0x1u << 1) /**< \brief (PMC_IMR) PLL Lock Interrupt Mask */ +#define PMC_IMR_LOCKA (0x1u << 1) /**< \brief (PMC_IMR) PLLA Lock Interrupt Mask */ #define PMC_IMR_MCKRDY (0x1u << 3) /**< \brief (PMC_IMR) Master Clock Ready Interrupt Mask */ #define PMC_IMR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IMR) Programmable Clock Ready 0 Interrupt Mask */ #define PMC_IMR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IMR) Programmable Clock Ready 1 Interrupt Mask */ @@ -305,19 +324,6 @@ typedef struct { #define PMC_WPSR_WPVS (0x1u << 0) /**< \brief (PMC_WPSR) Write Protect Violation Status */ #define PMC_WPSR_WPVSRC_Pos 8 #define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos) /**< \brief (PMC_WPSR) Write Protect Violation Source */ -/* -------- PMC_OCR : (PMC Offset: 0x0110) Oscillator Calibration Register -------- */ -#define PMC_OCR_CAL4_Pos 0 -#define PMC_OCR_CAL4_Msk (0x7fu << PMC_OCR_CAL4_Pos) /**< \brief (PMC_OCR) RC Oscillator Calibration bits for 4 MHz */ -#define PMC_OCR_CAL4(value) ((PMC_OCR_CAL4_Msk & ((value) << PMC_OCR_CAL4_Pos))) -#define PMC_OCR_SEL4 (0x1u << 7) /**< \brief (PMC_OCR) Selection of RC Oscillator Calibration bits for 4 MHz */ -#define PMC_OCR_CAL8_Pos 8 -#define PMC_OCR_CAL8_Msk (0x7fu << PMC_OCR_CAL8_Pos) /**< \brief (PMC_OCR) RC Oscillator Calibration bits for 8 MHz */ -#define PMC_OCR_CAL8(value) ((PMC_OCR_CAL8_Msk & ((value) << PMC_OCR_CAL8_Pos))) -#define PMC_OCR_SEL8 (0x1u << 15) /**< \brief (PMC_OCR) Selection of RC Oscillator Calibration bits for 8 MHz */ -#define PMC_OCR_CAL12_Pos 16 -#define PMC_OCR_CAL12_Msk (0x7fu << PMC_OCR_CAL12_Pos) /**< \brief (PMC_OCR) RC Oscillator Calibration bits for 12 MHz */ -#define PMC_OCR_CAL12(value) ((PMC_OCR_CAL12_Msk & ((value) << PMC_OCR_CAL12_Pos))) -#define PMC_OCR_SEL12 (0x1u << 23) /**< \brief (PMC_OCR) Selection of RC Oscillator Calibration bits for 12 MHz */ /*@}*/ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pwm.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pwm.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pwm.h index 23ee0407f..fb81edc12 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PWM_COMPONENT_ #define _SAM3N_PWM_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/rstc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rstc.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/rstc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rstc.h index 9a988d6df..1ef3fd5ff 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/rstc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rstc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_RSTC_COMPONENT_ #define _SAM3N_RSTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/rtc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rtc.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rtc.h index 9c91e9b05..8077c401c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_RTC_COMPONENT_ #define _SAM3N_RTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/rtt.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rtt.h similarity index 56% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/rtt.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rtt.h index c23c40cb2..17d2ac764 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/rtt.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_rtt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_RTT_COMPONENT_ #define _SAM3N_RTT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/spi.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_spi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/spi.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_spi.h index 01f72993e..a3a3f0253 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_SPI_COMPONENT_ #define _SAM3N_SPI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/supc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_supc.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/supc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_supc.h index a4826e091..f264c05fa 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/supc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_supc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_SUPC_COMPONENT_ #define _SAM3N_SUPC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/tc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_tc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/tc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_tc.h index 652619ab9..7dbeba940 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/tc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_tc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_TC_COMPONENT_ #define _SAM3N_TC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/twi.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_twi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/twi.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_twi.h index aea53acb1..0bfed3297 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/twi.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_twi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_TWI_COMPONENT_ #define _SAM3N_TWI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/uart.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_uart.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/uart.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_uart.h index 585b59fea..9ad0dd077 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_UART_COMPONENT_ #define _SAM3N_UART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/usart.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_usart.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/usart.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_usart.h index 00dfaf4c8..f944a30f7 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/usart.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_usart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_USART_COMPONENT_ #define _SAM3N_USART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/wdt.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_wdt.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3n/include/component/wdt.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/component/component_wdt.h index 4547aaad3..41b038831 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/wdt.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/component/component_wdt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_WDT_COMPONENT_ #define _SAM3N_WDT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/component/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3n/include/component/gpbr.h deleted file mode 100644 index 706601325..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/component/gpbr.h +++ /dev/null @@ -1,26 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_GPBR_COMPONENT_ -#define _SAM3N_GPBR_COMPONENT_ - -/* ============================================================================= */ -/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ -/* ============================================================================= */ -/** \addtogroup SAM3N_GPBR General Purpose Backup Register */ -/*@{*/ - -#ifndef __ASSEMBLY__ -/** \brief Gpbr hardware registers */ -typedef struct { - RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ -} Gpbr; -#endif /* __ASSEMBLY__ */ -/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ -#define SYS_GPBR_GPBR_VALUE_Pos 0 -#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ -#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) - -/*@}*/ - - -#endif /* _SAM3N_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/chipid.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/chipid.h deleted file mode 100644 index 348437ce4..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/chipid.h +++ /dev/null @@ -1,15 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_CHIPID_INSTANCE_ -#define _SAM3N_CHIPID_INSTANCE_ - -/* ========== Register definition for CHIPID peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#else -#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/efc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/efc.h deleted file mode 100644 index 5794fa263..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/efc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_EFC_INSTANCE_ -#define _SAM3N_EFC_INSTANCE_ - -/* ========== Register definition for EFC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC_FMR (0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ -#define REG_EFC_FCR (0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ -#define REG_EFC_FSR (0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ -#define REG_EFC_FRR (0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ -#else -#define REG_EFC_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ -#define REG_EFC_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ -#define REG_EFC_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ -#define REG_EFC_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_EFC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/gpbr.h deleted file mode 100644 index 5b8fd1e88..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/gpbr.h +++ /dev/null @@ -1,13 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_GPBR_INSTANCE_ -#define _SAM3N_GPBR_INSTANCE_ - -/* ========== Register definition for GPBR peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ -#else -#define REG_GPBR_GPBR (*(RwReg*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/adc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_adc.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/adc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_adc.h index 8d6c3f8f8..d19255b9c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_ADC_INSTANCE_ #define _SAM3N_ADC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_chipid.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_chipid.h new file mode 100644 index 000000000..8c6c112c3 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_chipid.h @@ -0,0 +1,42 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_CHIPID_INSTANCE_ +#define _SAM3N_CHIPID_INSTANCE_ + +/* ========== Register definition for CHIPID peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#else +#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/dacc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_dacc.h similarity index 70% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_dacc.h index 3113fd1ae..0fac96ac3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_DACC_INSTANCE_ #define _SAM3N_DACC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_efc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_efc.h new file mode 100644 index 000000000..88d6a66ff --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_efc.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_EFC_INSTANCE_ +#define _SAM3N_EFC_INSTANCE_ + +/* ========== Register definition for EFC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC_FMR (0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ +#define REG_EFC_FCR (0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ +#define REG_EFC_FSR (0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ +#define REG_EFC_FRR (0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ +#else +#define REG_EFC_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ +#define REG_EFC_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ +#define REG_EFC_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ +#define REG_EFC_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_EFC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_gpbr.h new file mode 100644 index 000000000..e872de813 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_gpbr.h @@ -0,0 +1,40 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_GPBR_INSTANCE_ +#define _SAM3N_GPBR_INSTANCE_ + +/* ========== Register definition for GPBR peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ +#else +#define REG_GPBR_GPBR (*(RwReg*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/matrix.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_matrix.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_matrix.h index 1d6970c4b..fee8e9ebc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_MATRIX_INSTANCE_ #define _SAM3N_MATRIX_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pioa.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pioa.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/pioa.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pioa.h index b2fdd6f83..484e6996c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pioa.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pioa.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PIOA_INSTANCE_ #define _SAM3N_PIOA_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/piob.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_piob.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/piob.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_piob.h index d7104632e..fb87acb2e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/piob.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_piob.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PIOB_INSTANCE_ #define _SAM3N_PIOB_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pioc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pioc.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/pioc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pioc.h index 8d68499c2..c684e8013 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pioc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pioc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PIOC_INSTANCE_ #define _SAM3N_PIOC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pmc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pmc.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pmc.h index 7dd85b601..644c758a1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PMC_INSTANCE_ #define _SAM3N_PMC_INSTANCE_ @@ -8,12 +35,12 @@ #define REG_PMC_SCER (0x400E0400U) /**< \brief (PMC) System Clock Enable Register */ #define REG_PMC_SCDR (0x400E0404U) /**< \brief (PMC) System Clock Disable Register */ #define REG_PMC_SCSR (0x400E0408U) /**< \brief (PMC) System Clock Status Register */ -#define REG_PMC_PCER (0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register */ -#define REG_PMC_PCDR (0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register */ -#define REG_PMC_PCSR (0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register */ +#define REG_PMC_PCER0 (0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register 0 */ +#define REG_PMC_PCDR0 (0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register 0 */ +#define REG_PMC_PCSR0 (0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register 0 */ #define REG_CKGR_MOR (0x400E0420U) /**< \brief (PMC) Main Oscillator Register */ #define REG_CKGR_MCFR (0x400E0424U) /**< \brief (PMC) Main Clock Frequency Register */ -#define REG_CKGR_PLLR (0x400E0428U) /**< \brief (PMC) PLL Register */ +#define REG_CKGR_PLLAR (0x400E0428U) /**< \brief (PMC) PLLA Register */ #define REG_PMC_MCKR (0x400E0430U) /**< \brief (PMC) Master Clock Register */ #define REG_PMC_PCK (0x400E0440U) /**< \brief (PMC) Programmable Clock 0 Register */ #define REG_PMC_IER (0x400E0460U) /**< \brief (PMC) Interrupt Enable Register */ @@ -30,12 +57,12 @@ #define REG_PMC_SCER (*(WoReg*)0x400E0400U) /**< \brief (PMC) System Clock Enable Register */ #define REG_PMC_SCDR (*(WoReg*)0x400E0404U) /**< \brief (PMC) System Clock Disable Register */ #define REG_PMC_SCSR (*(RoReg*)0x400E0408U) /**< \brief (PMC) System Clock Status Register */ -#define REG_PMC_PCER (*(WoReg*)0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register */ -#define REG_PMC_PCDR (*(WoReg*)0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register */ -#define REG_PMC_PCSR (*(RoReg*)0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register */ +#define REG_PMC_PCER0 (*(WoReg*)0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register 0 */ +#define REG_PMC_PCDR0 (*(WoReg*)0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register 0 */ +#define REG_PMC_PCSR0 (*(RoReg*)0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register 0 */ #define REG_CKGR_MOR (*(RwReg*)0x400E0420U) /**< \brief (PMC) Main Oscillator Register */ #define REG_CKGR_MCFR (*(RoReg*)0x400E0424U) /**< \brief (PMC) Main Clock Frequency Register */ -#define REG_CKGR_PLLR (*(RwReg*)0x400E0428U) /**< \brief (PMC) PLL Register */ +#define REG_CKGR_PLLAR (*(RwReg*)0x400E0428U) /**< \brief (PMC) PLLA Register */ #define REG_PMC_MCKR (*(RwReg*)0x400E0430U) /**< \brief (PMC) Master Clock Register */ #define REG_PMC_PCK (*(RwReg*)0x400E0440U) /**< \brief (PMC) Programmable Clock 0 Register */ #define REG_PMC_IER (*(WoReg*)0x400E0460U) /**< \brief (PMC) Interrupt Enable Register */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pwm.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pwm.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pwm.h index 295220d4e..53aec885c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_PWM_INSTANCE_ #define _SAM3N_PWM_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rstc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rstc.h new file mode 100644 index 000000000..6feb7e70b --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rstc.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_RSTC_INSTANCE_ +#define _SAM3N_RSTC_INSTANCE_ + +/* ========== Register definition for RSTC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ +#else +#define REG_RSTC_CR (*(WoReg*)0x400E1400U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (*(RoReg*)0x400E1404U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (*(RwReg*)0x400E1408U) /**< \brief (RSTC) Mode Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtc.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtc.h index ce99de910..9af94a706 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_RTC_INSTANCE_ #define _SAM3N_RTC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtt.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtt.h new file mode 100644 index 000000000..ef32565c9 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_rtt.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_RTT_INSTANCE_ +#define _SAM3N_RTT_INSTANCE_ + +/* ========== Register definition for RTT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RTT_MR (0x400E1430U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (0x400E1434U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (0x400E1438U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (0x400E143CU) /**< \brief (RTT) Status Register */ +#else +#define REG_RTT_MR (*(RwReg*)0x400E1430U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (*(RwReg*)0x400E1434U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (*(RoReg*)0x400E1438U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (*(RoReg*)0x400E143CU) /**< \brief (RTT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/spi.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_spi.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/spi.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_spi.h index 328e90085..659e194f8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_SPI_INSTANCE_ #define _SAM3N_SPI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_supc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_supc.h new file mode 100644 index 000000000..bb743121a --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_supc.h @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_SUPC_INSTANCE_ +#define _SAM3N_SUPC_INSTANCE_ + +/* ========== Register definition for SUPC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_SUPC_CR (0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ +#else +#define REG_SUPC_CR (*(WoReg*)0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (*(RwReg*)0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (*(RwReg*)0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (*(RwReg*)0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (*(RwReg*)0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (*(RoReg*)0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/tc0.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_tc0.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/tc0.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_tc0.h index 15bfefd57..223ff6070 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/tc0.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_tc0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_TC0_INSTANCE_ #define _SAM3N_TC0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/tc1.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_tc1.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/tc1.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_tc1.h index ba7c50fe6..819faebc6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/tc1.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_tc1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_TC1_INSTANCE_ #define _SAM3N_TC1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/twi0.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_twi0.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/twi0.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_twi0.h index c35061344..1bd648e09 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/twi0.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_twi0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_TWI0_INSTANCE_ #define _SAM3N_TWI0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/twi1.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_twi1.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/twi1.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_twi1.h index 756db6a4e..80027043f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/twi1.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_twi1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_TWI1_INSTANCE_ #define _SAM3N_TWI1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/uart0.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_uart0.h similarity index 71% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/uart0.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_uart0.h index de472ef8a..8df44997c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/uart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_uart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_UART0_INSTANCE_ #define _SAM3N_UART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/uart1.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_uart1.h similarity index 55% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/uart1.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_uart1.h index 84f981882..970f792ec 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/uart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_uart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_UART1_INSTANCE_ #define _SAM3N_UART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/usart0.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_usart0.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/usart0.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_usart0.h index 2ba07e0c9..a974b6af6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/usart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_usart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_USART0_INSTANCE_ #define _SAM3N_USART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/usart1.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_usart1.h similarity index 68% rename from hardware/sam/system/libsam/cmsis/sam3n/include/instance/usart1.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_usart1.h index c0a2afcac..cf49ff402 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/usart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_usart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_USART1_INSTANCE_ #define _SAM3N_USART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_wdt.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_wdt.h new file mode 100644 index 000000000..7dd688377 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/instance_wdt.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_WDT_INSTANCE_ +#define _SAM3N_WDT_INSTANCE_ + +/* ========== Register definition for WDT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ +#else +#define REG_WDT_CR (*(WoReg*)0x400E1450U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (*(RwReg*)0x400E1454U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (*(RoReg*)0x400E1458U) /**< \brief (WDT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3N_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rstc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rstc.h deleted file mode 100644 index 773bec1af..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rstc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_RSTC_INSTANCE_ -#define _SAM3N_RSTC_INSTANCE_ - -/* ========== Register definition for RSTC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ -#else -#define REG_RSTC_CR (*(WoReg*)0x400E1400U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (*(RoReg*)0x400E1404U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (*(RwReg*)0x400E1408U) /**< \brief (RSTC) Mode Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtt.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtt.h deleted file mode 100644 index 552b95f13..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/rtt.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_RTT_INSTANCE_ -#define _SAM3N_RTT_INSTANCE_ - -/* ========== Register definition for RTT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RTT_MR (0x400E1430U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (0x400E1434U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (0x400E1438U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (0x400E143CU) /**< \brief (RTT) Status Register */ -#else -#define REG_RTT_MR (*(RwReg*)0x400E1430U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (*(RwReg*)0x400E1434U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (*(RoReg*)0x400E1438U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (*(RoReg*)0x400E143CU) /**< \brief (RTT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/supc.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/supc.h deleted file mode 100644 index b1b18d2ba..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/supc.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_SUPC_INSTANCE_ -#define _SAM3N_SUPC_INSTANCE_ - -/* ========== Register definition for SUPC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_SUPC_CR (0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ -#else -#define REG_SUPC_CR (*(WoReg*)0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (*(RwReg*)0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (*(RwReg*)0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (*(RwReg*)0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (*(RwReg*)0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (*(RoReg*)0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/wdt.h b/hardware/sam/system/libsam/cmsis/sam3n/include/instance/wdt.h deleted file mode 100644 index ffc2d70a4..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/instance/wdt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3N_WDT_INSTANCE_ -#define _SAM3N_WDT_INSTANCE_ - -/* ========== Register definition for WDT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ -#else -#define REG_WDT_CR (*(WoReg*)0x400E1450U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (*(RwReg*)0x400E1454U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (*(RoReg*)0x400E1458U) /**< \brief (WDT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3N_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1a.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1a.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1a.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1a.h index e55fc4018..2c8269454 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1a.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N1A_PIO_ #define _SAM3N1A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1b.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1b.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1b.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1b.h index be373b88d..7ad975cc4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1b.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N1B_PIO_ #define _SAM3N1B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1c.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1c.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1c.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1c.h index a9a7cd13d..34b412fc5 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n1c.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n1c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N1C_PIO_ #define _SAM3N1C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2a.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2a.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2a.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2a.h index e87b0f8d2..f116941ba 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2a.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N2A_PIO_ #define _SAM3N2A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2b.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2b.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2b.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2b.h index 1821039fb..fdca60545 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2b.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N2B_PIO_ #define _SAM3N2B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2c.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2c.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2c.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2c.h index 0ed985252..6238d66ad 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N2C_PIO_ #define _SAM3N2C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4a.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4a.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4a.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4a.h index e926ece6c..0f3c1f280 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4a.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N4A_PIO_ #define _SAM3N4A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4b.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4b.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4b.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4b.h index 853dcd02e..ee99ea68e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4b.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N4B_PIO_ #define _SAM3N4B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4c.h b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4c.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4c.h rename to hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4c.h index 3cb3ac6f6..30f256f7d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/pio/sam3n4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/pio/pio_sam3n4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N4C_PIO_ #define _SAM3N4C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n.h index efecaee5f..5fab9c49a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n.h @@ -1,19 +1,35 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N_ #define _SAM3N_ -/* Device characteristics */ -#define CHIP_FREQ_SLCK_RC_MIN (20000U) -#define CHIP_FREQ_SLCK_RC (32000U) -#define CHIP_FREQ_SLCK_RC_MAX (44000U) -#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) -#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) -#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) -#define CHIP_FREQ_CPU_MAX (48000000U) - -#define CHIP_FLASH_WAIT_STATE (3U) - #if defined __SAM3N1A__ #include "sam3n1a.h" #elif defined __SAM3N1B__ diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1a.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1a.h index 39acd5e51..f3550a462 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1a.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N1A_ #define _SAM3N1A_ @@ -93,26 +120,26 @@ typedef enum IRQn /** \addtogroup SAM3N1A_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -121,28 +148,28 @@ typedef enum IRQn /** \addtogroup SAM3N1A_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -247,7 +274,7 @@ typedef enum IRQn /** \addtogroup SAM3N1A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n1a.h" +#include "pio/pio_sam3n1a.h" /*@}*/ /* ************************************************************************** */ @@ -265,6 +292,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N1A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1b.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1b.h index 45d481027..1e0e63243 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1b.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N1B_ #define _SAM3N1B_ @@ -94,26 +121,26 @@ typedef enum IRQn /** \addtogroup SAM3N1B_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -122,29 +149,29 @@ typedef enum IRQn /** \addtogroup SAM3N1B_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -252,7 +279,7 @@ typedef enum IRQn /** \addtogroup SAM3N1B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n1b.h" +#include "pio/pio_sam3n1b.h" /*@}*/ /* ************************************************************************** */ @@ -270,6 +297,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N1B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1c.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1c.h index 7a6a36528..49b67392e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1c.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n1c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N1C_ #define _SAM3N1C_ @@ -98,26 +125,26 @@ typedef enum IRQn /** \addtogroup SAM3N1C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -126,31 +153,31 @@ typedef enum IRQn /** \addtogroup SAM3N1C_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -266,7 +293,7 @@ typedef enum IRQn /** \addtogroup SAM3N1C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n1c.h" +#include "pio/pio_sam3n1c.h" /*@}*/ /* ************************************************************************** */ @@ -284,6 +311,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N1C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2a.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2a.h index 6938c0f76..7bece6d33 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2a.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N2A_ #define _SAM3N2A_ @@ -93,26 +120,26 @@ typedef enum IRQn /** \addtogroup SAM3N2A_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -121,28 +148,28 @@ typedef enum IRQn /** \addtogroup SAM3N2A_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -247,7 +274,7 @@ typedef enum IRQn /** \addtogroup SAM3N2A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n2a.h" +#include "pio/pio_sam3n2a.h" /*@}*/ /* ************************************************************************** */ @@ -265,6 +292,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N2A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2b.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2b.h index 04aa6b503..075fa2aae 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2b.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N2B_ #define _SAM3N2B_ @@ -94,26 +121,26 @@ typedef enum IRQn /** \addtogroup SAM3N2B_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -122,29 +149,29 @@ typedef enum IRQn /** \addtogroup SAM3N2B_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -252,7 +279,7 @@ typedef enum IRQn /** \addtogroup SAM3N2B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n2b.h" +#include "pio/pio_sam3n2b.h" /*@}*/ /* ************************************************************************** */ @@ -270,6 +297,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N2B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2c.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2c.h index 07dc9b088..2e47fac70 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N2C_ #define _SAM3N2C_ @@ -98,26 +125,26 @@ typedef enum IRQn /** \addtogroup SAM3N2C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -126,31 +153,31 @@ typedef enum IRQn /** \addtogroup SAM3N2C_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -266,7 +293,7 @@ typedef enum IRQn /** \addtogroup SAM3N2C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n2c.h" +#include "pio/pio_sam3n2c.h" /*@}*/ /* ************************************************************************** */ @@ -284,6 +311,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N2C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4a.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4a.h index c97de7786..a303cb3a4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4a.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N4A_ #define _SAM3N4A_ @@ -93,26 +120,26 @@ typedef enum IRQn /** \addtogroup SAM3N4A_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -121,28 +148,28 @@ typedef enum IRQn /** \addtogroup SAM3N4A_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -247,7 +274,7 @@ typedef enum IRQn /** \addtogroup SAM3N4A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n4a.h" +#include "pio/pio_sam3n4a.h" /*@}*/ /* ************************************************************************** */ @@ -265,6 +292,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N4A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4b.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4b.h index 98047117a..0c7a6763b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4b.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N4B_ #define _SAM3N4B_ @@ -94,26 +121,26 @@ typedef enum IRQn /** \addtogroup SAM3N4B_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -122,29 +149,29 @@ typedef enum IRQn /** \addtogroup SAM3N4B_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -252,7 +279,7 @@ typedef enum IRQn /** \addtogroup SAM3N4B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n4b.h" +#include "pio/pio_sam3n4b.h" /*@}*/ /* ************************************************************************** */ @@ -270,6 +297,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N4B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4c.h b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4c.h index b08f10e95..90541382f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3n/include/sam3n4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3N4C_ #define _SAM3N4C_ @@ -98,26 +125,26 @@ typedef enum IRQn /** \addtogroup SAM3N4C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -126,31 +153,31 @@ typedef enum IRQn /** \addtogroup SAM3N4C_reg Registers Access Definitions */ /*@{*/ -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -266,7 +293,7 @@ typedef enum IRQn /** \addtogroup SAM3N4C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3n4c.h" +#include "pio/pio_sam3n4c.h" /*@}*/ /* ************************************************************************** */ @@ -284,6 +311,21 @@ typedef enum IRQn #define IROM_ADDR (0x00800000u) /**< Internal ROM base address */ #define IRAM_ADDR (0x20000000u) /**< Internal RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3N4C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (48000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/acc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_acc.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/acc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_acc.h index 49a4432f9..490c8bfac 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/acc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_acc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_ACC_COMPONENT_ #define _SAM3S_ACC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/adc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_adc.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/adc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_adc.h index 9367fae4c..9137596ad 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_ADC_COMPONENT_ #define _SAM3S_ADC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/chipid.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_chipid.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/chipid.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_chipid.h index 2612bcba2..a3f52bf5e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/chipid.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_chipid.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_CHIPID_COMPONENT_ #define _SAM3S_CHIPID_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/crccu.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_crccu.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/crccu.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_crccu.h index 69525983e..c53302745 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/crccu.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_crccu.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_CRCCU_COMPONENT_ #define _SAM3S_CRCCU_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/dacc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_dacc.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_dacc.h index 9efad1eea..69271175a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_DACC_COMPONENT_ #define _SAM3S_DACC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/efc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_efc.h similarity index 63% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/efc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_efc.h index d7cf56d7e..f3ff9e65e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/efc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_efc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_EFC_COMPONENT_ #define _SAM3S_EFC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_gpbr.h new file mode 100644 index 000000000..a7122df98 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_gpbr.h @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_GPBR_COMPONENT_ +#define _SAM3S_GPBR_COMPONENT_ + +/* ============================================================================= */ +/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ +/* ============================================================================= */ +/** \addtogroup SAM3S_GPBR General Purpose Backup Register */ +/*@{*/ + +#ifndef __ASSEMBLY__ +/** \brief Gpbr hardware registers */ +typedef struct { + RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ +} Gpbr; +#endif /* __ASSEMBLY__ */ +/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ +#define SYS_GPBR_GPBR_VALUE_Pos 0 +#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ +#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) + +/*@}*/ + + +#endif /* _SAM3S_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_hsmci.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_hsmci.h index ad0e85539..f74f1a35a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_HSMCI_COMPONENT_ #define _SAM3S_HSMCI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/matrix.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_matrix.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_matrix.h index 6b3aba380..71fcc67dd 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_MATRIX_COMPONENT_ #define _SAM3S_MATRIX_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pdc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pdc.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/pdc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pdc.h index b04ba2bc1..ab02d9497 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pdc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pdc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PDC_COMPONENT_ #define _SAM3S_PDC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pio.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pio.h similarity index 98% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/pio.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pio.h index 25d8f9f78..985ca5041 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pio.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pio.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PIO_COMPONENT_ #define _SAM3S_PIO_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pmc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pmc.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pmc.h index 3db6d107e..1a7b93b6c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PMC_COMPONENT_ #define _SAM3S_PMC_COMPONENT_ @@ -159,13 +186,12 @@ typedef struct { /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ #define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ #define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ -#define CKGR_MOR_WAITMODE (0x1u << 2) /**< \brief (CKGR_MOR) Wait Mode Command */ #define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ #define CKGR_MOR_MOSCRCF_Pos 4 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ -#define CKGR_MOR_MOSCRCF_4MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ -#define CKGR_MOR_MOSCRCF_8MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ -#define CKGR_MOR_MOSCRCF_12MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ +#define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ +#define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ +#define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ #define CKGR_MOR_MOSCXTST_Pos 8 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) @@ -188,7 +214,7 @@ typedef struct { #define CKGR_PLLAR_MULA_Pos 16 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) -#define CKGR_PLLAR_STUCKTO1 (0x1u << 29) /**< \brief (CKGR_PLLAR) */ +#define CKGR_PLLAR_ONE (0x1u << 29) /**< \brief (CKGR_PLLAR) Must Be Set to 1 */ /* -------- CKGR_PLLBR : (PMC Offset: 0x002C) PLLB Register -------- */ #define CKGR_PLLBR_DIVB_Pos 0 #define CKGR_PLLBR_DIVB_Msk (0xffu << CKGR_PLLBR_DIVB_Pos) /**< \brief (CKGR_PLLBR) Divider */ @@ -205,7 +231,7 @@ typedef struct { #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ -#define PMC_MCKR_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_MCKR) PLLB Clock is selected */ +#define PMC_MCKR_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_MCKR) PLLBClock is selected */ #define PMC_MCKR_PRES_Pos 4 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ #define PMC_MCKR_PRES_CLK (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ @@ -229,17 +255,11 @@ typedef struct { #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ -#define PMC_PCK_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) PLLB Clock is selected */ +#define PMC_PCK_CSS_PLLB_CLKUPLL_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) PLLB Clock is selected */ #define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ #define PMC_PCK_PRES_Pos 4 #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Programmable Clock Prescaler */ -#define PMC_PCK_PRES_CLK (0x0u << 4) /**< \brief (PMC_PCK[3]) Selected clock */ -#define PMC_PCK_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 2 */ -#define PMC_PCK_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 4 */ -#define PMC_PCK_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 8 */ -#define PMC_PCK_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 16 */ -#define PMC_PCK_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 32 */ -#define PMC_PCK_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 64 */ +#define PMC_PCK_PRES(value) ((PMC_PCK_PRES_Msk & ((value) << PMC_PCK_PRES_Pos))) /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ #define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ #define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLLA Lock Interrupt Enable */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pwm.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pwm.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pwm.h index 0b660c436..788c14ab0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PWM_COMPONENT_ #define _SAM3S_PWM_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/rstc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rstc.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/rstc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rstc.h index 7affd419a..09cf75abe 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/rstc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rstc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_RSTC_COMPONENT_ #define _SAM3S_RSTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/rtc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rtc.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rtc.h index fd629d2bf..598c8dc43 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_RTC_COMPONENT_ #define _SAM3S_RTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/rtt.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rtt.h similarity index 56% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/rtt.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rtt.h index 0abe4f3e6..df096229b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/rtt.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_rtt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_RTT_COMPONENT_ #define _SAM3S_RTT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/smc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_smc.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/smc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_smc.h index 10f797a88..4797a6100 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SMC_COMPONENT_ #define _SAM3S_SMC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/spi.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_spi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/spi.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_spi.h index 1da2c2e11..fed4db1c3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SPI_COMPONENT_ #define _SAM3S_SPI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/ssc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_ssc.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_ssc.h index 9a986921f..954006152 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SSC_COMPONENT_ #define _SAM3S_SSC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/supc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_supc.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/supc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_supc.h index 9db209635..4dbcb0402 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/supc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_supc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SUPC_COMPONENT_ #define _SAM3S_SUPC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/tc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_tc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/tc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_tc.h index 4fc0a76d8..531aab046 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/tc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_tc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_TC_COMPONENT_ #define _SAM3S_TC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/twi.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_twi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/twi.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_twi.h index 43baf8c75..f009592a6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/twi.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_twi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_TWI_COMPONENT_ #define _SAM3S_TWI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/uart.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_uart.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/uart.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_uart.h index 94a26b2e0..9e0daefd6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_UART_COMPONENT_ #define _SAM3S_UART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/udp.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_udp.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/udp.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_udp.h index 990ea117d..be2b7b5dc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/udp.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_udp.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_UDP_COMPONENT_ #define _SAM3S_UDP_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/usart.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_usart.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/usart.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_usart.h index 8201e369a..83dd265d8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/usart.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_usart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_USART_COMPONENT_ #define _SAM3S_USART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/wdt.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_wdt.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3s/include/component/wdt.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/component/component_wdt.h index 78c6e462a..842198ad8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/wdt.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/component/component_wdt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_WDT_COMPONENT_ #define _SAM3S_WDT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/component/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3s/include/component/gpbr.h deleted file mode 100644 index 9b078378a..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/component/gpbr.h +++ /dev/null @@ -1,26 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_GPBR_COMPONENT_ -#define _SAM3S_GPBR_COMPONENT_ - -/* ============================================================================= */ -/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ -/* ============================================================================= */ -/** \addtogroup SAM3S_GPBR General Purpose Backup Register */ -/*@{*/ - -#ifndef __ASSEMBLY__ -/** \brief Gpbr hardware registers */ -typedef struct { - RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ -} Gpbr; -#endif /* __ASSEMBLY__ */ -/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ -#define SYS_GPBR_GPBR_VALUE_Pos 0 -#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ -#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) - -/*@}*/ - - -#endif /* _SAM3S_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/chipid.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/chipid.h deleted file mode 100644 index 96666f323..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/chipid.h +++ /dev/null @@ -1,15 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_CHIPID_INSTANCE_ -#define _SAM3S_CHIPID_INSTANCE_ - -/* ========== Register definition for CHIPID peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#else -#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/efc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/efc.h deleted file mode 100644 index 1a6e6e4ce..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/efc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_EFC_INSTANCE_ -#define _SAM3S_EFC_INSTANCE_ - -/* ========== Register definition for EFC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC_FMR (0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ -#define REG_EFC_FCR (0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ -#define REG_EFC_FSR (0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ -#define REG_EFC_FRR (0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ -#else -#define REG_EFC_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ -#define REG_EFC_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ -#define REG_EFC_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ -#define REG_EFC_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_EFC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/gpbr.h deleted file mode 100644 index 8b02a7d36..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/gpbr.h +++ /dev/null @@ -1,13 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_GPBR_INSTANCE_ -#define _SAM3S_GPBR_INSTANCE_ - -/* ========== Register definition for GPBR peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ -#else -#define REG_GPBR_GPBR (*(RwReg*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/acc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_acc.h similarity index 54% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/acc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_acc.h index 3fbdb5fef..c8db6714f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/acc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_acc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_ACC_INSTANCE_ #define _SAM3S_ACC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/adc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_adc.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/adc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_adc.h index 2d1ad9bab..763483e7e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_ADC_INSTANCE_ #define _SAM3S_ADC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_chipid.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_chipid.h new file mode 100644 index 000000000..1954f13e8 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_chipid.h @@ -0,0 +1,42 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_CHIPID_INSTANCE_ +#define _SAM3S_CHIPID_INSTANCE_ + +/* ========== Register definition for CHIPID peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#else +#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/crccu.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_crccu.h similarity index 68% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/crccu.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_crccu.h index 216728733..f374c1e20 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/crccu.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_crccu.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_CRCCU_INSTANCE_ #define _SAM3S_CRCCU_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/dacc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_dacc.h similarity index 74% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_dacc.h index 9e8a54f16..dc5581b94 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_DACC_INSTANCE_ #define _SAM3S_DACC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_efc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_efc.h new file mode 100644 index 000000000..1348be6fe --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_efc.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_EFC_INSTANCE_ +#define _SAM3S_EFC_INSTANCE_ + +/* ========== Register definition for EFC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC_FMR (0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ +#define REG_EFC_FCR (0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ +#define REG_EFC_FSR (0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ +#define REG_EFC_FRR (0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ +#else +#define REG_EFC_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ +#define REG_EFC_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ +#define REG_EFC_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ +#define REG_EFC_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_EFC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_gpbr.h new file mode 100644 index 000000000..7f3aba1f5 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_gpbr.h @@ -0,0 +1,40 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_GPBR_INSTANCE_ +#define _SAM3S_GPBR_INSTANCE_ + +/* ========== Register definition for GPBR peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ +#else +#define REG_GPBR_GPBR (*(RwReg*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_hsmci.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_hsmci.h index cd1157c8e..b07b43c59 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_HSMCI_INSTANCE_ #define _SAM3S_HSMCI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/matrix.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_matrix.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_matrix.h index 0e730cb44..c5c34f77e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_MATRIX_INSTANCE_ #define _SAM3S_MATRIX_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pioa.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pioa.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/pioa.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pioa.h index 265b09c14..19c23f2d7 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pioa.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pioa.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PIOA_INSTANCE_ #define _SAM3S_PIOA_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/piob.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_piob.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/piob.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_piob.h index 5a4df45b9..4858f39d6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/piob.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_piob.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PIOB_INSTANCE_ #define _SAM3S_PIOB_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pioc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pioc.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/pioc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pioc.h index 171f41574..ebb15f158 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pioc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pioc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PIOC_INSTANCE_ #define _SAM3S_PIOC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pmc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pmc.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pmc.h index cdf1d64f5..7646f73c9 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PMC_INSTANCE_ #define _SAM3S_PMC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pwm.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pwm.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pwm.h index b43944234..729709457 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_PWM_INSTANCE_ #define _SAM3S_PWM_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rstc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rstc.h new file mode 100644 index 000000000..85bc90e8a --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rstc.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_RSTC_INSTANCE_ +#define _SAM3S_RSTC_INSTANCE_ + +/* ========== Register definition for RSTC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ +#else +#define REG_RSTC_CR (*(WoReg*)0x400E1400U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (*(RoReg*)0x400E1404U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (*(RwReg*)0x400E1408U) /**< \brief (RSTC) Mode Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtc.h similarity index 60% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtc.h index b5e5ea96a..abe37184f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_RTC_INSTANCE_ #define _SAM3S_RTC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtt.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtt.h new file mode 100644 index 000000000..87917ca6c --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_rtt.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_RTT_INSTANCE_ +#define _SAM3S_RTT_INSTANCE_ + +/* ========== Register definition for RTT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RTT_MR (0x400E1430U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (0x400E1434U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (0x400E1438U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (0x400E143CU) /**< \brief (RTT) Status Register */ +#else +#define REG_RTT_MR (*(RwReg*)0x400E1430U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (*(RwReg*)0x400E1434U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (*(RoReg*)0x400E1438U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (*(RoReg*)0x400E143CU) /**< \brief (RTT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/smc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_smc.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/smc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_smc.h index d9b30e456..af0bcbc02 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SMC_INSTANCE_ #define _SAM3S_SMC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/spi.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_spi.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/spi.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_spi.h index 7e8cd8d51..ee59a26ee 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SPI_INSTANCE_ #define _SAM3S_SPI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/ssc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_ssc.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_ssc.h index c67428ac7..ce9623814 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SSC_INSTANCE_ #define _SAM3S_SSC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_supc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_supc.h new file mode 100644 index 000000000..7a05575e3 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_supc.h @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_SUPC_INSTANCE_ +#define _SAM3S_SUPC_INSTANCE_ + +/* ========== Register definition for SUPC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_SUPC_CR (0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ +#else +#define REG_SUPC_CR (*(WoReg*)0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (*(RwReg*)0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (*(RwReg*)0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (*(RwReg*)0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (*(RwReg*)0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (*(RoReg*)0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/tc0.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_tc0.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/tc0.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_tc0.h index c8e50e49d..24b829ad8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/tc0.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_tc0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_TC0_INSTANCE_ #define _SAM3S_TC0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/tc1.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_tc1.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/tc1.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_tc1.h index 370d4fd84..9a21a125f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/tc1.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_tc1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_TC1_INSTANCE_ #define _SAM3S_TC1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/twi0.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_twi0.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/twi0.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_twi0.h index 81f179051..cd8cb0a5b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/twi0.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_twi0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_TWI0_INSTANCE_ #define _SAM3S_TWI0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/twi1.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_twi1.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/twi1.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_twi1.h index 3136dc0f5..8a64ec1a3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/twi1.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_twi1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_TWI1_INSTANCE_ #define _SAM3S_TWI1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/uart0.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_uart0.h similarity index 71% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/uart0.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_uart0.h index edea28958..ae95c8d37 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/uart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_uart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_UART0_INSTANCE_ #define _SAM3S_UART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/uart1.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_uart1.h similarity index 71% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/uart1.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_uart1.h index e18060298..9a9a844ac 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/uart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_uart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_UART1_INSTANCE_ #define _SAM3S_UART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/udp.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_udp.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/udp.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_udp.h index 13cbafbad..431799182 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/udp.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_udp.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_UDP_INSTANCE_ #define _SAM3S_UDP_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/usart0.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_usart0.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/usart0.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_usart0.h index ac58e36f4..85a80872e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/usart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_usart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_USART0_INSTANCE_ #define _SAM3S_USART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/usart1.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_usart1.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s/include/instance/usart1.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_usart1.h index d33f939e4..380eb086f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/usart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_usart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_USART1_INSTANCE_ #define _SAM3S_USART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_wdt.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_wdt.h new file mode 100644 index 000000000..42d37576c --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/instance_wdt.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_WDT_INSTANCE_ +#define _SAM3S_WDT_INSTANCE_ + +/* ========== Register definition for WDT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ +#else +#define REG_WDT_CR (*(WoReg*)0x400E1450U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (*(RwReg*)0x400E1454U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (*(RoReg*)0x400E1458U) /**< \brief (WDT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rstc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rstc.h deleted file mode 100644 index 72f46b9e5..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rstc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_RSTC_INSTANCE_ -#define _SAM3S_RSTC_INSTANCE_ - -/* ========== Register definition for RSTC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ -#else -#define REG_RSTC_CR (*(WoReg*)0x400E1400U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (*(RoReg*)0x400E1404U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (*(RwReg*)0x400E1408U) /**< \brief (RSTC) Mode Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtt.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtt.h deleted file mode 100644 index 5c9b11912..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/rtt.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_RTT_INSTANCE_ -#define _SAM3S_RTT_INSTANCE_ - -/* ========== Register definition for RTT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RTT_MR (0x400E1430U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (0x400E1434U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (0x400E1438U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (0x400E143CU) /**< \brief (RTT) Status Register */ -#else -#define REG_RTT_MR (*(RwReg*)0x400E1430U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (*(RwReg*)0x400E1434U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (*(RoReg*)0x400E1438U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (*(RoReg*)0x400E143CU) /**< \brief (RTT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/supc.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/supc.h deleted file mode 100644 index 48fb9d6f4..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/supc.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_SUPC_INSTANCE_ -#define _SAM3S_SUPC_INSTANCE_ - -/* ========== Register definition for SUPC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_SUPC_CR (0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ -#else -#define REG_SUPC_CR (*(WoReg*)0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (*(RwReg*)0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (*(RwReg*)0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (*(RwReg*)0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (*(RwReg*)0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (*(RoReg*)0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/wdt.h b/hardware/sam/system/libsam/cmsis/sam3s/include/instance/wdt.h deleted file mode 100644 index 42e17230c..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/instance/wdt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S_WDT_INSTANCE_ -#define _SAM3S_WDT_INSTANCE_ - -/* ========== Register definition for WDT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ -#else -#define REG_WDT_CR (*(WoReg*)0x400E1450U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (*(RwReg*)0x400E1454U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (*(RoReg*)0x400E1458U) /**< \brief (WDT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1a.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1a.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1a.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1a.h index a538a224e..f17c79fa4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1a.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S1A_PIO_ #define _SAM3S1A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1b.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1b.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1b.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1b.h index a69d421dc..60b1f207b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1b.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S1B_PIO_ #define _SAM3S1B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1c.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1c.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1c.h index 488df6a4b..10c6b06ef 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s1c.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s1c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S1C_PIO_ #define _SAM3S1C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2a.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2a.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2a.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2a.h index 3ff6a0983..7c195be1c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2a.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S2A_PIO_ #define _SAM3S2A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2b.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2b.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2b.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2b.h index d7f7f7a2d..21483f577 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2b.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S2B_PIO_ #define _SAM3S2B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2c.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2c.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2c.h index 88c617a1e..42b5d82f8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S2C_PIO_ #define _SAM3S2C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4a.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4a.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4a.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4a.h index 1418d7344..d73ff2705 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4a.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S4A_PIO_ #define _SAM3S4A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4b.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4b.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4b.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4b.h index a6e4cf913..2d27ee5bc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4b.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S4B_PIO_ #define _SAM3S4B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4c.h b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4c.h rename to hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4c.h index 76eb127d8..f9e512892 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/pio/sam3s4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/pio/pio_sam3s4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S4C_PIO_ #define _SAM3S4C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s.h index 02cb74351..f5627c0df 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s.h @@ -1,19 +1,35 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S_ #define _SAM3S_ -/* Device characteristics */ -#define CHIP_FREQ_SLCK_RC_MIN (20000U) -#define CHIP_FREQ_SLCK_RC (32000U) -#define CHIP_FREQ_SLCK_RC_MAX (44000U) -#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) -#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) -#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) -#define CHIP_FREQ_CPU_MAX (64000000U) - -#define CHIP_FLASH_WAIT_STATE (3U) - #if defined __SAM3S1A__ #include "sam3s1a.h" #elif defined __SAM3S1B__ diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1a.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1a.h index ab6735675..bc8623a7b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1a.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S1A_ #define _SAM3S1A_ @@ -96,29 +123,29 @@ typedef enum IRQn /** \addtogroup SAM3S1A_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -127,31 +154,31 @@ typedef enum IRQn /** \addtogroup SAM3S1A_reg Registers Access Definitions */ /*@{*/ -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -273,7 +300,7 @@ typedef enum IRQn /** \addtogroup SAM3S1A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s1a.h" +#include "pio/pio_sam3s1a.h" /*@}*/ /* ************************************************************************** */ @@ -295,6 +322,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S1A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1b.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1b.h index 85d114bb5..f9b011d70 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1b.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S1B_ #define _SAM3S1B_ @@ -99,31 +126,31 @@ typedef enum IRQn /** \addtogroup SAM3S1B_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -132,34 +159,34 @@ typedef enum IRQn /** \addtogroup SAM3S1B_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -296,7 +323,7 @@ typedef enum IRQn /** \addtogroup SAM3S1B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s1b.h" +#include "pio/pio_sam3s1b.h" /*@}*/ /* ************************************************************************** */ @@ -318,6 +345,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S1B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1c.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1c.h index f4a78e183..c849b07c8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1c.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s1c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S1C_ #define _SAM3S1C_ @@ -104,32 +131,32 @@ typedef enum IRQn /** \addtogroup SAM3S1C_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -138,37 +165,37 @@ typedef enum IRQn /** \addtogroup SAM3S1C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -316,7 +343,7 @@ typedef enum IRQn /** \addtogroup SAM3S1C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s1c.h" +#include "pio/pio_sam3s1c.h" /*@}*/ /* ************************************************************************** */ @@ -338,6 +365,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S1C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2a.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2a.h index c49c97897..5d21cc47a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2a.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S2A_ #define _SAM3S2A_ @@ -96,29 +123,29 @@ typedef enum IRQn /** \addtogroup SAM3S2A_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -127,31 +154,31 @@ typedef enum IRQn /** \addtogroup SAM3S2A_reg Registers Access Definitions */ /*@{*/ -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -273,7 +300,7 @@ typedef enum IRQn /** \addtogroup SAM3S2A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s2a.h" +#include "pio/pio_sam3s2a.h" /*@}*/ /* ************************************************************************** */ @@ -295,6 +322,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S2A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2b.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2b.h index 8f4cb5f99..859c3cbc3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2b.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S2B_ #define _SAM3S2B_ @@ -99,31 +126,31 @@ typedef enum IRQn /** \addtogroup SAM3S2B_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -132,34 +159,34 @@ typedef enum IRQn /** \addtogroup SAM3S2B_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -296,7 +323,7 @@ typedef enum IRQn /** \addtogroup SAM3S2B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s2b.h" +#include "pio/pio_sam3s2b.h" /*@}*/ /* ************************************************************************** */ @@ -318,6 +345,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S2B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2c.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2c.h index c5e8fa729..26956ca4f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S2C_ #define _SAM3S2C_ @@ -104,32 +131,32 @@ typedef enum IRQn /** \addtogroup SAM3S2C_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -138,37 +165,37 @@ typedef enum IRQn /** \addtogroup SAM3S2C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -316,7 +343,7 @@ typedef enum IRQn /** \addtogroup SAM3S2C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s2c.h" +#include "pio/pio_sam3s2c.h" /*@}*/ /* ************************************************************************** */ @@ -338,6 +365,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S2C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4a.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4a.h index dc966e3f9..9e8974820 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4a.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S4A_ #define _SAM3S4A_ @@ -96,29 +123,29 @@ typedef enum IRQn /** \addtogroup SAM3S4A_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -127,31 +154,31 @@ typedef enum IRQn /** \addtogroup SAM3S4A_reg Registers Access Definitions */ /*@{*/ -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -273,7 +300,7 @@ typedef enum IRQn /** \addtogroup SAM3S4A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s4a.h" +#include "pio/pio_sam3s4a.h" /*@}*/ /* ************************************************************************** */ @@ -295,6 +322,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S4A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4b.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4b.h index d3bbd640a..c4f695e5d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4b.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S4B_ #define _SAM3S4B_ @@ -99,31 +126,31 @@ typedef enum IRQn /** \addtogroup SAM3S4B_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -132,34 +159,34 @@ typedef enum IRQn /** \addtogroup SAM3S4B_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -296,7 +323,7 @@ typedef enum IRQn /** \addtogroup SAM3S4B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s4b.h" +#include "pio/pio_sam3s4b.h" /*@}*/ /* ************************************************************************** */ @@ -318,6 +345,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S4B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4c.h b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4c.h index 061dacb82..f20237359 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3s/include/sam3s4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S4C_ #define _SAM3S4C_ @@ -104,32 +131,32 @@ typedef enum IRQn /** \addtogroup SAM3S4C_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -138,37 +165,37 @@ typedef enum IRQn /** \addtogroup SAM3S4C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -316,7 +343,7 @@ typedef enum IRQn /** \addtogroup SAM3S4C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s4c.h" +#include "pio/pio_sam3s4c.h" /*@}*/ /* ************************************************************************** */ @@ -338,6 +365,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S4C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/component/gpbr.h deleted file mode 100644 index aba7e4a07..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/gpbr.h +++ /dev/null @@ -1,26 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_GPBR_COMPONENT_ -#define _SAM3S8_GPBR_COMPONENT_ - -/* ============================================================================= */ -/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ -/* ============================================================================= */ -/** \addtogroup SAM3S8_GPBR General Purpose Backup Register */ -/*@{*/ - -#ifndef __ASSEMBLY__ -/** \brief Gpbr hardware registers */ -typedef struct { - RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ -} Gpbr; -#endif /* __ASSEMBLY__ */ -/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ -#define SYS_GPBR_GPBR_VALUE_Pos 0 -#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ -#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) - -/*@}*/ - - -#endif /* _SAM3S8_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/chipid.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/chipid.h deleted file mode 100644 index a26376ab0..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/chipid.h +++ /dev/null @@ -1,15 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_CHIPID_INSTANCE_ -#define _SAM3S8_CHIPID_INSTANCE_ - -/* ========== Register definition for CHIPID peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#else -#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/efc.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/efc.h deleted file mode 100644 index d8bd82cd0..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/efc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_EFC_INSTANCE_ -#define _SAM3S8_EFC_INSTANCE_ - -/* ========== Register definition for EFC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC_FMR (0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ -#define REG_EFC_FCR (0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ -#define REG_EFC_FSR (0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ -#define REG_EFC_FRR (0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ -#else -#define REG_EFC_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ -#define REG_EFC_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ -#define REG_EFC_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ -#define REG_EFC_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_EFC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/gpbr.h deleted file mode 100644 index d64e17e0c..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/gpbr.h +++ /dev/null @@ -1,13 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_GPBR_INSTANCE_ -#define _SAM3S8_GPBR_INSTANCE_ - -/* ========== Register definition for GPBR peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ -#else -#define REG_GPBR_GPBR (*(RwReg*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rstc.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rstc.h deleted file mode 100644 index e90f360a9..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rstc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_RSTC_INSTANCE_ -#define _SAM3S8_RSTC_INSTANCE_ - -/* ========== Register definition for RSTC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ -#else -#define REG_RSTC_CR (*(WoReg*)0x400E1400U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (*(RoReg*)0x400E1404U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (*(RwReg*)0x400E1408U) /**< \brief (RSTC) Mode Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtt.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtt.h deleted file mode 100644 index d8e0542ea..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtt.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_RTT_INSTANCE_ -#define _SAM3S8_RTT_INSTANCE_ - -/* ========== Register definition for RTT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RTT_MR (0x400E1430U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (0x400E1434U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (0x400E1438U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (0x400E143CU) /**< \brief (RTT) Status Register */ -#else -#define REG_RTT_MR (*(RwReg*)0x400E1430U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (*(RwReg*)0x400E1434U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (*(RoReg*)0x400E1438U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (*(RoReg*)0x400E143CU) /**< \brief (RTT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/supc.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/supc.h deleted file mode 100644 index 252316302..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/supc.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_SUPC_INSTANCE_ -#define _SAM3S8_SUPC_INSTANCE_ - -/* ========== Register definition for SUPC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_SUPC_CR (0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ -#else -#define REG_SUPC_CR (*(WoReg*)0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (*(RwReg*)0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (*(RwReg*)0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (*(RwReg*)0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (*(RwReg*)0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (*(RoReg*)0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/wdt.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/wdt.h deleted file mode 100644 index 584bbdb27..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/wdt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_WDT_INSTANCE_ -#define _SAM3S8_WDT_INSTANCE_ - -/* ========== Register definition for WDT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ -#else -#define REG_WDT_CR (*(WoReg*)0x400E1450U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (*(RwReg*)0x400E1454U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (*(RoReg*)0x400E1458U) /**< \brief (WDT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3S8_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8.h b/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8.h deleted file mode 100644 index 42f9cb194..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8.h +++ /dev/null @@ -1,33 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3S8_ -#define _SAM3S8_ - -/* Device characteristics */ -#define CHIP_FREQ_SLCK_RC_MIN (20000U) -#define CHIP_FREQ_SLCK_RC (32000U) -#define CHIP_FREQ_SLCK_RC_MAX (44000U) -#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) -#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) -#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) -#define CHIP_FREQ_CPU_MAX (64000000U) - -#define CHIP_FLASH_WAIT_STATE (3U) - -#if defined __SAM3SD8A__ - #include "sam3sd8a.h" -#elif defined __SAM3SD8B__ - #include "sam3sd8b.h" -#elif defined __SAM3SD8C__ - #include "sam3sd8c.h" -#elif defined __SAM3S8A__ - #include "sam3s8a.h" -#elif defined __SAM3S8B__ - #include "sam3s8b.h" -#elif defined __SAM3S8C__ - #include "sam3s8c.h" -#else - #error Library does not support the specified device. -#endif - -#endif /* _SAM3S8_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/acc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_acc.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/acc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_acc.h index ce580fa16..f4d28244a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/acc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_acc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_ACC_COMPONENT_ #define _SAM3S8_ACC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/adc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_adc.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/adc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_adc.h index ebe30eedb..ea035adce 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_ADC_COMPONENT_ #define _SAM3S8_ADC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/chipid.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_chipid.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/chipid.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_chipid.h index a4fbd8ba4..91839ba4f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/chipid.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_chipid.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_CHIPID_COMPONENT_ #define _SAM3S8_CHIPID_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/crccu.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_crccu.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/crccu.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_crccu.h index 3b2f021d7..ad2e79be2 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/crccu.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_crccu.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_CRCCU_COMPONENT_ #define _SAM3S8_CRCCU_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/dacc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_dacc.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_dacc.h index 18d23f5a7..e82e25965 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_DACC_COMPONENT_ #define _SAM3S8_DACC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/efc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_efc.h similarity index 63% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/efc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_efc.h index c01af841f..ac672a709 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/efc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_efc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_EFC_COMPONENT_ #define _SAM3S8_EFC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_gpbr.h new file mode 100644 index 000000000..489b77c82 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_gpbr.h @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_GPBR_COMPONENT_ +#define _SAM3S8_GPBR_COMPONENT_ + +/* ============================================================================= */ +/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ +/* ============================================================================= */ +/** \addtogroup SAM3S8_GPBR General Purpose Backup Register */ +/*@{*/ + +#ifndef __ASSEMBLY__ +/** \brief Gpbr hardware registers */ +typedef struct { + RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ +} Gpbr; +#endif /* __ASSEMBLY__ */ +/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ +#define SYS_GPBR_GPBR_VALUE_Pos 0 +#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ +#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) + +/*@}*/ + + +#endif /* _SAM3S8_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_hsmci.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_hsmci.h index 7e2603298..b83a13b0b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_HSMCI_COMPONENT_ #define _SAM3S8_HSMCI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/matrix.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_matrix.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_matrix.h index c498fce8c..053917d80 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_MATRIX_COMPONENT_ #define _SAM3S8_MATRIX_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pdc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pdc.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/pdc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pdc.h index b553b28a9..770a44746 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pdc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pdc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PDC_COMPONENT_ #define _SAM3S8_PDC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pio.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pio.h similarity index 98% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/pio.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pio.h index d7fde0d27..a519a3c51 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pio.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pio.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PIO_COMPONENT_ #define _SAM3S8_PIO_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pmc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pmc.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pmc.h index da245f99b..cd1d7288a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PMC_COMPONENT_ #define _SAM3S8_PMC_COMPONENT_ @@ -21,7 +48,7 @@ typedef struct { RoReg PMC_PCSR0; /**< \brief (Pmc Offset: 0x0018) Peripheral Clock Status Register 0 */ RoReg Reserved2[1]; RwReg CKGR_MOR; /**< \brief (Pmc Offset: 0x0020) Main Oscillator Register */ - RoReg CKGR_MCFR; /**< \brief (Pmc Offset: 0x0024) Main Clock Frequency Register */ + RwReg CKGR_MCFR; /**< \brief (Pmc Offset: 0x0024) Main Clock Frequency Register */ RwReg CKGR_PLLAR; /**< \brief (Pmc Offset: 0x0028) PLLA Register */ RwReg CKGR_PLLBR; /**< \brief (Pmc Offset: 0x002C) PLLB Register */ RwReg PMC_MCKR; /**< \brief (Pmc Offset: 0x0030) Master Clock Register */ @@ -159,13 +186,12 @@ typedef struct { /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ #define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ #define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ -#define CKGR_MOR_WAITMODE (0x1u << 2) /**< \brief (CKGR_MOR) Wait Mode Command */ #define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ #define CKGR_MOR_MOSCRCF_Pos 4 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ -#define CKGR_MOR_MOSCRCF_4MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ -#define CKGR_MOR_MOSCRCF_8MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ -#define CKGR_MOR_MOSCRCF_12MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ +#define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ +#define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ +#define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ #define CKGR_MOR_MOSCXTST_Pos 8 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) @@ -177,7 +203,9 @@ typedef struct { /* -------- CKGR_MCFR : (PMC Offset: 0x0024) Main Clock Frequency Register -------- */ #define CKGR_MCFR_MAINF_Pos 0 #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) /**< \brief (CKGR_MCFR) Main Clock Frequency */ +#define CKGR_MCFR_MAINF(value) ((CKGR_MCFR_MAINF_Msk & ((value) << CKGR_MCFR_MAINF_Pos))) #define CKGR_MCFR_MAINFRDY (0x1u << 16) /**< \brief (CKGR_MCFR) Main Clock Ready */ +#define CKGR_MCFR_RCMEAS (0x1u << 20) /**< \brief (CKGR_MCFR) RC Oscillator Frequency Measure (write-only) */ /* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */ #define CKGR_PLLAR_DIVA_Pos 0 #define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) /**< \brief (CKGR_PLLAR) Divider */ @@ -188,7 +216,7 @@ typedef struct { #define CKGR_PLLAR_MULA_Pos 16 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) -#define CKGR_PLLAR_STUCKTO1 (0x1u << 29) /**< \brief (CKGR_PLLAR) */ +#define CKGR_PLLAR_ONE (0x1u << 29) /**< \brief (CKGR_PLLAR) Must Be Set to 1 */ /* -------- CKGR_PLLBR : (PMC Offset: 0x002C) PLLB Register -------- */ #define CKGR_PLLBR_DIVB_Pos 0 #define CKGR_PLLBR_DIVB_Msk (0xffu << CKGR_PLLBR_DIVB_Pos) /**< \brief (CKGR_PLLBR) Divider */ @@ -205,7 +233,7 @@ typedef struct { #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ -#define PMC_MCKR_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_MCKR) PLLB Clock is selected */ +#define PMC_MCKR_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_MCKR) PLLBClock is selected */ #define PMC_MCKR_PRES_Pos 4 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ #define PMC_MCKR_PRES_CLK (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ @@ -229,17 +257,11 @@ typedef struct { #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ -#define PMC_PCK_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) PLLB Clock is selected */ +#define PMC_PCK_CSS_PLLB_CLKUPLL_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) PLLB Clock is selected */ #define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ #define PMC_PCK_PRES_Pos 4 #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Programmable Clock Prescaler */ -#define PMC_PCK_PRES_CLK (0x0u << 4) /**< \brief (PMC_PCK[3]) Selected clock */ -#define PMC_PCK_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 2 */ -#define PMC_PCK_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 4 */ -#define PMC_PCK_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 8 */ -#define PMC_PCK_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 16 */ -#define PMC_PCK_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 32 */ -#define PMC_PCK_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 64 */ +#define PMC_PCK_PRES(value) ((PMC_PCK_PRES_Msk & ((value) << PMC_PCK_PRES_Pos))) /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ #define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ #define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLLA Lock Interrupt Enable */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pwm.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pwm.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pwm.h index 1a9235c2a..ad63587dc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PWM_COMPONENT_ #define _SAM3S8_PWM_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/rstc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rstc.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/rstc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rstc.h index 6ba85da5e..17af99e3e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/rstc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rstc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_RSTC_COMPONENT_ #define _SAM3S8_RSTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/rtc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rtc.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rtc.h index 8e91e0dfd..285d88cda 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_RTC_COMPONENT_ #define _SAM3S8_RTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/rtt.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rtt.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/rtt.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rtt.h index d8c8f5d21..a9b965449 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/rtt.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_rtt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_RTT_COMPONENT_ #define _SAM3S8_RTT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/smc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_smc.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/smc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_smc.h index 323d9dc72..8c3050d9e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SMC_COMPONENT_ #define _SAM3S8_SMC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/spi.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_spi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/spi.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_spi.h index a338cf7a7..88153749e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SPI_COMPONENT_ #define _SAM3S8_SPI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/ssc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_ssc.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_ssc.h index eb31bc5bc..ffaed3b56 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SSC_COMPONENT_ #define _SAM3S8_SSC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/supc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_supc.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/supc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_supc.h index b62d94b37..609e2bf4b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/supc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_supc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SUPC_COMPONENT_ #define _SAM3S8_SUPC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/tc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_tc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/tc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_tc.h index bde3bcf78..0a209e177 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/tc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_tc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_TC_COMPONENT_ #define _SAM3S8_TC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/twi.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_twi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/twi.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_twi.h index 04a406888..cdcb2e4a0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/twi.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_twi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_TWI_COMPONENT_ #define _SAM3S8_TWI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/uart.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_uart.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/uart.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_uart.h index a50923a71..4b74609fc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_UART_COMPONENT_ #define _SAM3S8_UART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/udp.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_udp.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/udp.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_udp.h index f74f73414..6de4d8b1f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/udp.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_udp.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_UDP_COMPONENT_ #define _SAM3S8_UDP_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/usart.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_usart.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/usart.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_usart.h index 5d120eb11..664fdd27c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/usart.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_usart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_USART_COMPONENT_ #define _SAM3S8_USART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/wdt.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_wdt.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/component/wdt.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_wdt.h index afbbf0de5..228e31be5 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/component/wdt.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/component/component_wdt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_WDT_COMPONENT_ #define _SAM3S8_WDT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/acc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_acc.h similarity index 54% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/acc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_acc.h index 759e33ece..3a644c14d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/acc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_acc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_ACC_INSTANCE_ #define _SAM3S8_ACC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/adc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_adc.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/adc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_adc.h index 2c502beb4..d6cc39f71 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_ADC_INSTANCE_ #define _SAM3S8_ADC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_chipid.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_chipid.h new file mode 100644 index 000000000..eeeeeae9b --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_chipid.h @@ -0,0 +1,42 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_CHIPID_INSTANCE_ +#define _SAM3S8_CHIPID_INSTANCE_ + +/* ========== Register definition for CHIPID peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#else +#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/crccu.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_crccu.h similarity index 68% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/crccu.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_crccu.h index a580c0f93..d37627396 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/crccu.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_crccu.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_CRCCU_INSTANCE_ #define _SAM3S8_CRCCU_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/dacc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_dacc.h similarity index 74% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_dacc.h index 95ebf7495..582ed9396 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_DACC_INSTANCE_ #define _SAM3S8_DACC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_efc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_efc.h new file mode 100644 index 000000000..7d1b09910 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_efc.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_EFC_INSTANCE_ +#define _SAM3S8_EFC_INSTANCE_ + +/* ========== Register definition for EFC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC_FMR (0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ +#define REG_EFC_FCR (0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ +#define REG_EFC_FSR (0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ +#define REG_EFC_FRR (0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ +#else +#define REG_EFC_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC) EEFC Flash Mode Register */ +#define REG_EFC_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC) EEFC Flash Command Register */ +#define REG_EFC_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC) EEFC Flash Status Register */ +#define REG_EFC_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_EFC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_gpbr.h new file mode 100644 index 000000000..b0a6fa782 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_gpbr.h @@ -0,0 +1,40 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_GPBR_INSTANCE_ +#define _SAM3S8_GPBR_INSTANCE_ + +/* ========== Register definition for GPBR peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ +#else +#define REG_GPBR_GPBR (*(RwReg*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_hsmci.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_hsmci.h index 6ef88c7d6..9efebbebc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_HSMCI_INSTANCE_ #define _SAM3S8_HSMCI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/matrix.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_matrix.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_matrix.h index ac13e0940..b11f4e12e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_MATRIX_INSTANCE_ #define _SAM3S8_MATRIX_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pioa.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pioa.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pioa.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pioa.h index b2048262d..1545f891a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pioa.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pioa.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PIOA_INSTANCE_ #define _SAM3S8_PIOA_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/piob.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_piob.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/piob.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_piob.h index 3cc7200cb..0ab9b1b1f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/piob.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_piob.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PIOB_INSTANCE_ #define _SAM3S8_PIOB_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pioc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pioc.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pioc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pioc.h index 49aeddb11..1d2de8a8b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pioc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pioc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PIOC_INSTANCE_ #define _SAM3S8_PIOC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pmc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pmc.h similarity index 76% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pmc.h index eafd3dd7b..b4b0d05a7 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PMC_INSTANCE_ #define _SAM3S8_PMC_INSTANCE_ @@ -39,7 +66,7 @@ #define REG_PMC_PCDR0 (*(WoReg*)0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register 0 */ #define REG_PMC_PCSR0 (*(RoReg*)0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register 0 */ #define REG_CKGR_MOR (*(RwReg*)0x400E0420U) /**< \brief (PMC) Main Oscillator Register */ -#define REG_CKGR_MCFR (*(RoReg*)0x400E0424U) /**< \brief (PMC) Main Clock Frequency Register */ +#define REG_CKGR_MCFR (*(RwReg*)0x400E0424U) /**< \brief (PMC) Main Clock Frequency Register */ #define REG_CKGR_PLLAR (*(RwReg*)0x400E0428U) /**< \brief (PMC) PLLA Register */ #define REG_CKGR_PLLBR (*(RwReg*)0x400E042CU) /**< \brief (PMC) PLLB Register */ #define REG_PMC_MCKR (*(RwReg*)0x400E0430U) /**< \brief (PMC) Master Clock Register */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pwm.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pwm.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pwm.h index 981c6d86a..033a0fd5e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_PWM_INSTANCE_ #define _SAM3S8_PWM_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rstc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rstc.h new file mode 100644 index 000000000..a4460f498 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rstc.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_RSTC_INSTANCE_ +#define _SAM3S8_RSTC_INSTANCE_ + +/* ========== Register definition for RSTC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ +#else +#define REG_RSTC_CR (*(WoReg*)0x400E1400U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (*(RoReg*)0x400E1404U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (*(RwReg*)0x400E1408U) /**< \brief (RSTC) Mode Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtc.h similarity index 60% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtc.h index 99d0bc68d..1579d422c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_RTC_INSTANCE_ #define _SAM3S8_RTC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtt.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtt.h new file mode 100644 index 000000000..47fc384be --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_rtt.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_RTT_INSTANCE_ +#define _SAM3S8_RTT_INSTANCE_ + +/* ========== Register definition for RTT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RTT_MR (0x400E1430U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (0x400E1434U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (0x400E1438U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (0x400E143CU) /**< \brief (RTT) Status Register */ +#else +#define REG_RTT_MR (*(RwReg*)0x400E1430U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (*(RwReg*)0x400E1434U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (*(RoReg*)0x400E1438U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (*(RoReg*)0x400E143CU) /**< \brief (RTT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/smc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_smc.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/smc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_smc.h index 8410d3286..43da6421e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SMC_INSTANCE_ #define _SAM3S8_SMC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/spi.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_spi.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/spi.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_spi.h index 4fa59a5e0..f35286dd6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SPI_INSTANCE_ #define _SAM3S8_SPI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/ssc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_ssc.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_ssc.h index 2edc346e5..c5f9f00a0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SSC_INSTANCE_ #define _SAM3S8_SSC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_supc.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_supc.h new file mode 100644 index 000000000..29dd98385 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_supc.h @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_SUPC_INSTANCE_ +#define _SAM3S8_SUPC_INSTANCE_ + +/* ========== Register definition for SUPC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_SUPC_CR (0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ +#else +#define REG_SUPC_CR (*(WoReg*)0x400E1410U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (*(RwReg*)0x400E1414U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (*(RwReg*)0x400E1418U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (*(RwReg*)0x400E141CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (*(RwReg*)0x400E1420U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (*(RoReg*)0x400E1424U) /**< \brief (SUPC) Supply Controller Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/tc0.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_tc0.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/tc0.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_tc0.h index 618ef90de..44c6787d1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/tc0.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_tc0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_TC0_INSTANCE_ #define _SAM3S8_TC0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/tc1.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_tc1.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/tc1.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_tc1.h index 4f081851f..1cda78bef 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/tc1.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_tc1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_TC1_INSTANCE_ #define _SAM3S8_TC1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/twi0.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_twi0.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/twi0.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_twi0.h index d563a3476..ac6a6e852 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/twi0.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_twi0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_TWI0_INSTANCE_ #define _SAM3S8_TWI0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/twi1.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_twi1.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/twi1.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_twi1.h index 727990b9a..f4bdeb96c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/twi1.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_twi1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_TWI1_INSTANCE_ #define _SAM3S8_TWI1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/uart0.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_uart0.h similarity index 71% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/uart0.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_uart0.h index ca7a8a5ca..09ada8544 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/uart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_uart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_UART0_INSTANCE_ #define _SAM3S8_UART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/uart1.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_uart1.h similarity index 71% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/uart1.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_uart1.h index 3c72bd3ef..d8d328665 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/uart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_uart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_UART1_INSTANCE_ #define _SAM3S8_UART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/udp.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_udp.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/udp.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_udp.h index a2f28e1cb..ff4ada3dc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/udp.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_udp.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_UDP_INSTANCE_ #define _SAM3S8_UDP_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart0.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart0.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart0.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart0.h index 4ab0d76eb..04ee15c8e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_USART0_INSTANCE_ #define _SAM3S8_USART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart1.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart1.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart1.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart1.h index 1e3c5359c..1d83320ba 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_USART1_INSTANCE_ #define _SAM3S8_USART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart2.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart2.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart2.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart2.h index 117171038..cc909ce68 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/instance/usart2.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_usart2.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_USART2_INSTANCE_ #define _SAM3S8_USART2_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_wdt.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_wdt.h new file mode 100644 index 000000000..6d89ffbb3 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/instance/instance_wdt.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_WDT_INSTANCE_ +#define _SAM3S8_WDT_INSTANCE_ + +/* ========== Register definition for WDT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ +#else +#define REG_WDT_CR (*(WoReg*)0x400E1450U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (*(RwReg*)0x400E1454U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (*(RoReg*)0x400E1458U) /**< \brief (WDT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3S8_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8a.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8a.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8a.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8a.h index 4e7aa9b36..26850a101 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8a.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8A_PIO_ #define _SAM3S8A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8b.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8b.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8b.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8b.h index 57441ba53..9f942a976 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8b.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8B_PIO_ #define _SAM3S8B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8c.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8c.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8c.h index 2e7c5b50a..0d8a5ab44 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3s8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3s8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8C_PIO_ #define _SAM3S8C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8a.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8a.h similarity index 89% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8a.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8a.h index bfab447d1..189f4c3dd 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8a.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3SD8A_PIO_ #define _SAM3SD8A_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8b.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8b.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8b.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8b.h index 21f632a2e..37c7658c2 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8b.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3SD8B_PIO_ #define _SAM3SD8B_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8c.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8c.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8c.h index 0e10c582c..8c186e14c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/pio/sam3sd8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/pio/pio_sam3sd8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3SD8C_PIO_ #define _SAM3SD8C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8.h new file mode 100644 index 000000000..0550476b3 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8.h @@ -0,0 +1,49 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8_ +#define _SAM3S8_ + +#if defined __SAM3SD8A__ + #include "sam3sd8a.h" +#elif defined __SAM3SD8B__ + #include "sam3sd8b.h" +#elif defined __SAM3SD8C__ + #include "sam3sd8c.h" +#elif defined __SAM3S8A__ + #include "sam3s8a.h" +#elif defined __SAM3S8B__ + #include "sam3s8b.h" +#elif defined __SAM3S8C__ + #include "sam3s8c.h" +#else + #error Library does not support the specified device. +#endif + +#endif /* _SAM3S8_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8a.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8a.h similarity index 76% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8a.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8a.h index 515b038ea..abcf69d0a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8a.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8A_ #define _SAM3S8A_ @@ -97,30 +124,30 @@ typedef enum IRQn /** \addtogroup SAM3S8A_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -129,32 +156,32 @@ typedef enum IRQn /** \addtogroup SAM3S8A_reg Registers Access Definitions */ /*@{*/ -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -281,19 +308,19 @@ typedef enum IRQn /** \addtogroup SAM3S8A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s8a.h" +#include "pio/pio_sam3s8a.h" /*@}*/ /* ************************************************************************** */ /* MEMORY MAPPING DEFINITIONS FOR SAM3S8A */ /* ************************************************************************** */ -#define IFLASH_SIZE 0x80000 -#define IFLASH_PAGE_SIZE 256 -#define IFLASH_LOCK_REGION_SIZE 16384 -#define IFLASH_NB_OF_PAGES 2048 -#define IFLASH_NB_OF_LOCK_BITS 16 -#define IRAM_SIZE 0x10000 +#define IFLASH_SIZE (0x80000u) +#define IFLASH_PAGE_SIZE (256u) +#define IFLASH_LOCK_REGION_SIZE (16384u) +#define IFLASH_NB_OF_PAGES (2048u) +#define IFLASH_NB_OF_LOCK_BITS (16u) +#define IRAM_SIZE (0x10000u) #define IFLASH_ADDR (0x00400000u) /**< Internal Flash base address */ #define IFLASH0_ADDR (0x00400000u) /**< Internal Flash 0 base address */ @@ -307,6 +334,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S8A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8b.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8b.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8b.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8b.h index bd230fc49..a4d517ef4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8b.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8B_ #define _SAM3S8B_ @@ -99,31 +126,31 @@ typedef enum IRQn /** \addtogroup SAM3S8B_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -132,34 +159,34 @@ typedef enum IRQn /** \addtogroup SAM3S8B_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -296,19 +323,19 @@ typedef enum IRQn /** \addtogroup SAM3S8B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s8b.h" +#include "pio/pio_sam3s8b.h" /*@}*/ /* ************************************************************************** */ /* MEMORY MAPPING DEFINITIONS FOR SAM3S8B */ /* ************************************************************************** */ -#define IFLASH_SIZE 0x80000 -#define IFLASH_PAGE_SIZE 256 -#define IFLASH_LOCK_REGION_SIZE 16384 -#define IFLASH_NB_OF_PAGES 2048 -#define IFLASH_NB_OF_LOCK_BITS 16 -#define IRAM_SIZE 0x10000 +#define IFLASH_SIZE (0x80000u) +#define IFLASH_PAGE_SIZE (256u) +#define IFLASH_LOCK_REGION_SIZE (16384u) +#define IFLASH_NB_OF_PAGES (2048u) +#define IFLASH_NB_OF_LOCK_BITS (16u) +#define IRAM_SIZE (0x10000u) #define IFLASH_ADDR (0x00400000u) /**< Internal Flash base address */ #define IFLASH0_ADDR (0x00400000u) /**< Internal Flash 0 base address */ @@ -322,6 +349,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S8B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8c.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8c.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8c.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8c.h index 623942f59..d1bf39f60 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3s8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3s8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3S8C_ #define _SAM3S8C_ @@ -105,32 +132,32 @@ typedef enum IRQn /** \addtogroup SAM3S8C_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -139,38 +166,38 @@ typedef enum IRQn /** \addtogroup SAM3S8C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -323,19 +350,19 @@ typedef enum IRQn /** \addtogroup SAM3S8C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3s8c.h" +#include "pio/pio_sam3s8c.h" /*@}*/ /* ************************************************************************** */ /* MEMORY MAPPING DEFINITIONS FOR SAM3S8C */ /* ************************************************************************** */ -#define IFLASH_SIZE 0x80000 -#define IFLASH_PAGE_SIZE 256 -#define IFLASH_LOCK_REGION_SIZE 16384 -#define IFLASH_NB_OF_PAGES 2048 -#define IFLASH_NB_OF_LOCK_BITS 16 -#define IRAM_SIZE 0x10000 +#define IFLASH_SIZE (0x80000u) +#define IFLASH_PAGE_SIZE (256u) +#define IFLASH_LOCK_REGION_SIZE (16384u) +#define IFLASH_NB_OF_PAGES (2048u) +#define IFLASH_NB_OF_LOCK_BITS (16u) +#define IRAM_SIZE (0x10000u) #define IFLASH_ADDR (0x00400000u) /**< Internal Flash base address */ #define IFLASH0_ADDR (0x00400000u) /**< Internal Flash 0 base address */ @@ -349,6 +376,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3S8C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8a.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8a.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8a.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8a.h index 937e96056..d118aae17 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8a.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8a.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3SD8A_ #define _SAM3SD8A_ @@ -97,30 +124,30 @@ typedef enum IRQn /** \addtogroup SAM3SD8A_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -129,32 +156,32 @@ typedef enum IRQn /** \addtogroup SAM3SD8A_reg Registers Access Definitions */ /*@{*/ -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -281,25 +308,25 @@ typedef enum IRQn /** \addtogroup SAM3SD8A_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3sd8a.h" +#include "pio/pio_sam3sd8a.h" /*@}*/ /* ************************************************************************** */ /* MEMORY MAPPING DEFINITIONS FOR SAM3SD8A */ /* ************************************************************************** */ -#define IFLASH0_SIZE 0x40000 -#define IFLASH0_PAGE_SIZE 256 -#define IFLASH0_LOCK_REGION_SIZE 16384 -#define IFLASH0_NB_OF_PAGES 1024 -#define IFLASH0_NB_OF_LOCK_BITS 16 -#define IFLASH1_SIZE 0x40000 -#define IFLASH1_PAGE_SIZE 256 -#define IFLASH1_LOCK_REGION_SIZE 16384 -#define IFLASH1_NB_OF_PAGES 1024 -#define IFLASH1_NB_OF_LOCK_BITS 16 -#define IRAM_SIZE 0x10000 -#define IFLASH_SIZE 0x80000 +#define IFLASH0_SIZE (0x40000u) +#define IFLASH0_PAGE_SIZE (256u) +#define IFLASH0_LOCK_REGION_SIZE (16384u) +#define IFLASH0_NB_OF_PAGES (1024u) +#define IFLASH0_NB_OF_LOCK_BITS (16u) +#define IFLASH1_SIZE (0x40000u) +#define IFLASH1_PAGE_SIZE (256u) +#define IFLASH1_LOCK_REGION_SIZE (16384u) +#define IFLASH1_NB_OF_PAGES (1024u) +#define IFLASH1_NB_OF_LOCK_BITS (16u) +#define IRAM_SIZE (0x10000u) +#define IFLASH_SIZE (0x80000u) #define IFLASH_ADDR (0x00400000u) /**< Internal Flash base address */ #define IFLASH0_ADDR (0x00400000u) /**< Internal Flash 0 base address */ @@ -313,6 +340,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3SD8A */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8b.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8b.h similarity index 76% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8b.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8b.h index 9d6fd08a2..bfab73420 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8b.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3SD8B_ #define _SAM3SD8B_ @@ -99,31 +126,31 @@ typedef enum IRQn /** \addtogroup SAM3SD8B_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -132,34 +159,34 @@ typedef enum IRQn /** \addtogroup SAM3SD8B_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -296,25 +323,25 @@ typedef enum IRQn /** \addtogroup SAM3SD8B_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3sd8b.h" +#include "pio/pio_sam3sd8b.h" /*@}*/ /* ************************************************************************** */ /* MEMORY MAPPING DEFINITIONS FOR SAM3SD8B */ /* ************************************************************************** */ -#define IFLASH0_SIZE 0x40000 -#define IFLASH0_PAGE_SIZE 256 -#define IFLASH0_LOCK_REGION_SIZE 16384 -#define IFLASH0_NB_OF_PAGES 1024 -#define IFLASH0_NB_OF_LOCK_BITS 16 -#define IFLASH1_SIZE 0x40000 -#define IFLASH1_PAGE_SIZE 256 -#define IFLASH1_LOCK_REGION_SIZE 16384 -#define IFLASH1_NB_OF_PAGES 1024 -#define IFLASH1_NB_OF_LOCK_BITS 16 -#define IRAM_SIZE 0x10000 -#define IFLASH_SIZE 0x80000 +#define IFLASH0_SIZE (0x40000u) +#define IFLASH0_PAGE_SIZE (256u) +#define IFLASH0_LOCK_REGION_SIZE (16384u) +#define IFLASH0_NB_OF_PAGES (1024u) +#define IFLASH0_NB_OF_LOCK_BITS (16u) +#define IFLASH1_SIZE (0x40000u) +#define IFLASH1_PAGE_SIZE (256u) +#define IFLASH1_LOCK_REGION_SIZE (16384u) +#define IFLASH1_NB_OF_PAGES (1024u) +#define IFLASH1_NB_OF_LOCK_BITS (16u) +#define IRAM_SIZE (0x10000u) +#define IFLASH_SIZE (0x80000u) #define IFLASH_ADDR (0x00400000u) /**< Internal Flash base address */ #define IFLASH0_ADDR (0x00400000u) /**< Internal Flash 0 base address */ @@ -328,6 +355,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3SD8B */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8c.h b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8c.h similarity index 77% rename from hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8c.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8c.h index aa976f99a..08ddfcb68 100644 --- a/hardware/sam/system/libsam/cmsis/sam3s8/include/sam3sd8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3sd8/include/sam3sd8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3SD8C_ #define _SAM3SD8C_ @@ -105,32 +132,32 @@ typedef enum IRQn /** \addtogroup SAM3SD8C_api Peripheral Software API */ /*@{*/ -#include "component/acc.h" -#include "component/adc.h" -#include "component/chipid.h" -#include "component/crccu.h" -#include "component/dacc.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udp.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_acc.h" +#include "component/component_adc.h" +#include "component/component_chipid.h" +#include "component/component_crccu.h" +#include "component/component_dacc.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udp.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -139,38 +166,38 @@ typedef enum IRQn /** \addtogroup SAM3SD8C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/udp.h" -#include "instance/adc.h" -#include "instance/dacc.h" -#include "instance/acc.h" -#include "instance/crccu.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart0.h" -#include "instance/chipid.h" -#include "instance/uart1.h" -#include "instance/efc.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_udp.h" +#include "instance/instance_adc.h" +#include "instance/instance_dacc.h" +#include "instance/instance_acc.h" +#include "instance/instance_crccu.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart0.h" +#include "instance/instance_chipid.h" +#include "instance/instance_uart1.h" +#include "instance/instance_efc.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -323,25 +350,25 @@ typedef enum IRQn /** \addtogroup SAM3SD8C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3sd8c.h" +#include "pio/pio_sam3sd8c.h" /*@}*/ /* ************************************************************************** */ /* MEMORY MAPPING DEFINITIONS FOR SAM3SD8C */ /* ************************************************************************** */ -#define IFLASH0_SIZE 0x40000 -#define IFLASH0_PAGE_SIZE 256 -#define IFLASH0_LOCK_REGION_SIZE 16384 -#define IFLASH0_NB_OF_PAGES 1024 -#define IFLASH0_NB_OF_LOCK_BITS 16 -#define IFLASH1_SIZE 0x40000 -#define IFLASH1_PAGE_SIZE 256 -#define IFLASH1_LOCK_REGION_SIZE 16384 -#define IFLASH1_NB_OF_PAGES 1024 -#define IFLASH1_NB_OF_LOCK_BITS 16 -#define IRAM_SIZE 0x10000 -#define IFLASH_SIZE 0x80000 +#define IFLASH0_SIZE (0x40000u) +#define IFLASH0_PAGE_SIZE (256u) +#define IFLASH0_LOCK_REGION_SIZE (16384u) +#define IFLASH0_NB_OF_PAGES (1024u) +#define IFLASH0_NB_OF_LOCK_BITS (16u) +#define IFLASH1_SIZE (0x40000u) +#define IFLASH1_PAGE_SIZE (256u) +#define IFLASH1_LOCK_REGION_SIZE (16384u) +#define IFLASH1_NB_OF_PAGES (1024u) +#define IFLASH1_NB_OF_LOCK_BITS (16u) +#define IRAM_SIZE (0x10000u) +#define IFLASH_SIZE (0x80000u) #define IFLASH_ADDR (0x00400000u) /**< Internal Flash base address */ #define IFLASH0_ADDR (0x00400000u) /**< Internal Flash 0 base address */ @@ -355,6 +382,21 @@ typedef enum IRQn #define EBI_CS2_ADDR (0x62000000u) /**< EBI Chip Select 2 base address */ #define EBI_CS3_ADDR (0x63000000u) /**< EBI Chip Select 3 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3SD8C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (64000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/source/templates/exceptions.c b/hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/exceptions.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3s8/source/templates/exceptions.c rename to hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/exceptions.c diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/source/templates/exceptions.h b/hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/exceptions.h similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3s8/source/templates/exceptions.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/exceptions.h diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/source/templates/gcc/startup_sam3sd8.c b/hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/gcc/startup_sam3sd8.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3s8/source/templates/gcc/startup_sam3sd8.c rename to hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/gcc/startup_sam3sd8.c diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/source/templates/iar/startup_sam3sd8.c b/hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/iar/startup_sam3sd8.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3s8/source/templates/iar/startup_sam3sd8.c rename to hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/iar/startup_sam3sd8.c diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/source/templates/system_sam3sd8.c b/hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/system_sam3sd8.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3s8/source/templates/system_sam3sd8.c rename to hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/system_sam3sd8.c diff --git a/hardware/sam/system/libsam/cmsis/sam3s8/source/templates/system_sam3sd8.h b/hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/system_sam3sd8.h similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3s8/source/templates/system_sam3sd8.h rename to hardware/sam/system/libsam/cmsis/sam3sd8/source/templates/system_sam3sd8.h diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/adc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_adc.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/adc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_adc.h index c8ce564b3..c01c16b30 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_ADC_COMPONENT_ #define _SAM3U_ADC_COMPONENT_ @@ -42,23 +69,11 @@ typedef struct { #define ADC_CR_START (0x1u << 1) /**< \brief (ADC_CR) Start Conversion */ /* -------- ADC_MR : (ADC Offset: 0x04) Mode Register -------- */ #define ADC_MR_TRGEN (0x1u << 0) /**< \brief (ADC_MR) Trigger Enable */ -#define ADC_MR_TRGEN_DIS (0x0u << 0) /**< \brief (ADC_MR) Hardware triggers are disabled. Starting a conversion is only possible by software. */ -#define ADC_MR_TRGEN_EN (0x1u << 0) /**< \brief (ADC_MR) Hardware trigger selected by TRGSEL field is enabled. */ #define ADC_MR_TRGSEL_Pos 1 #define ADC_MR_TRGSEL_Msk (0x7u << ADC_MR_TRGSEL_Pos) /**< \brief (ADC_MR) Trigger Selection */ #define ADC_MR_TRGSEL(value) ((ADC_MR_TRGSEL_Msk & ((value) << ADC_MR_TRGSEL_Pos))) -#define ADC_MR_TRGSEL_ADC_TRIG0 (0x0u << 1) /**< \brief (ADC_MR) External trigger */ -#define ADC_MR_TRGSEL_ADC_TRIG1 (0x1u << 1) /**< \brief (ADC_MR) TIO Output of the Timer Counter Channel 0 */ -#define ADC_MR_TRGSEL_ADC_TRIG2 (0x2u << 1) /**< \brief (ADC_MR) TIO Output of the Timer Counter Channel 1 */ -#define ADC_MR_TRGSEL_ADC_TRIG3 (0x3u << 1) /**< \brief (ADC_MR) TIO Output of the Timer Counter Channel 2 */ -#define ADC_MR_TRGSEL_ADC_TRIG4 (0x4u << 1) /**< \brief (ADC_MR) PWM Event Line 0 */ -#define ADC_MR_TRGSEL_ADC_TRIG5 (0x5u << 1) /**< \brief (ADC_MR) PWM Event Line 1 */ #define ADC_MR_LOWRES (0x1u << 4) /**< \brief (ADC_MR) Resolution */ -#define ADC_MR_LOWRES_BITS_10 (0x0u << 4) /**< \brief (ADC_MR) 12-bit resolution */ -#define ADC_MR_LOWRES_BITS_8 (0x1u << 4) /**< \brief (ADC_MR) 10-bit resolution */ #define ADC_MR_SLEEP (0x1u << 5) /**< \brief (ADC_MR) Sleep Mode */ -#define ADC_MR_SLEEP_NORMAL (0x0u << 5) /**< \brief (ADC_MR) Normal Mode: The ADC Core and reference voltage circuitry are kept ON between conversions */ -#define ADC_MR_SLEEP_SLEEP (0x1u << 5) /**< \brief (ADC_MR) Sleep Mode: The ADC Core and reference voltage circuitry are OFF between conversions */ #define ADC_MR_PRESCAL_Pos 8 #define ADC_MR_PRESCAL_Msk (0xffu << ADC_MR_PRESCAL_Pos) /**< \brief (ADC_MR) Prescaler Rate Selection */ #define ADC_MR_PRESCAL(value) ((ADC_MR_PRESCAL_Msk & ((value) << ADC_MR_PRESCAL_Pos))) @@ -185,10 +200,6 @@ typedef struct { /* -------- ADC_CDR[8] : (ADC Offset: 0x30) Channel Data Register -------- */ #define ADC_CDR_DATA_Pos 0 #define ADC_CDR_DATA_Msk (0x3ffu << ADC_CDR_DATA_Pos) /**< \brief (ADC_CDR[8]) Converted Data */ -/* -------- ADC_ACR : (ADC Offset: 0x94) Analog Control Register -------- */ -#define ADC_ACR_IBCTL_Pos 8 -#define ADC_ACR_IBCTL_Msk (0x3u << ADC_ACR_IBCTL_Pos) /**< \brief (ADC_ACR) ADC Bias Current Control */ -#define ADC_ACR_IBCTL(value) ((ADC_ACR_IBCTL_Msk & ((value) << ADC_ACR_IBCTL_Pos))) /* -------- ADC_RPR : (ADC Offset: 0x100) Receive Pointer Register -------- */ #define ADC_RPR_RXPTR_Pos 0 #define ADC_RPR_RXPTR_Msk (0xffffffffu << ADC_RPR_RXPTR_Pos) /**< \brief (ADC_RPR) Receive Pointer Register */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/adc12b.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_adc12b.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/adc12b.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_adc12b.h index 11ca0601b..76bc0d9d3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/adc12b.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_adc12b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_ADC12B_COMPONENT_ #define _SAM3U_ADC12B_COMPONENT_ @@ -49,8 +76,6 @@ typedef struct { #define ADC12B_MR_TRGSEL_Msk (0x7u << ADC12B_MR_TRGSEL_Pos) /**< \brief (ADC12B_MR) Trigger Selection */ #define ADC12B_MR_TRGSEL(value) ((ADC12B_MR_TRGSEL_Msk & ((value) << ADC12B_MR_TRGSEL_Pos))) #define ADC12B_MR_LOWRES (0x1u << 4) /**< \brief (ADC12B_MR) Resolution */ -#define ADC12B_MR_LOWRES_BITS_12 (0x0u << 4) /**< \brief (ADC_MR) 12-bit resolution */ -#define ADC12B_MR_LOWRES_BITS_10 (0x1u << 4) /**< \brief (ADC_MR) 10-bit resolution */ #define ADC12B_MR_SLEEP (0x1u << 5) /**< \brief (ADC12B_MR) Sleep Mode */ #define ADC12B_MR_PRESCAL_Pos 8 #define ADC12B_MR_PRESCAL_Msk (0xffu << ADC12B_MR_PRESCAL_Pos) /**< \brief (ADC12B_MR) Prescaler Rate Selection */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/chipid.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_chipid.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/chipid.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_chipid.h index ff7e50857..19949240b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/chipid.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_chipid.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_CHIPID_COMPONENT_ #define _SAM3U_CHIPID_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/dmac.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_dmac.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/dmac.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_dmac.h index 1ed2db83c..c15eafe73 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/dmac.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_dmac.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_DMAC_COMPONENT_ #define _SAM3U_DMAC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/efc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_efc.h similarity index 63% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/efc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_efc.h index c8304b34a..03ecd9d1d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/efc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_efc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_EFC_COMPONENT_ #define _SAM3U_EFC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_gpbr.h new file mode 100644 index 000000000..03449f32f --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_gpbr.h @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_GPBR_COMPONENT_ +#define _SAM3U_GPBR_COMPONENT_ + +/* ============================================================================= */ +/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ +/* ============================================================================= */ +/** \addtogroup SAM3U_GPBR General Purpose Backup Register */ +/*@{*/ + +#ifndef __ASSEMBLY__ +/** \brief Gpbr hardware registers */ +typedef struct { + RwReg SYS_GPBR[4]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ +} Gpbr; +#endif /* __ASSEMBLY__ */ +/* -------- SYS_GPBR[4] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ +#define SYS_GPBR_GPBR_VALUE_Pos 0 +#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[4]) Value of GPBR x */ +#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) + +/*@}*/ + + +#endif /* _SAM3U_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_hsmci.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_hsmci.h index 641db561b..d42208d2f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_HSMCI_COMPONENT_ #define _SAM3U_HSMCI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/matrix.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_matrix.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_matrix.h index aab3aff3b..5d4c5616b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_MATRIX_COMPONENT_ #define _SAM3U_MATRIX_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pdc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pdc.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/pdc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pdc.h index 861c2d36c..373accd4e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pdc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pdc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PDC_COMPONENT_ #define _SAM3U_PDC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pio.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pio.h similarity index 98% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/pio.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pio.h index 7afdd7f94..8a65ee762 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pio.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pio.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PIO_COMPONENT_ #define _SAM3U_PIO_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pmc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pmc.h new file mode 100644 index 000000000..8bc0ffd80 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pmc.h @@ -0,0 +1,340 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PMC_COMPONENT_ +#define _SAM3U_PMC_COMPONENT_ + +/* ============================================================================= */ +/** SOFTWARE API DEFINITION FOR Power Management Controller */ +/* ============================================================================= */ +/** \addtogroup SAM3U_PMC Power Management Controller */ +/*@{*/ + +#ifndef __ASSEMBLY__ +/** \brief Pmc hardware registers */ +typedef struct { + WoReg PMC_SCER; /**< \brief (Pmc Offset: 0x0000) System Clock Enable Register */ + WoReg PMC_SCDR; /**< \brief (Pmc Offset: 0x0004) System Clock Disable Register */ + RoReg PMC_SCSR; /**< \brief (Pmc Offset: 0x0008) System Clock Status Register */ + RoReg Reserved1[1]; + WoReg PMC_PCER0; /**< \brief (Pmc Offset: 0x0010) Peripheral Clock Enable Register 0 */ + WoReg PMC_PCDR0; /**< \brief (Pmc Offset: 0x0014) Peripheral Clock Disable Register 0 */ + RoReg PMC_PCSR0; /**< \brief (Pmc Offset: 0x0018) Peripheral Clock Status Register 0 */ + RwReg CKGR_UCKR; /**< \brief (Pmc Offset: 0x001C) UTMI Clock Register */ + RwReg CKGR_MOR; /**< \brief (Pmc Offset: 0x0020) Main Oscillator Register */ + RoReg CKGR_MCFR; /**< \brief (Pmc Offset: 0x0024) Main Clock Frequency Register */ + RwReg CKGR_PLLAR; /**< \brief (Pmc Offset: 0x0028) PLLA Register */ + RoReg Reserved2[1]; + RwReg PMC_MCKR; /**< \brief (Pmc Offset: 0x0030) Master Clock Register */ + RoReg Reserved3[3]; + RwReg PMC_PCK[3]; /**< \brief (Pmc Offset: 0x0040) Programmable Clock 0 Register */ + RoReg Reserved4[5]; + WoReg PMC_IER; /**< \brief (Pmc Offset: 0x0060) Interrupt Enable Register */ + WoReg PMC_IDR; /**< \brief (Pmc Offset: 0x0064) Interrupt Disable Register */ + RoReg PMC_SR; /**< \brief (Pmc Offset: 0x0068) Status Register */ + RoReg PMC_IMR; /**< \brief (Pmc Offset: 0x006C) Interrupt Mask Register */ + RwReg PMC_FSMR; /**< \brief (Pmc Offset: 0x0070) Fast Startup Mode Register */ + RwReg PMC_FSPR; /**< \brief (Pmc Offset: 0x0074) Fast Startup Polarity Register */ + WoReg PMC_FOCR; /**< \brief (Pmc Offset: 0x0078) Fault Output Clear Register */ + RoReg Reserved5[26]; + RwReg PMC_WPMR; /**< \brief (Pmc Offset: 0x00E4) Write Protect Mode Register */ + RoReg PMC_WPSR; /**< \brief (Pmc Offset: 0x00E8) Write Protect Status Register */ + RoReg Reserved6[9]; + RwReg PMC_OCR; /**< \brief (Pmc Offset: 0x0110) Oscillator Calibration Register */ +} Pmc; +#endif /* __ASSEMBLY__ */ +/* -------- PMC_SCER : (PMC Offset: 0x0000) System Clock Enable Register -------- */ +#define PMC_SCER_PCK0 (0x1u << 8) /**< \brief (PMC_SCER) Programmable Clock 0 Output Enable */ +#define PMC_SCER_PCK1 (0x1u << 9) /**< \brief (PMC_SCER) Programmable Clock 1 Output Enable */ +#define PMC_SCER_PCK2 (0x1u << 10) /**< \brief (PMC_SCER) Programmable Clock 2 Output Enable */ +/* -------- PMC_SCDR : (PMC Offset: 0x0004) System Clock Disable Register -------- */ +#define PMC_SCDR_PCK0 (0x1u << 8) /**< \brief (PMC_SCDR) Programmable Clock 0 Output Disable */ +#define PMC_SCDR_PCK1 (0x1u << 9) /**< \brief (PMC_SCDR) Programmable Clock 1 Output Disable */ +#define PMC_SCDR_PCK2 (0x1u << 10) /**< \brief (PMC_SCDR) Programmable Clock 2 Output Disable */ +/* -------- PMC_SCSR : (PMC Offset: 0x0008) System Clock Status Register -------- */ +#define PMC_SCSR_PCK0 (0x1u << 8) /**< \brief (PMC_SCSR) Programmable Clock 0 Output Status */ +#define PMC_SCSR_PCK1 (0x1u << 9) /**< \brief (PMC_SCSR) Programmable Clock 1 Output Status */ +#define PMC_SCSR_PCK2 (0x1u << 10) /**< \brief (PMC_SCSR) Programmable Clock 2 Output Status */ +/* -------- PMC_PCER0 : (PMC Offset: 0x0010) Peripheral Clock Enable Register 0 -------- */ +#define PMC_PCER0_PID2 (0x1u << 2) /**< \brief (PMC_PCER0) Peripheral Clock 2 Enable */ +#define PMC_PCER0_PID3 (0x1u << 3) /**< \brief (PMC_PCER0) Peripheral Clock 3 Enable */ +#define PMC_PCER0_PID4 (0x1u << 4) /**< \brief (PMC_PCER0) Peripheral Clock 4 Enable */ +#define PMC_PCER0_PID5 (0x1u << 5) /**< \brief (PMC_PCER0) Peripheral Clock 5 Enable */ +#define PMC_PCER0_PID6 (0x1u << 6) /**< \brief (PMC_PCER0) Peripheral Clock 6 Enable */ +#define PMC_PCER0_PID7 (0x1u << 7) /**< \brief (PMC_PCER0) Peripheral Clock 7 Enable */ +#define PMC_PCER0_PID8 (0x1u << 8) /**< \brief (PMC_PCER0) Peripheral Clock 8 Enable */ +#define PMC_PCER0_PID9 (0x1u << 9) /**< \brief (PMC_PCER0) Peripheral Clock 9 Enable */ +#define PMC_PCER0_PID10 (0x1u << 10) /**< \brief (PMC_PCER0) Peripheral Clock 10 Enable */ +#define PMC_PCER0_PID11 (0x1u << 11) /**< \brief (PMC_PCER0) Peripheral Clock 11 Enable */ +#define PMC_PCER0_PID12 (0x1u << 12) /**< \brief (PMC_PCER0) Peripheral Clock 12 Enable */ +#define PMC_PCER0_PID13 (0x1u << 13) /**< \brief (PMC_PCER0) Peripheral Clock 13 Enable */ +#define PMC_PCER0_PID14 (0x1u << 14) /**< \brief (PMC_PCER0) Peripheral Clock 14 Enable */ +#define PMC_PCER0_PID15 (0x1u << 15) /**< \brief (PMC_PCER0) Peripheral Clock 15 Enable */ +#define PMC_PCER0_PID16 (0x1u << 16) /**< \brief (PMC_PCER0) Peripheral Clock 16 Enable */ +#define PMC_PCER0_PID17 (0x1u << 17) /**< \brief (PMC_PCER0) Peripheral Clock 17 Enable */ +#define PMC_PCER0_PID18 (0x1u << 18) /**< \brief (PMC_PCER0) Peripheral Clock 18 Enable */ +#define PMC_PCER0_PID19 (0x1u << 19) /**< \brief (PMC_PCER0) Peripheral Clock 19 Enable */ +#define PMC_PCER0_PID20 (0x1u << 20) /**< \brief (PMC_PCER0) Peripheral Clock 20 Enable */ +#define PMC_PCER0_PID21 (0x1u << 21) /**< \brief (PMC_PCER0) Peripheral Clock 21 Enable */ +#define PMC_PCER0_PID22 (0x1u << 22) /**< \brief (PMC_PCER0) Peripheral Clock 22 Enable */ +#define PMC_PCER0_PID23 (0x1u << 23) /**< \brief (PMC_PCER0) Peripheral Clock 23 Enable */ +#define PMC_PCER0_PID24 (0x1u << 24) /**< \brief (PMC_PCER0) Peripheral Clock 24 Enable */ +#define PMC_PCER0_PID25 (0x1u << 25) /**< \brief (PMC_PCER0) Peripheral Clock 25 Enable */ +#define PMC_PCER0_PID26 (0x1u << 26) /**< \brief (PMC_PCER0) Peripheral Clock 26 Enable */ +#define PMC_PCER0_PID27 (0x1u << 27) /**< \brief (PMC_PCER0) Peripheral Clock 27 Enable */ +#define PMC_PCER0_PID28 (0x1u << 28) /**< \brief (PMC_PCER0) Peripheral Clock 28 Enable */ +#define PMC_PCER0_PID29 (0x1u << 29) /**< \brief (PMC_PCER0) Peripheral Clock 29 Enable */ +#define PMC_PCER0_PID30 (0x1u << 30) /**< \brief (PMC_PCER0) Peripheral Clock 30 Enable */ +#define PMC_PCER0_PID31 (0x1u << 31) /**< \brief (PMC_PCER0) Peripheral Clock 31 Enable */ +/* -------- PMC_PCDR0 : (PMC Offset: 0x0014) Peripheral Clock Disable Register 0 -------- */ +#define PMC_PCDR0_PID2 (0x1u << 2) /**< \brief (PMC_PCDR0) Peripheral Clock 2 Disable */ +#define PMC_PCDR0_PID3 (0x1u << 3) /**< \brief (PMC_PCDR0) Peripheral Clock 3 Disable */ +#define PMC_PCDR0_PID4 (0x1u << 4) /**< \brief (PMC_PCDR0) Peripheral Clock 4 Disable */ +#define PMC_PCDR0_PID5 (0x1u << 5) /**< \brief (PMC_PCDR0) Peripheral Clock 5 Disable */ +#define PMC_PCDR0_PID6 (0x1u << 6) /**< \brief (PMC_PCDR0) Peripheral Clock 6 Disable */ +#define PMC_PCDR0_PID7 (0x1u << 7) /**< \brief (PMC_PCDR0) Peripheral Clock 7 Disable */ +#define PMC_PCDR0_PID8 (0x1u << 8) /**< \brief (PMC_PCDR0) Peripheral Clock 8 Disable */ +#define PMC_PCDR0_PID9 (0x1u << 9) /**< \brief (PMC_PCDR0) Peripheral Clock 9 Disable */ +#define PMC_PCDR0_PID10 (0x1u << 10) /**< \brief (PMC_PCDR0) Peripheral Clock 10 Disable */ +#define PMC_PCDR0_PID11 (0x1u << 11) /**< \brief (PMC_PCDR0) Peripheral Clock 11 Disable */ +#define PMC_PCDR0_PID12 (0x1u << 12) /**< \brief (PMC_PCDR0) Peripheral Clock 12 Disable */ +#define PMC_PCDR0_PID13 (0x1u << 13) /**< \brief (PMC_PCDR0) Peripheral Clock 13 Disable */ +#define PMC_PCDR0_PID14 (0x1u << 14) /**< \brief (PMC_PCDR0) Peripheral Clock 14 Disable */ +#define PMC_PCDR0_PID15 (0x1u << 15) /**< \brief (PMC_PCDR0) Peripheral Clock 15 Disable */ +#define PMC_PCDR0_PID16 (0x1u << 16) /**< \brief (PMC_PCDR0) Peripheral Clock 16 Disable */ +#define PMC_PCDR0_PID17 (0x1u << 17) /**< \brief (PMC_PCDR0) Peripheral Clock 17 Disable */ +#define PMC_PCDR0_PID18 (0x1u << 18) /**< \brief (PMC_PCDR0) Peripheral Clock 18 Disable */ +#define PMC_PCDR0_PID19 (0x1u << 19) /**< \brief (PMC_PCDR0) Peripheral Clock 19 Disable */ +#define PMC_PCDR0_PID20 (0x1u << 20) /**< \brief (PMC_PCDR0) Peripheral Clock 20 Disable */ +#define PMC_PCDR0_PID21 (0x1u << 21) /**< \brief (PMC_PCDR0) Peripheral Clock 21 Disable */ +#define PMC_PCDR0_PID22 (0x1u << 22) /**< \brief (PMC_PCDR0) Peripheral Clock 22 Disable */ +#define PMC_PCDR0_PID23 (0x1u << 23) /**< \brief (PMC_PCDR0) Peripheral Clock 23 Disable */ +#define PMC_PCDR0_PID24 (0x1u << 24) /**< \brief (PMC_PCDR0) Peripheral Clock 24 Disable */ +#define PMC_PCDR0_PID25 (0x1u << 25) /**< \brief (PMC_PCDR0) Peripheral Clock 25 Disable */ +#define PMC_PCDR0_PID26 (0x1u << 26) /**< \brief (PMC_PCDR0) Peripheral Clock 26 Disable */ +#define PMC_PCDR0_PID27 (0x1u << 27) /**< \brief (PMC_PCDR0) Peripheral Clock 27 Disable */ +#define PMC_PCDR0_PID28 (0x1u << 28) /**< \brief (PMC_PCDR0) Peripheral Clock 28 Disable */ +#define PMC_PCDR0_PID29 (0x1u << 29) /**< \brief (PMC_PCDR0) Peripheral Clock 29 Disable */ +#define PMC_PCDR0_PID30 (0x1u << 30) /**< \brief (PMC_PCDR0) Peripheral Clock 30 Disable */ +#define PMC_PCDR0_PID31 (0x1u << 31) /**< \brief (PMC_PCDR0) Peripheral Clock 31 Disable */ +/* -------- PMC_PCSR0 : (PMC Offset: 0x0018) Peripheral Clock Status Register 0 -------- */ +#define PMC_PCSR0_PID2 (0x1u << 2) /**< \brief (PMC_PCSR0) Peripheral Clock 2 Status */ +#define PMC_PCSR0_PID3 (0x1u << 3) /**< \brief (PMC_PCSR0) Peripheral Clock 3 Status */ +#define PMC_PCSR0_PID4 (0x1u << 4) /**< \brief (PMC_PCSR0) Peripheral Clock 4 Status */ +#define PMC_PCSR0_PID5 (0x1u << 5) /**< \brief (PMC_PCSR0) Peripheral Clock 5 Status */ +#define PMC_PCSR0_PID6 (0x1u << 6) /**< \brief (PMC_PCSR0) Peripheral Clock 6 Status */ +#define PMC_PCSR0_PID7 (0x1u << 7) /**< \brief (PMC_PCSR0) Peripheral Clock 7 Status */ +#define PMC_PCSR0_PID8 (0x1u << 8) /**< \brief (PMC_PCSR0) Peripheral Clock 8 Status */ +#define PMC_PCSR0_PID9 (0x1u << 9) /**< \brief (PMC_PCSR0) Peripheral Clock 9 Status */ +#define PMC_PCSR0_PID10 (0x1u << 10) /**< \brief (PMC_PCSR0) Peripheral Clock 10 Status */ +#define PMC_PCSR0_PID11 (0x1u << 11) /**< \brief (PMC_PCSR0) Peripheral Clock 11 Status */ +#define PMC_PCSR0_PID12 (0x1u << 12) /**< \brief (PMC_PCSR0) Peripheral Clock 12 Status */ +#define PMC_PCSR0_PID13 (0x1u << 13) /**< \brief (PMC_PCSR0) Peripheral Clock 13 Status */ +#define PMC_PCSR0_PID14 (0x1u << 14) /**< \brief (PMC_PCSR0) Peripheral Clock 14 Status */ +#define PMC_PCSR0_PID15 (0x1u << 15) /**< \brief (PMC_PCSR0) Peripheral Clock 15 Status */ +#define PMC_PCSR0_PID16 (0x1u << 16) /**< \brief (PMC_PCSR0) Peripheral Clock 16 Status */ +#define PMC_PCSR0_PID17 (0x1u << 17) /**< \brief (PMC_PCSR0) Peripheral Clock 17 Status */ +#define PMC_PCSR0_PID18 (0x1u << 18) /**< \brief (PMC_PCSR0) Peripheral Clock 18 Status */ +#define PMC_PCSR0_PID19 (0x1u << 19) /**< \brief (PMC_PCSR0) Peripheral Clock 19 Status */ +#define PMC_PCSR0_PID20 (0x1u << 20) /**< \brief (PMC_PCSR0) Peripheral Clock 20 Status */ +#define PMC_PCSR0_PID21 (0x1u << 21) /**< \brief (PMC_PCSR0) Peripheral Clock 21 Status */ +#define PMC_PCSR0_PID22 (0x1u << 22) /**< \brief (PMC_PCSR0) Peripheral Clock 22 Status */ +#define PMC_PCSR0_PID23 (0x1u << 23) /**< \brief (PMC_PCSR0) Peripheral Clock 23 Status */ +#define PMC_PCSR0_PID24 (0x1u << 24) /**< \brief (PMC_PCSR0) Peripheral Clock 24 Status */ +#define PMC_PCSR0_PID25 (0x1u << 25) /**< \brief (PMC_PCSR0) Peripheral Clock 25 Status */ +#define PMC_PCSR0_PID26 (0x1u << 26) /**< \brief (PMC_PCSR0) Peripheral Clock 26 Status */ +#define PMC_PCSR0_PID27 (0x1u << 27) /**< \brief (PMC_PCSR0) Peripheral Clock 27 Status */ +#define PMC_PCSR0_PID28 (0x1u << 28) /**< \brief (PMC_PCSR0) Peripheral Clock 28 Status */ +#define PMC_PCSR0_PID29 (0x1u << 29) /**< \brief (PMC_PCSR0) Peripheral Clock 29 Status */ +#define PMC_PCSR0_PID30 (0x1u << 30) /**< \brief (PMC_PCSR0) Peripheral Clock 30 Status */ +#define PMC_PCSR0_PID31 (0x1u << 31) /**< \brief (PMC_PCSR0) Peripheral Clock 31 Status */ +/* -------- CKGR_UCKR : (PMC Offset: 0x001C) UTMI Clock Register -------- */ +#define CKGR_UCKR_UPLLEN (0x1u << 16) /**< \brief (CKGR_UCKR) UTMI PLL Enable */ +#define CKGR_UCKR_UPLLCOUNT_Pos 20 +#define CKGR_UCKR_UPLLCOUNT_Msk (0xfu << CKGR_UCKR_UPLLCOUNT_Pos) /**< \brief (CKGR_UCKR) UTMI PLL Start-up Time */ +#define CKGR_UCKR_UPLLCOUNT(value) ((CKGR_UCKR_UPLLCOUNT_Msk & ((value) << CKGR_UCKR_UPLLCOUNT_Pos))) +/* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ +#define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ +#define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ +#define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ +#define CKGR_MOR_MOSCRCF_Pos 4 +#define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ +#define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ +#define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ +#define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ +#define CKGR_MOR_MOSCXTST_Pos 8 +#define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ +#define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) +#define CKGR_MOR_KEY_Pos 16 +#define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos) /**< \brief (CKGR_MOR) Password */ +#define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos))) +#define CKGR_MOR_MOSCSEL (0x1u << 24) /**< \brief (CKGR_MOR) Main Oscillator Selection */ +#define CKGR_MOR_CFDEN (0x1u << 25) /**< \brief (CKGR_MOR) Clock Failure Detector Enable */ +/* -------- CKGR_MCFR : (PMC Offset: 0x0024) Main Clock Frequency Register -------- */ +#define CKGR_MCFR_MAINF_Pos 0 +#define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) /**< \brief (CKGR_MCFR) Main Clock Frequency */ +#define CKGR_MCFR_MAINFRDY (0x1u << 16) /**< \brief (CKGR_MCFR) Main Clock Ready */ +/* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */ +#define CKGR_PLLAR_DIVA_Pos 0 +#define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) /**< \brief (CKGR_PLLAR) Divider */ +#define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos))) +#define CKGR_PLLAR_PLLACOUNT_Pos 8 +#define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos) /**< \brief (CKGR_PLLAR) PLLA Counter */ +#define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos))) +#define CKGR_PLLAR_MULA_Pos 16 +#define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ +#define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) +#define CKGR_PLLAR_ONE (0x1u << 29) /**< \brief (CKGR_PLLAR) Must Be Set to 1 */ +/* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */ +#define PMC_MCKR_CSS_Pos 0 +#define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) /**< \brief (PMC_MCKR) Master Clock Source Selection */ +#define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ +#define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ +#define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ +#define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_MCKR) UPLLClock is selected */ +#define PMC_MCKR_PRES_Pos 4 +#define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ +#define PMC_MCKR_PRES_CLK (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ +#define PMC_MCKR_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 2 */ +#define PMC_MCKR_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 4 */ +#define PMC_MCKR_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 8 */ +#define PMC_MCKR_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 16 */ +#define PMC_MCKR_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 32 */ +#define PMC_MCKR_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 64 */ +#define PMC_MCKR_PRES_CLK_3 (0x7u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 3 */ +#define PMC_MCKR_PLLADIV2 (0x1u << 12) /**< \brief (PMC_MCKR) PLLA Divisor by 2 */ +#define PMC_MCKR_UPLLDIV2 (0x1u << 13) /**< \brief (PMC_MCKR) UPLL Divisor by 2 */ +/* -------- PMC_PCK[3] : (PMC Offset: 0x0040) Programmable Clock 0 Register -------- */ +#define PMC_PCK_CSS_Pos 0 +#define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos) /**< \brief (PMC_PCK[3]) Master Clock Source Selection */ +#define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ +#define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ +#define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ +#define PMC_PCK_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) UPLL Clock is selected */ +#define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ +#define PMC_PCK_PRES_Pos 4 +#define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Programmable Clock Prescaler */ +#define PMC_PCK_PRES(value) ((PMC_PCK_PRES_Msk & ((value) << PMC_PCK_PRES_Pos))) +/* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ +#define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ +#define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLLA Lock Interrupt Enable */ +#define PMC_IER_MCKRDY (0x1u << 3) /**< \brief (PMC_IER) Master Clock Ready Interrupt Enable */ +#define PMC_IER_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IER) Programmable Clock Ready 0 Interrupt Enable */ +#define PMC_IER_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IER) Programmable Clock Ready 1 Interrupt Enable */ +#define PMC_IER_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IER) Programmable Clock Ready 2 Interrupt Enable */ +#define PMC_IER_MOSCSELS (0x1u << 16) /**< \brief (PMC_IER) Main Oscillator Selection Status Interrupt Enable */ +#define PMC_IER_MOSCRCS (0x1u << 17) /**< \brief (PMC_IER) Main On-Chip RC Status Interrupt Enable */ +#define PMC_IER_CFDEV (0x1u << 18) /**< \brief (PMC_IER) Clock Failure Detector Event Interrupt Enable */ +/* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */ +#define PMC_IDR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IDR) Main Crystal Oscillator Status Interrupt Disable */ +#define PMC_IDR_LOCKA (0x1u << 1) /**< \brief (PMC_IDR) PLLA Lock Interrupt Disable */ +#define PMC_IDR_MCKRDY (0x1u << 3) /**< \brief (PMC_IDR) Master Clock Ready Interrupt Disable */ +#define PMC_IDR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IDR) Programmable Clock Ready 0 Interrupt Disable */ +#define PMC_IDR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IDR) Programmable Clock Ready 1 Interrupt Disable */ +#define PMC_IDR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IDR) Programmable Clock Ready 2 Interrupt Disable */ +#define PMC_IDR_MOSCSELS (0x1u << 16) /**< \brief (PMC_IDR) Main Oscillator Selection Status Interrupt Disable */ +#define PMC_IDR_MOSCRCS (0x1u << 17) /**< \brief (PMC_IDR) Main On-Chip RC Status Interrupt Disable */ +#define PMC_IDR_CFDEV (0x1u << 18) /**< \brief (PMC_IDR) Clock Failure Detector Event Interrupt Disable */ +/* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */ +#define PMC_SR_MOSCXTS (0x1u << 0) /**< \brief (PMC_SR) Main XTAL Oscillator Status */ +#define PMC_SR_LOCKA (0x1u << 1) /**< \brief (PMC_SR) PLLA Lock Status */ +#define PMC_SR_MCKRDY (0x1u << 3) /**< \brief (PMC_SR) Master Clock Status */ +#define PMC_SR_OSCSELS (0x1u << 7) /**< \brief (PMC_SR) Slow Clock Oscillator Selection */ +#define PMC_SR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_SR) Programmable Clock Ready Status */ +#define PMC_SR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_SR) Programmable Clock Ready Status */ +#define PMC_SR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_SR) Programmable Clock Ready Status */ +#define PMC_SR_MOSCSELS (0x1u << 16) /**< \brief (PMC_SR) Main Oscillator Selection Status */ +#define PMC_SR_MOSCRCS (0x1u << 17) /**< \brief (PMC_SR) Main On-Chip RC Oscillator Status */ +#define PMC_SR_CFDEV (0x1u << 18) /**< \brief (PMC_SR) Clock Failure Detector Event */ +#define PMC_SR_CFDS (0x1u << 19) /**< \brief (PMC_SR) Clock Failure Detector Status */ +#define PMC_SR_FOS (0x1u << 20) /**< \brief (PMC_SR) Clock Failure Detector Fault Output Status */ +/* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */ +#define PMC_IMR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IMR) Main Crystal Oscillator Status Interrupt Mask */ +#define PMC_IMR_LOCKA (0x1u << 1) /**< \brief (PMC_IMR) PLLA Lock Interrupt Mask */ +#define PMC_IMR_MCKRDY (0x1u << 3) /**< \brief (PMC_IMR) Master Clock Ready Interrupt Mask */ +#define PMC_IMR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IMR) Programmable Clock Ready 0 Interrupt Mask */ +#define PMC_IMR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IMR) Programmable Clock Ready 1 Interrupt Mask */ +#define PMC_IMR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IMR) Programmable Clock Ready 2 Interrupt Mask */ +#define PMC_IMR_MOSCSELS (0x1u << 16) /**< \brief (PMC_IMR) Main Oscillator Selection Status Interrupt Mask */ +#define PMC_IMR_MOSCRCS (0x1u << 17) /**< \brief (PMC_IMR) Main On-Chip RC Status Interrupt Mask */ +#define PMC_IMR_CFDEV (0x1u << 18) /**< \brief (PMC_IMR) Clock Failure Detector Event Interrupt Mask */ +/* -------- PMC_FSMR : (PMC Offset: 0x0070) Fast Startup Mode Register -------- */ +#define PMC_FSMR_FSTT0 (0x1u << 0) /**< \brief (PMC_FSMR) Fast Startup Input Enable 0 */ +#define PMC_FSMR_FSTT1 (0x1u << 1) /**< \brief (PMC_FSMR) Fast Startup Input Enable 1 */ +#define PMC_FSMR_FSTT2 (0x1u << 2) /**< \brief (PMC_FSMR) Fast Startup Input Enable 2 */ +#define PMC_FSMR_FSTT3 (0x1u << 3) /**< \brief (PMC_FSMR) Fast Startup Input Enable 3 */ +#define PMC_FSMR_FSTT4 (0x1u << 4) /**< \brief (PMC_FSMR) Fast Startup Input Enable 4 */ +#define PMC_FSMR_FSTT5 (0x1u << 5) /**< \brief (PMC_FSMR) Fast Startup Input Enable 5 */ +#define PMC_FSMR_FSTT6 (0x1u << 6) /**< \brief (PMC_FSMR) Fast Startup Input Enable 6 */ +#define PMC_FSMR_FSTT7 (0x1u << 7) /**< \brief (PMC_FSMR) Fast Startup Input Enable 7 */ +#define PMC_FSMR_FSTT8 (0x1u << 8) /**< \brief (PMC_FSMR) Fast Startup Input Enable 8 */ +#define PMC_FSMR_FSTT9 (0x1u << 9) /**< \brief (PMC_FSMR) Fast Startup Input Enable 9 */ +#define PMC_FSMR_FSTT10 (0x1u << 10) /**< \brief (PMC_FSMR) Fast Startup Input Enable 10 */ +#define PMC_FSMR_FSTT11 (0x1u << 11) /**< \brief (PMC_FSMR) Fast Startup Input Enable 11 */ +#define PMC_FSMR_FSTT12 (0x1u << 12) /**< \brief (PMC_FSMR) Fast Startup Input Enable 12 */ +#define PMC_FSMR_FSTT13 (0x1u << 13) /**< \brief (PMC_FSMR) Fast Startup Input Enable 13 */ +#define PMC_FSMR_FSTT14 (0x1u << 14) /**< \brief (PMC_FSMR) Fast Startup Input Enable 14 */ +#define PMC_FSMR_FSTT15 (0x1u << 15) /**< \brief (PMC_FSMR) Fast Startup Input Enable 15 */ +#define PMC_FSMR_RTTAL (0x1u << 16) /**< \brief (PMC_FSMR) RTT Alarm Enable */ +#define PMC_FSMR_RTCAL (0x1u << 17) /**< \brief (PMC_FSMR) RTC Alarm Enable */ +#define PMC_FSMR_USBAL (0x1u << 18) /**< \brief (PMC_FSMR) USB Alarm Enable */ +#define PMC_FSMR_LPM (0x1u << 20) /**< \brief (PMC_FSMR) Low Power Mode */ +/* -------- PMC_FSPR : (PMC Offset: 0x0074) Fast Startup Polarity Register -------- */ +#define PMC_FSPR_FSTP0 (0x1u << 0) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP1 (0x1u << 1) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP2 (0x1u << 2) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP3 (0x1u << 3) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP4 (0x1u << 4) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP5 (0x1u << 5) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP6 (0x1u << 6) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP7 (0x1u << 7) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP8 (0x1u << 8) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP9 (0x1u << 9) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP10 (0x1u << 10) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP11 (0x1u << 11) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP12 (0x1u << 12) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP13 (0x1u << 13) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP14 (0x1u << 14) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP15 (0x1u << 15) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +/* -------- PMC_FOCR : (PMC Offset: 0x0078) Fault Output Clear Register -------- */ +#define PMC_FOCR_FOCLR (0x1u << 0) /**< \brief (PMC_FOCR) Fault Output Clear */ +/* -------- PMC_WPMR : (PMC Offset: 0x00E4) Write Protect Mode Register -------- */ +#define PMC_WPMR_WPEN (0x1u << 0) /**< \brief (PMC_WPMR) Write Protect Enable */ +#define PMC_WPMR_WPKEY_Pos 8 +#define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos) /**< \brief (PMC_WPMR) Write Protect KEY */ +#define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos))) +/* -------- PMC_WPSR : (PMC Offset: 0x00E8) Write Protect Status Register -------- */ +#define PMC_WPSR_WPVS (0x1u << 0) /**< \brief (PMC_WPSR) Write Protect Violation Status */ +#define PMC_WPSR_WPVSRC_Pos 8 +#define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos) /**< \brief (PMC_WPSR) Write Protect Violation Source */ + +/*@}*/ + + +#endif /* _SAM3U_PMC_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pwm.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pwm.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pwm.h index 1d08a2216..887bb5dff 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PWM_COMPONENT_ #define _SAM3U_PWM_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/rstc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rstc.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/rstc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rstc.h index e84dfc14c..f4800780f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/rstc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rstc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_RSTC_COMPONENT_ #define _SAM3U_RSTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/rtc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rtc.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rtc.h index ffc33521d..61c906158 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_RTC_COMPONENT_ #define _SAM3U_RTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/rtt.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rtt.h similarity index 56% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/rtt.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rtt.h index b0c7abee9..72780b0d6 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/rtt.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_rtt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_RTT_COMPONENT_ #define _SAM3U_RTT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/smc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_smc.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/smc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_smc.h index e2a262886..8effce490 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SMC_COMPONENT_ #define _SAM3U_SMC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/spi.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_spi.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/spi.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_spi.h index 966a6f5f3..152546a63 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SPI_COMPONENT_ #define _SAM3U_SPI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/ssc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_ssc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_ssc.h index 5d085e8b7..d8e36cd59 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SSC_COMPONENT_ #define _SAM3U_SSC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/supc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_supc.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/supc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_supc.h index 7c23a7188..73e7f1fdc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/supc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_supc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SUPC_COMPONENT_ #define _SAM3U_SUPC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/tc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_tc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/tc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_tc.h index 2c3ca7c01..5c046acfb 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/tc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_tc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_TC_COMPONENT_ #define _SAM3U_TC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/twi.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_twi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/twi.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_twi.h index 94077c412..a1816963b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/twi.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_twi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_TWI_COMPONENT_ #define _SAM3U_TWI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/uart.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_uart.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/uart.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_uart.h index 25f1b492b..87cc4c1a4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_UART_COMPONENT_ #define _SAM3U_UART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/udphs.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_udphs.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/udphs.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_udphs.h index 2bef71cce..f80d3d6c2 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/udphs.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_udphs.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_UDPHS_COMPONENT_ #define _SAM3U_UDPHS_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/usart.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_usart.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/usart.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_usart.h index 11a0752a2..e90aa6191 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/usart.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_usart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_USART_COMPONENT_ #define _SAM3U_USART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/wdt.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_wdt.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3u/include/component/wdt.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/component/component_wdt.h index 622cc21c6..bcf3f478f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/wdt.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/component/component_wdt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_WDT_COMPONENT_ #define _SAM3U_WDT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/gpbr.h deleted file mode 100644 index 5d6b487d8..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/gpbr.h +++ /dev/null @@ -1,26 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_GPBR_COMPONENT_ -#define _SAM3U_GPBR_COMPONENT_ - -/* ============================================================================= */ -/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ -/* ============================================================================= */ -/** \addtogroup SAM3U_GPBR General Purpose Backup Register */ -/*@{*/ - -#ifndef __ASSEMBLY__ -/** \brief Gpbr hardware registers */ -typedef struct { - RwReg SYS_GPBR[4]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ -} Gpbr; -#endif /* __ASSEMBLY__ */ -/* -------- SYS_GPBR[4] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ -#define SYS_GPBR_GPBR_VALUE_Pos 0 -#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[4]) Value of GPBR x */ -#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) - -/*@}*/ - - -#endif /* _SAM3U_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pmc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/component/pmc.h deleted file mode 100644 index a8b8ed77f..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/component/pmc.h +++ /dev/null @@ -1,327 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_PMC_COMPONENT_ -#define _SAM3U_PMC_COMPONENT_ - -/* ============================================================================= */ -/** SOFTWARE API DEFINITION FOR Power Management Controller */ -/* ============================================================================= */ -/** \addtogroup SAM3U_PMC Power Management Controller */ -/*@{*/ - -#ifndef __ASSEMBLY__ -/** \brief Pmc hardware registers */ -typedef struct { - WoReg PMC_SCER; /**< \brief (Pmc Offset: 0x0000) System Clock Enable Register */ - WoReg PMC_SCDR; /**< \brief (Pmc Offset: 0x0004) System Clock Disable Register */ - RoReg PMC_SCSR; /**< \brief (Pmc Offset: 0x0008) System Clock Status Register */ - RoReg Reserved1[1]; - WoReg PMC_PCER; /**< \brief (Pmc Offset: 0x0010) Peripheral Clock Enable Register */ - WoReg PMC_PCDR; /**< \brief (Pmc Offset: 0x0014) Peripheral Clock Disable Register */ - RoReg PMC_PCSR; /**< \brief (Pmc Offset: 0x0018) Peripheral Clock Status Register */ - RwReg CKGR_UCKR; /**< \brief (Pmc Offset: 0x001C) UTMI Clock Register */ - RwReg CKGR_MOR; /**< \brief (Pmc Offset: 0x0020) Main Oscillator Register */ - RoReg CKGR_MCFR; /**< \brief (Pmc Offset: 0x0024) Main Clock Frequency Register */ - RwReg CKGR_PLLAR; /**< \brief (Pmc Offset: 0x0028) PLLA Register */ - RoReg Reserved2[1]; - RwReg PMC_MCKR; /**< \brief (Pmc Offset: 0x0030) Master Clock Register */ - RoReg Reserved3[3]; - RwReg PMC_PCK[3]; /**< \brief (Pmc Offset: 0x0040) Programmable Clock 0 Register */ - RoReg Reserved4[5]; - WoReg PMC_IER; /**< \brief (Pmc Offset: 0x0060) Interrupt Enable Register */ - WoReg PMC_IDR; /**< \brief (Pmc Offset: 0x0064) Interrupt Disable Register */ - RoReg PMC_SR; /**< \brief (Pmc Offset: 0x0068) Status Register */ - RoReg PMC_IMR; /**< \brief (Pmc Offset: 0x006C) Interrupt Mask Register */ - RwReg PMC_FSMR; /**< \brief (Pmc Offset: 0x0070) Fast Startup Mode Register */ - RwReg PMC_FSPR; /**< \brief (Pmc Offset: 0x0074) Fast Startup Polarity Register */ - WoReg PMC_FOCR; /**< \brief (Pmc Offset: 0x0078) Fault Output Clear Register */ - RoReg Reserved5[26]; - RwReg PMC_WPMR; /**< \brief (Pmc Offset: 0xE4) Write Protect Mode Register */ - RoReg PMC_WPSR; /**< \brief (Pmc Offset: 0xE8) Write Protect Status Register */ -} Pmc; -#endif /* __ASSEMBLY__ */ -/* -------- PMC_SCER : (PMC Offset: 0x0000) System Clock Enable Register -------- */ -#define PMC_SCER_PCK0 (0x1u << 8) /**< \brief (PMC_SCER) Programmable Clock 0 Output Enable */ -#define PMC_SCER_PCK1 (0x1u << 9) /**< \brief (PMC_SCER) Programmable Clock 1 Output Enable */ -#define PMC_SCER_PCK2 (0x1u << 10) /**< \brief (PMC_SCER) Programmable Clock 2 Output Enable */ -/* -------- PMC_SCDR : (PMC Offset: 0x0004) System Clock Disable Register -------- */ -#define PMC_SCDR_PCK0 (0x1u << 8) /**< \brief (PMC_SCDR) Programmable Clock 0 Output Disable */ -#define PMC_SCDR_PCK1 (0x1u << 9) /**< \brief (PMC_SCDR) Programmable Clock 1 Output Disable */ -#define PMC_SCDR_PCK2 (0x1u << 10) /**< \brief (PMC_SCDR) Programmable Clock 2 Output Disable */ -/* -------- PMC_SCSR : (PMC Offset: 0x0008) System Clock Status Register -------- */ -#define PMC_SCSR_PCK0 (0x1u << 8) /**< \brief (PMC_SCSR) Programmable Clock 0 Output Status */ -#define PMC_SCSR_PCK1 (0x1u << 9) /**< \brief (PMC_SCSR) Programmable Clock 1 Output Status */ -#define PMC_SCSR_PCK2 (0x1u << 10) /**< \brief (PMC_SCSR) Programmable Clock 2 Output Status */ -/* -------- PMC_PCER : (PMC Offset: 0x0010) Peripheral Clock Enable Register -------- */ -#define PMC_PCER_PID2 (0x1u << 2) /**< \brief (PMC_PCER) Peripheral Clock 2 Enable */ -#define PMC_PCER_PID3 (0x1u << 3) /**< \brief (PMC_PCER) Peripheral Clock 3 Enable */ -#define PMC_PCER_PID4 (0x1u << 4) /**< \brief (PMC_PCER) Peripheral Clock 4 Enable */ -#define PMC_PCER_PID5 (0x1u << 5) /**< \brief (PMC_PCER) Peripheral Clock 5 Enable */ -#define PMC_PCER_PID6 (0x1u << 6) /**< \brief (PMC_PCER) Peripheral Clock 6 Enable */ -#define PMC_PCER_PID7 (0x1u << 7) /**< \brief (PMC_PCER) Peripheral Clock 7 Enable */ -#define PMC_PCER_PID8 (0x1u << 8) /**< \brief (PMC_PCER) Peripheral Clock 8 Enable */ -#define PMC_PCER_PID9 (0x1u << 9) /**< \brief (PMC_PCER) Peripheral Clock 9 Enable */ -#define PMC_PCER_PID10 (0x1u << 10) /**< \brief (PMC_PCER) Peripheral Clock 10 Enable */ -#define PMC_PCER_PID11 (0x1u << 11) /**< \brief (PMC_PCER) Peripheral Clock 11 Enable */ -#define PMC_PCER_PID12 (0x1u << 12) /**< \brief (PMC_PCER) Peripheral Clock 12 Enable */ -#define PMC_PCER_PID13 (0x1u << 13) /**< \brief (PMC_PCER) Peripheral Clock 13 Enable */ -#define PMC_PCER_PID14 (0x1u << 14) /**< \brief (PMC_PCER) Peripheral Clock 14 Enable */ -#define PMC_PCER_PID15 (0x1u << 15) /**< \brief (PMC_PCER) Peripheral Clock 15 Enable */ -#define PMC_PCER_PID16 (0x1u << 16) /**< \brief (PMC_PCER) Peripheral Clock 16 Enable */ -#define PMC_PCER_PID17 (0x1u << 17) /**< \brief (PMC_PCER) Peripheral Clock 17 Enable */ -#define PMC_PCER_PID18 (0x1u << 18) /**< \brief (PMC_PCER) Peripheral Clock 18 Enable */ -#define PMC_PCER_PID19 (0x1u << 19) /**< \brief (PMC_PCER) Peripheral Clock 19 Enable */ -#define PMC_PCER_PID20 (0x1u << 20) /**< \brief (PMC_PCER) Peripheral Clock 20 Enable */ -#define PMC_PCER_PID21 (0x1u << 21) /**< \brief (PMC_PCER) Peripheral Clock 21 Enable */ -#define PMC_PCER_PID22 (0x1u << 22) /**< \brief (PMC_PCER) Peripheral Clock 22 Enable */ -#define PMC_PCER_PID23 (0x1u << 23) /**< \brief (PMC_PCER) Peripheral Clock 23 Enable */ -#define PMC_PCER_PID24 (0x1u << 24) /**< \brief (PMC_PCER) Peripheral Clock 24 Enable */ -#define PMC_PCER_PID25 (0x1u << 25) /**< \brief (PMC_PCER) Peripheral Clock 25 Enable */ -#define PMC_PCER_PID26 (0x1u << 26) /**< \brief (PMC_PCER) Peripheral Clock 26 Enable */ -#define PMC_PCER_PID27 (0x1u << 27) /**< \brief (PMC_PCER) Peripheral Clock 27 Enable */ -#define PMC_PCER_PID28 (0x1u << 28) /**< \brief (PMC_PCER) Peripheral Clock 28 Enable */ -#define PMC_PCER_PID29 (0x1u << 29) /**< \brief (PMC_PCER) Peripheral Clock 29 Enable */ -#define PMC_PCER_PID30 (0x1u << 30) /**< \brief (PMC_PCER) Peripheral Clock 30 Enable */ -#define PMC_PCER_PID31 (0x1u << 31) /**< \brief (PMC_PCER) Peripheral Clock 31 Enable */ -/* -------- PMC_PCDR : (PMC Offset: 0x0014) Peripheral Clock Disable Register -------- */ -#define PMC_PCDR_PID2 (0x1u << 2) /**< \brief (PMC_PCDR) Peripheral Clock 2 Disable */ -#define PMC_PCDR_PID3 (0x1u << 3) /**< \brief (PMC_PCDR) Peripheral Clock 3 Disable */ -#define PMC_PCDR_PID4 (0x1u << 4) /**< \brief (PMC_PCDR) Peripheral Clock 4 Disable */ -#define PMC_PCDR_PID5 (0x1u << 5) /**< \brief (PMC_PCDR) Peripheral Clock 5 Disable */ -#define PMC_PCDR_PID6 (0x1u << 6) /**< \brief (PMC_PCDR) Peripheral Clock 6 Disable */ -#define PMC_PCDR_PID7 (0x1u << 7) /**< \brief (PMC_PCDR) Peripheral Clock 7 Disable */ -#define PMC_PCDR_PID8 (0x1u << 8) /**< \brief (PMC_PCDR) Peripheral Clock 8 Disable */ -#define PMC_PCDR_PID9 (0x1u << 9) /**< \brief (PMC_PCDR) Peripheral Clock 9 Disable */ -#define PMC_PCDR_PID10 (0x1u << 10) /**< \brief (PMC_PCDR) Peripheral Clock 10 Disable */ -#define PMC_PCDR_PID11 (0x1u << 11) /**< \brief (PMC_PCDR) Peripheral Clock 11 Disable */ -#define PMC_PCDR_PID12 (0x1u << 12) /**< \brief (PMC_PCDR) Peripheral Clock 12 Disable */ -#define PMC_PCDR_PID13 (0x1u << 13) /**< \brief (PMC_PCDR) Peripheral Clock 13 Disable */ -#define PMC_PCDR_PID14 (0x1u << 14) /**< \brief (PMC_PCDR) Peripheral Clock 14 Disable */ -#define PMC_PCDR_PID15 (0x1u << 15) /**< \brief (PMC_PCDR) Peripheral Clock 15 Disable */ -#define PMC_PCDR_PID16 (0x1u << 16) /**< \brief (PMC_PCDR) Peripheral Clock 16 Disable */ -#define PMC_PCDR_PID17 (0x1u << 17) /**< \brief (PMC_PCDR) Peripheral Clock 17 Disable */ -#define PMC_PCDR_PID18 (0x1u << 18) /**< \brief (PMC_PCDR) Peripheral Clock 18 Disable */ -#define PMC_PCDR_PID19 (0x1u << 19) /**< \brief (PMC_PCDR) Peripheral Clock 19 Disable */ -#define PMC_PCDR_PID20 (0x1u << 20) /**< \brief (PMC_PCDR) Peripheral Clock 20 Disable */ -#define PMC_PCDR_PID21 (0x1u << 21) /**< \brief (PMC_PCDR) Peripheral Clock 21 Disable */ -#define PMC_PCDR_PID22 (0x1u << 22) /**< \brief (PMC_PCDR) Peripheral Clock 22 Disable */ -#define PMC_PCDR_PID23 (0x1u << 23) /**< \brief (PMC_PCDR) Peripheral Clock 23 Disable */ -#define PMC_PCDR_PID24 (0x1u << 24) /**< \brief (PMC_PCDR) Peripheral Clock 24 Disable */ -#define PMC_PCDR_PID25 (0x1u << 25) /**< \brief (PMC_PCDR) Peripheral Clock 25 Disable */ -#define PMC_PCDR_PID26 (0x1u << 26) /**< \brief (PMC_PCDR) Peripheral Clock 26 Disable */ -#define PMC_PCDR_PID27 (0x1u << 27) /**< \brief (PMC_PCDR) Peripheral Clock 27 Disable */ -#define PMC_PCDR_PID28 (0x1u << 28) /**< \brief (PMC_PCDR) Peripheral Clock 28 Disable */ -#define PMC_PCDR_PID29 (0x1u << 29) /**< \brief (PMC_PCDR) Peripheral Clock 29 Disable */ -#define PMC_PCDR_PID30 (0x1u << 30) /**< \brief (PMC_PCDR) Peripheral Clock 30 Disable */ -#define PMC_PCDR_PID31 (0x1u << 31) /**< \brief (PMC_PCDR) Peripheral Clock 31 Disable */ -/* -------- PMC_PCSR : (PMC Offset: 0x0018) Peripheral Clock Status Register -------- */ -#define PMC_PCSR_PID2 (0x1u << 2) /**< \brief (PMC_PCSR) Peripheral Clock 2 Status */ -#define PMC_PCSR_PID3 (0x1u << 3) /**< \brief (PMC_PCSR) Peripheral Clock 3 Status */ -#define PMC_PCSR_PID4 (0x1u << 4) /**< \brief (PMC_PCSR) Peripheral Clock 4 Status */ -#define PMC_PCSR_PID5 (0x1u << 5) /**< \brief (PMC_PCSR) Peripheral Clock 5 Status */ -#define PMC_PCSR_PID6 (0x1u << 6) /**< \brief (PMC_PCSR) Peripheral Clock 6 Status */ -#define PMC_PCSR_PID7 (0x1u << 7) /**< \brief (PMC_PCSR) Peripheral Clock 7 Status */ -#define PMC_PCSR_PID8 (0x1u << 8) /**< \brief (PMC_PCSR) Peripheral Clock 8 Status */ -#define PMC_PCSR_PID9 (0x1u << 9) /**< \brief (PMC_PCSR) Peripheral Clock 9 Status */ -#define PMC_PCSR_PID10 (0x1u << 10) /**< \brief (PMC_PCSR) Peripheral Clock 10 Status */ -#define PMC_PCSR_PID11 (0x1u << 11) /**< \brief (PMC_PCSR) Peripheral Clock 11 Status */ -#define PMC_PCSR_PID12 (0x1u << 12) /**< \brief (PMC_PCSR) Peripheral Clock 12 Status */ -#define PMC_PCSR_PID13 (0x1u << 13) /**< \brief (PMC_PCSR) Peripheral Clock 13 Status */ -#define PMC_PCSR_PID14 (0x1u << 14) /**< \brief (PMC_PCSR) Peripheral Clock 14 Status */ -#define PMC_PCSR_PID15 (0x1u << 15) /**< \brief (PMC_PCSR) Peripheral Clock 15 Status */ -#define PMC_PCSR_PID16 (0x1u << 16) /**< \brief (PMC_PCSR) Peripheral Clock 16 Status */ -#define PMC_PCSR_PID17 (0x1u << 17) /**< \brief (PMC_PCSR) Peripheral Clock 17 Status */ -#define PMC_PCSR_PID18 (0x1u << 18) /**< \brief (PMC_PCSR) Peripheral Clock 18 Status */ -#define PMC_PCSR_PID19 (0x1u << 19) /**< \brief (PMC_PCSR) Peripheral Clock 19 Status */ -#define PMC_PCSR_PID20 (0x1u << 20) /**< \brief (PMC_PCSR) Peripheral Clock 20 Status */ -#define PMC_PCSR_PID21 (0x1u << 21) /**< \brief (PMC_PCSR) Peripheral Clock 21 Status */ -#define PMC_PCSR_PID22 (0x1u << 22) /**< \brief (PMC_PCSR) Peripheral Clock 22 Status */ -#define PMC_PCSR_PID23 (0x1u << 23) /**< \brief (PMC_PCSR) Peripheral Clock 23 Status */ -#define PMC_PCSR_PID24 (0x1u << 24) /**< \brief (PMC_PCSR) Peripheral Clock 24 Status */ -#define PMC_PCSR_PID25 (0x1u << 25) /**< \brief (PMC_PCSR) Peripheral Clock 25 Status */ -#define PMC_PCSR_PID26 (0x1u << 26) /**< \brief (PMC_PCSR) Peripheral Clock 26 Status */ -#define PMC_PCSR_PID27 (0x1u << 27) /**< \brief (PMC_PCSR) Peripheral Clock 27 Status */ -#define PMC_PCSR_PID28 (0x1u << 28) /**< \brief (PMC_PCSR) Peripheral Clock 28 Status */ -#define PMC_PCSR_PID29 (0x1u << 29) /**< \brief (PMC_PCSR) Peripheral Clock 29 Status */ -#define PMC_PCSR_PID30 (0x1u << 30) /**< \brief (PMC_PCSR) Peripheral Clock 30 Status */ -#define PMC_PCSR_PID31 (0x1u << 31) /**< \brief (PMC_PCSR) Peripheral Clock 31 Status */ -/* -------- CKGR_UCKR : (PMC Offset: 0x001C) UTMI Clock Register -------- */ -#define CKGR_UCKR_UPLLEN (0x1u << 16) /**< \brief (CKGR_UCKR) UTMI PLL Enable */ -#define CKGR_UCKR_UPLLCOUNT_Pos 20 -#define CKGR_UCKR_UPLLCOUNT_Msk (0xfu << CKGR_UCKR_UPLLCOUNT_Pos) /**< \brief (CKGR_UCKR) UTMI PLL Start-up Time */ -#define CKGR_UCKR_UPLLCOUNT(value) ((CKGR_UCKR_UPLLCOUNT_Msk & ((value) << CKGR_UCKR_UPLLCOUNT_Pos))) -/* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ -#define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ -#define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ -#define CKGR_MOR_WAITMODE (0x1u << 2) /**< \brief (CKGR_MOR) Wait Mode Command */ -#define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ -#define CKGR_MOR_MOSCRCF_Pos 4 -#define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ -#define CKGR_MOR_MOSCRCF_4MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ -#define CKGR_MOR_MOSCRCF_8MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ -#define CKGR_MOR_MOSCRCF_12MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ -#define CKGR_MOR_MOSCRCF(value) ((CKGR_MOR_MOSCRCF_Msk & ((value) << CKGR_MOR_MOSCRCF_Pos))) -#define CKGR_MOR_MOSCXTST_Pos 8 -#define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ -#define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) -#define CKGR_MOR_KEY_Pos 16 -#define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos) /**< \brief (CKGR_MOR) Password */ -#define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos))) -#define CKGR_MOR_MOSCSEL (0x1u << 24) /**< \brief (CKGR_MOR) Main Oscillator Selection */ -#define CKGR_MOR_CFDEN (0x1u << 25) /**< \brief (CKGR_MOR) Clock Failure Detector Enable */ -/* -------- CKGR_MCFR : (PMC Offset: 0x0024) Main Clock Frequency Register -------- */ -#define CKGR_MCFR_MAINF_Pos 0 -#define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) /**< \brief (CKGR_MCFR) Main Clock Frequency */ -#define CKGR_MCFR_MAINFRDY (0x1u << 16) /**< \brief (CKGR_MCFR) Main Clock Ready */ -/* -------- CKGR_PLLAR : (PMC Offset: 0x0028) PLLA Register -------- */ -#define CKGR_PLLAR_DIVA_Pos 0 -#define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) /**< \brief (CKGR_PLLAR) Divider */ -#define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos))) -#define CKGR_PLLAR_PLLACOUNT_Pos 8 -#define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos) /**< \brief (CKGR_PLLAR) PLLA Counter */ -#define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos))) -#define CKGR_PLLAR_STMODE_Pos 14 -#define CKGR_PLLAR_STMODE_Msk (0x3u << CKGR_PLLAR_STMODE_Pos) /**< \brief (CKGR_PLLAR) Start Mode */ -#define CKGR_PLLAR_STMODE(value) ((CKGR_PLLAR_STMODE_Msk & ((value) << CKGR_PLLAR_STMODE_Pos))) -#define CKGR_PLLAR_MULA_Pos 16 -#define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ -#define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) -#define CKGR_PLLAR_STUCKTO1 (0x1u << 29) /**< \brief (CKGR_PLLAR) */ -/* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */ -#define PMC_MCKR_CSS_Pos 0 -#define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) /**< \brief (PMC_MCKR) Master Clock Source Selection */ -#define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ -#define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ -#define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ -#define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_MCKR) UPLL Clock is selected */ -#define PMC_MCKR_CSS(value) ((PMC_MCKR_CSS_Msk & ((value) << PMC_MCKR_CSS_Pos))) -#define PMC_MCKR_PRES_Pos 4 -#define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ -#define PMC_MCKR_PRES_CLK (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ -#define PMC_MCKR_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 2 */ -#define PMC_MCKR_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 4 */ -#define PMC_MCKR_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 8 */ -#define PMC_MCKR_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 16 */ -#define PMC_MCKR_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 32 */ -#define PMC_MCKR_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 64 */ -#define PMC_MCKR_PRES_CLK_3 (0x7u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 3 */ -#define PMC_MCKR_PRES(value) ((PMC_MCKR_PRES_Msk & ((value) << PMC_MCKR_PRES_Pos))) -#define PMC_MCKR_UPLLDIV (0x1u << 13) /**< \brief (PMC_MCKR) UPLL Divider */ -/* -------- PMC_PCK[3] : (PMC Offset: 0x0040) Programmable Clock 0 Register -------- */ -#define PMC_PCK_CSS_Pos 0 -#define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos) /**< \brief (PMC_PCK[3]) Master Clock Source Selection */ -#define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ -#define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ -#define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ -#define PMC_PCK_CSS_PLLB_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) PLLB Clock is selected */ -#define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ -#define PMC_PCK_PRES_Pos 4 -#define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Processor Clock Prescaler */ -#define PMC_PCK_PRES_CLK (0x0u << 4) /**< \brief (PMC_PCK[3]) Selected clock */ -#define PMC_PCK_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 2 */ -#define PMC_PCK_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 4 */ -#define PMC_PCK_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 8 */ -#define PMC_PCK_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 16 */ -#define PMC_PCK_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 32 */ -#define PMC_PCK_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 64 */ -/* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ -#define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ -#define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLL A Lock Interrupt Enable */ -#define PMC_IER_MCKRDY (0x1u << 3) /**< \brief (PMC_IER) Master Clock Ready Interrupt Enable */ -#define PMC_IER_LOCKU (0x1u << 6) /**< \brief (PMC_IER) UTMI PLL Lock Interrupt Enable */ -#define PMC_IER_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IER) Programmable Clock Ready 0 Interrupt Enable */ -#define PMC_IER_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IER) Programmable Clock Ready 1 Interrupt Enable */ -#define PMC_IER_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IER) Programmable Clock Ready 2 Interrupt Enable */ -#define PMC_IER_MOSCSELS (0x1u << 16) /**< \brief (PMC_IER) Main Oscillator Selection Status Interrupt Enable */ -#define PMC_IER_MOSCRCS (0x1u << 17) /**< \brief (PMC_IER) Main On-Chip RC Status Interrupt Enable */ -#define PMC_IER_CFDEV (0x1u << 18) /**< \brief (PMC_IER) Clock Failure Detector Event Interrupt Enable */ -/* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */ -#define PMC_IDR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IDR) Main Crystal Oscillator Status Interrupt Disable */ -#define PMC_IDR_LOCKA (0x1u << 1) /**< \brief (PMC_IDR) PLL A Lock Interrupt Disable */ -#define PMC_IDR_MCKRDY (0x1u << 3) /**< \brief (PMC_IDR) Master Clock Ready Interrupt Disable */ -#define PMC_IDR_LOCKU (0x1u << 6) /**< \brief (PMC_IDR) UTMI PLL Lock Interrupt Disable */ -#define PMC_IDR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IDR) Programmable Clock Ready 0 Interrupt Disable */ -#define PMC_IDR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IDR) Programmable Clock Ready 1 Interrupt Disable */ -#define PMC_IDR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IDR) Programmable Clock Ready 2 Interrupt Disable */ -#define PMC_IDR_MOSCSELS (0x1u << 16) /**< \brief (PMC_IDR) Main Oscillator Selection Status Interrupt Disable */ -#define PMC_IDR_MOSCRCS (0x1u << 17) /**< \brief (PMC_IDR) Main On-Chip RC Status Interrupt Disable */ -#define PMC_IDR_CFDEV (0x1u << 18) /**< \brief (PMC_IDR) Clock Failure Detector Event Interrupt Disable */ -/* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */ -#define PMC_SR_MOSCXTS (0x1u << 0) /**< \brief (PMC_SR) Main XTAL Oscillator Status */ -#define PMC_SR_LOCKA (0x1u << 1) /**< \brief (PMC_SR) PLL A Lock Status */ -#define PMC_SR_MCKRDY (0x1u << 3) /**< \brief (PMC_SR) Master Clock Status */ -#define PMC_SR_LOCKU (0x1u << 6) /**< \brief (PMC_SR) UTMI PLL Lock Status */ -#define PMC_SR_OSCSELS (0x1u << 7) /**< \brief (PMC_SR) Slow Clock Oscillator Selection */ -#define PMC_SR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_SR) Programmable Clock Ready Status */ -#define PMC_SR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_SR) Programmable Clock Ready Status */ -#define PMC_SR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_SR) Programmable Clock Ready Status */ -#define PMC_SR_MOSCSELS (0x1u << 16) /**< \brief (PMC_SR) Main Oscillator Selection Status */ -#define PMC_SR_MOSCRCS (0x1u << 17) /**< \brief (PMC_SR) Main On-Chip RC Oscillator Status */ -#define PMC_SR_CFDEV (0x1u << 18) /**< \brief (PMC_SR) Clock Failure Detector Event */ -#define PMC_SR_CFDS (0x1u << 19) /**< \brief (PMC_SR) Clock Failure Detector Status */ -#define PMC_SR_FOS (0x1u << 20) /**< \brief (PMC_SR) Clock Failure Detector Fault Output Status */ -/* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */ -#define PMC_IMR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IMR) Main Crystal Oscillator Status Interrupt Mask */ -#define PMC_IMR_LOCKA (0x1u << 1) /**< \brief (PMC_IMR) PLL A Lock Interrupt Mask */ -#define PMC_IMR_MCKRDY (0x1u << 3) /**< \brief (PMC_IMR) Master Clock Ready Interrupt Mask */ -#define PMC_IMR_LOCKU (0x1u << 6) /**< \brief (PMC_IMR) UTMI PLL Lock Interrupt Mask */ -#define PMC_IMR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IMR) Programmable Clock Ready 0 Interrupt Mask */ -#define PMC_IMR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IMR) Programmable Clock Ready 1 Interrupt Mask */ -#define PMC_IMR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IMR) Programmable Clock Ready 2 Interrupt Mask */ -#define PMC_IMR_MOSCSELS (0x1u << 16) /**< \brief (PMC_IMR) Main Oscillator Selection Status Interrupt Mask */ -#define PMC_IMR_MOSCRCS (0x1u << 17) /**< \brief (PMC_IMR) Main On-Chip RC Status Interrupt Mask */ -#define PMC_IMR_CFDEV (0x1u << 18) /**< \brief (PMC_IMR) Clock Failure Detector Event Interrupt Mask */ -/* -------- PMC_FSMR : (PMC Offset: 0x0070) Fast Startup Mode Register -------- */ -#define PMC_FSMR_FSTT0 (0x1u << 0) /**< \brief (PMC_FSMR) Fast Startup Input Enable 0 */ -#define PMC_FSMR_FSTT1 (0x1u << 1) /**< \brief (PMC_FSMR) Fast Startup Input Enable 1 */ -#define PMC_FSMR_FSTT2 (0x1u << 2) /**< \brief (PMC_FSMR) Fast Startup Input Enable 2 */ -#define PMC_FSMR_FSTT3 (0x1u << 3) /**< \brief (PMC_FSMR) Fast Startup Input Enable 3 */ -#define PMC_FSMR_FSTT4 (0x1u << 4) /**< \brief (PMC_FSMR) Fast Startup Input Enable 4 */ -#define PMC_FSMR_FSTT5 (0x1u << 5) /**< \brief (PMC_FSMR) Fast Startup Input Enable 5 */ -#define PMC_FSMR_FSTT6 (0x1u << 6) /**< \brief (PMC_FSMR) Fast Startup Input Enable 6 */ -#define PMC_FSMR_FSTT7 (0x1u << 7) /**< \brief (PMC_FSMR) Fast Startup Input Enable 7 */ -#define PMC_FSMR_FSTT8 (0x1u << 8) /**< \brief (PMC_FSMR) Fast Startup Input Enable 8 */ -#define PMC_FSMR_FSTT9 (0x1u << 9) /**< \brief (PMC_FSMR) Fast Startup Input Enable 9 */ -#define PMC_FSMR_FSTT10 (0x1u << 10) /**< \brief (PMC_FSMR) Fast Startup Input Enable 10 */ -#define PMC_FSMR_FSTT11 (0x1u << 11) /**< \brief (PMC_FSMR) Fast Startup Input Enable 11 */ -#define PMC_FSMR_FSTT12 (0x1u << 12) /**< \brief (PMC_FSMR) Fast Startup Input Enable 12 */ -#define PMC_FSMR_FSTT13 (0x1u << 13) /**< \brief (PMC_FSMR) Fast Startup Input Enable 13 */ -#define PMC_FSMR_FSTT14 (0x1u << 14) /**< \brief (PMC_FSMR) Fast Startup Input Enable 14 */ -#define PMC_FSMR_FSTT15 (0x1u << 15) /**< \brief (PMC_FSMR) Fast Startup Input Enable 15 */ -#define PMC_FSMR_RTTAL (0x1u << 16) /**< \brief (PMC_FSMR) RTT Alarm Enable */ -#define PMC_FSMR_RTCAL (0x1u << 17) /**< \brief (PMC_FSMR) RTC Alarm Enable */ -#define PMC_FSMR_USBAL (0x1u << 18) /**< \brief (PMC_FSMR) USB Alarm Enable */ -#define PMC_FSMR_LPM (0x1u << 20) /**< \brief (PMC_FSMR) Low Power Mode */ -/* -------- PMC_FSPR : (PMC Offset: 0x0074) Fast Startup Polarity Register -------- */ -#define PMC_FSPR_FSTP0 (0x1u << 0) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP1 (0x1u << 1) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP2 (0x1u << 2) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP3 (0x1u << 3) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP4 (0x1u << 4) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP5 (0x1u << 5) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP6 (0x1u << 6) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP7 (0x1u << 7) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP8 (0x1u << 8) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP9 (0x1u << 9) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP10 (0x1u << 10) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP11 (0x1u << 11) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP12 (0x1u << 12) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP13 (0x1u << 13) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP14 (0x1u << 14) /**< \brief (PMC_FSPR) */ -#define PMC_FSPR_FSTP15 (0x1u << 15) /**< \brief (PMC_FSPR) */ -/* -------- PMC_FOCR : (PMC Offset: 0x0078) Fault Output Clear Register -------- */ -#define PMC_FOCR_FOCLR (0x1u << 0) /**< \brief (PMC_FOCR) Fault Output Clear */ -/* -------- PMC_WPMR : (PMC Offset: 0xE4) Write Protect Mode Register -------- */ -#define PMC_WPMR_WPEN (0x1u << 0) /**< \brief (PMC_WPMR) Write Protect Enable */ -#define PMC_WPMR_WPKEY_Pos 8 -#define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos) /**< \brief (PMC_WPMR) Write Protect KEY */ -#define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos))) -/* -------- PMC_WPSR : (PMC Offset: 0xE8) Write Protect Status Register -------- */ -#define PMC_WPSR_WPVS (0x1u << 0) /**< \brief (PMC_WPSR) Write Proteact Violation Status */ -#define PMC_WPSR_WPVSRC_Pos 8 -#define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos) /**< \brief (PMC_WPSR) Write Protect Violation Source */ - -/*@}*/ - - -#endif /* _SAM3U_PMC_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/chipid.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/chipid.h deleted file mode 100644 index 33fa176a2..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/chipid.h +++ /dev/null @@ -1,15 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_CHIPID_INSTANCE_ -#define _SAM3U_CHIPID_INSTANCE_ - -/* ========== Register definition for CHIPID peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#else -#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc0.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc0.h deleted file mode 100644 index a27650ba1..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc0.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_EFC0_INSTANCE_ -#define _SAM3U_EFC0_INSTANCE_ - -/* ========== Register definition for EFC0 peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC0_FMR (0x400E0800U) /**< \brief (EFC0) EEFC Flash Mode Register */ -#define REG_EFC0_FCR (0x400E0804U) /**< \brief (EFC0) EEFC Flash Command Register */ -#define REG_EFC0_FSR (0x400E0808U) /**< \brief (EFC0) EEFC Flash Status Register */ -#define REG_EFC0_FRR (0x400E080CU) /**< \brief (EFC0) EEFC Flash Result Register */ -#else -#define REG_EFC0_FMR (*(RwReg*)0x400E0800U) /**< \brief (EFC0) EEFC Flash Mode Register */ -#define REG_EFC0_FCR (*(WoReg*)0x400E0804U) /**< \brief (EFC0) EEFC Flash Command Register */ -#define REG_EFC0_FSR (*(RoReg*)0x400E0808U) /**< \brief (EFC0) EEFC Flash Status Register */ -#define REG_EFC0_FRR (*(RoReg*)0x400E080CU) /**< \brief (EFC0) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_EFC0_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc1.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc1.h deleted file mode 100644 index b2e7a2100..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/efc1.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_EFC1_INSTANCE_ -#define _SAM3U_EFC1_INSTANCE_ - -/* ========== Register definition for EFC1 peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC1_FMR (0x400E0A00U) /**< \brief (EFC1) EEFC Flash Mode Register */ -#define REG_EFC1_FCR (0x400E0A04U) /**< \brief (EFC1) EEFC Flash Command Register */ -#define REG_EFC1_FSR (0x400E0A08U) /**< \brief (EFC1) EEFC Flash Status Register */ -#define REG_EFC1_FRR (0x400E0A0CU) /**< \brief (EFC1) EEFC Flash Result Register */ -#else -#define REG_EFC1_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC1) EEFC Flash Mode Register */ -#define REG_EFC1_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC1) EEFC Flash Command Register */ -#define REG_EFC1_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC1) EEFC Flash Status Register */ -#define REG_EFC1_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC1) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_EFC1_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/gpbr.h deleted file mode 100644 index 0649e425b..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/gpbr.h +++ /dev/null @@ -1,13 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_GPBR_INSTANCE_ -#define _SAM3U_GPBR_INSTANCE_ - -/* ========== Register definition for GPBR peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_GPBR_GPBR (0x400E1290U) /**< \brief (GPBR) General Purpose Backup Register */ -#else -#define REG_GPBR_GPBR (*(RwReg*)0x400E1290U) /**< \brief (GPBR) General Purpose Backup Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/adc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_adc.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/adc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_adc.h index 405c17df8..eb16f3c0d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_ADC_INSTANCE_ #define _SAM3U_ADC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/adc12b.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_adc12b.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/adc12b.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_adc12b.h index 94f7cbf8e..985799389 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/adc12b.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_adc12b.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_ADC12B_INSTANCE_ #define _SAM3U_ADC12B_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_chipid.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_chipid.h new file mode 100644 index 000000000..0e26b27fd --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_chipid.h @@ -0,0 +1,42 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_CHIPID_INSTANCE_ +#define _SAM3U_CHIPID_INSTANCE_ + +/* ========== Register definition for CHIPID peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#else +#define REG_CHIPID_CIDR (*(RoReg*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (*(RoReg*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/dmac.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_dmac.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/dmac.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_dmac.h index 02ec7921c..76972f519 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/dmac.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_dmac.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_DMAC_INSTANCE_ #define _SAM3U_DMAC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc0.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc0.h new file mode 100644 index 000000000..29041cd7b --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc0.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_EFC0_INSTANCE_ +#define _SAM3U_EFC0_INSTANCE_ + +/* ========== Register definition for EFC0 peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC0_FMR (0x400E0800U) /**< \brief (EFC0) EEFC Flash Mode Register */ +#define REG_EFC0_FCR (0x400E0804U) /**< \brief (EFC0) EEFC Flash Command Register */ +#define REG_EFC0_FSR (0x400E0808U) /**< \brief (EFC0) EEFC Flash Status Register */ +#define REG_EFC0_FRR (0x400E080CU) /**< \brief (EFC0) EEFC Flash Result Register */ +#else +#define REG_EFC0_FMR (*(RwReg*)0x400E0800U) /**< \brief (EFC0) EEFC Flash Mode Register */ +#define REG_EFC0_FCR (*(WoReg*)0x400E0804U) /**< \brief (EFC0) EEFC Flash Command Register */ +#define REG_EFC0_FSR (*(RoReg*)0x400E0808U) /**< \brief (EFC0) EEFC Flash Status Register */ +#define REG_EFC0_FRR (*(RoReg*)0x400E080CU) /**< \brief (EFC0) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_EFC0_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc1.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc1.h new file mode 100644 index 000000000..11f658759 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_efc1.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_EFC1_INSTANCE_ +#define _SAM3U_EFC1_INSTANCE_ + +/* ========== Register definition for EFC1 peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC1_FMR (0x400E0A00U) /**< \brief (EFC1) EEFC Flash Mode Register */ +#define REG_EFC1_FCR (0x400E0A04U) /**< \brief (EFC1) EEFC Flash Command Register */ +#define REG_EFC1_FSR (0x400E0A08U) /**< \brief (EFC1) EEFC Flash Status Register */ +#define REG_EFC1_FRR (0x400E0A0CU) /**< \brief (EFC1) EEFC Flash Result Register */ +#else +#define REG_EFC1_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC1) EEFC Flash Mode Register */ +#define REG_EFC1_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC1) EEFC Flash Command Register */ +#define REG_EFC1_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC1) EEFC Flash Status Register */ +#define REG_EFC1_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC1) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_EFC1_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_gpbr.h new file mode 100644 index 000000000..3558ec9ec --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_gpbr.h @@ -0,0 +1,40 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_GPBR_INSTANCE_ +#define _SAM3U_GPBR_INSTANCE_ + +/* ========== Register definition for GPBR peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_GPBR_GPBR (0x400E1290U) /**< \brief (GPBR) General Purpose Backup Register */ +#else +#define REG_GPBR_GPBR (*(RwReg*)0x400E1290U) /**< \brief (GPBR) General Purpose Backup Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_hsmci.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_hsmci.h index d0eaf78ff..a69746c3c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_HSMCI_INSTANCE_ #define _SAM3U_HSMCI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/matrix.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_matrix.h similarity index 69% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_matrix.h index cdc152b97..ed178fed0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_MATRIX_INSTANCE_ #define _SAM3U_MATRIX_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pioa.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pioa.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/pioa.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pioa.h index 15f31b3e0..3cecfbf82 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pioa.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pioa.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PIOA_INSTANCE_ #define _SAM3U_PIOA_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/piob.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_piob.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/piob.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_piob.h index 9ec19d32c..a0ad5631b 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/piob.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_piob.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PIOB_INSTANCE_ #define _SAM3U_PIOB_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pioc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pioc.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/pioc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pioc.h index cb50b85e7..f746e2c23 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pioc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pioc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PIOC_INSTANCE_ #define _SAM3U_PIOC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pmc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pmc.h similarity index 60% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pmc.h index 99765daaf..19bcafb02 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PMC_INSTANCE_ #define _SAM3U_PMC_INSTANCE_ @@ -8,9 +35,9 @@ #define REG_PMC_SCER (0x400E0400U) /**< \brief (PMC) System Clock Enable Register */ #define REG_PMC_SCDR (0x400E0404U) /**< \brief (PMC) System Clock Disable Register */ #define REG_PMC_SCSR (0x400E0408U) /**< \brief (PMC) System Clock Status Register */ -#define REG_PMC_PCER (0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register */ -#define REG_PMC_PCDR (0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register */ -#define REG_PMC_PCSR (0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register */ +#define REG_PMC_PCER0 (0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register 0 */ +#define REG_PMC_PCDR0 (0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register 0 */ +#define REG_PMC_PCSR0 (0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register 0 */ #define REG_CKGR_UCKR (0x400E041CU) /**< \brief (PMC) UTMI Clock Register */ #define REG_CKGR_MOR (0x400E0420U) /**< \brief (PMC) Main Oscillator Register */ #define REG_CKGR_MCFR (0x400E0424U) /**< \brief (PMC) Main Clock Frequency Register */ @@ -26,13 +53,14 @@ #define REG_PMC_FOCR (0x400E0478U) /**< \brief (PMC) Fault Output Clear Register */ #define REG_PMC_WPMR (0x400E04E4U) /**< \brief (PMC) Write Protect Mode Register */ #define REG_PMC_WPSR (0x400E04E8U) /**< \brief (PMC) Write Protect Status Register */ +#define REG_PMC_OCR (0x400E0510U) /**< \brief (PMC) Oscillator Calibration Register */ #else #define REG_PMC_SCER (*(WoReg*)0x400E0400U) /**< \brief (PMC) System Clock Enable Register */ #define REG_PMC_SCDR (*(WoReg*)0x400E0404U) /**< \brief (PMC) System Clock Disable Register */ #define REG_PMC_SCSR (*(RoReg*)0x400E0408U) /**< \brief (PMC) System Clock Status Register */ -#define REG_PMC_PCER (*(WoReg*)0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register */ -#define REG_PMC_PCDR (*(WoReg*)0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register */ -#define REG_PMC_PCSR (*(RoReg*)0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register */ +#define REG_PMC_PCER0 (*(WoReg*)0x400E0410U) /**< \brief (PMC) Peripheral Clock Enable Register 0 */ +#define REG_PMC_PCDR0 (*(WoReg*)0x400E0414U) /**< \brief (PMC) Peripheral Clock Disable Register 0 */ +#define REG_PMC_PCSR0 (*(RoReg*)0x400E0418U) /**< \brief (PMC) Peripheral Clock Status Register 0 */ #define REG_CKGR_UCKR (*(RwReg*)0x400E041CU) /**< \brief (PMC) UTMI Clock Register */ #define REG_CKGR_MOR (*(RwReg*)0x400E0420U) /**< \brief (PMC) Main Oscillator Register */ #define REG_CKGR_MCFR (*(RoReg*)0x400E0424U) /**< \brief (PMC) Main Clock Frequency Register */ @@ -48,6 +76,7 @@ #define REG_PMC_FOCR (*(WoReg*)0x400E0478U) /**< \brief (PMC) Fault Output Clear Register */ #define REG_PMC_WPMR (*(RwReg*)0x400E04E4U) /**< \brief (PMC) Write Protect Mode Register */ #define REG_PMC_WPSR (*(RoReg*)0x400E04E8U) /**< \brief (PMC) Write Protect Status Register */ +#define REG_PMC_OCR (*(RwReg*)0x400E0510U) /**< \brief (PMC) Oscillator Calibration Register */ #endif /* __ASSEMBLY__ */ #endif /* _SAM3U_PMC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pwm.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pwm.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pwm.h index 37f395e4d..86e4f5778 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_PWM_INSTANCE_ #define _SAM3U_PWM_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rstc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rstc.h new file mode 100644 index 000000000..e4eaafc54 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rstc.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_RSTC_INSTANCE_ +#define _SAM3U_RSTC_INSTANCE_ + +/* ========== Register definition for RSTC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RSTC_CR (0x400E1200U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (0x400E1204U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (0x400E1208U) /**< \brief (RSTC) Mode Register */ +#else +#define REG_RSTC_CR (*(WoReg*)0x400E1200U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (*(RoReg*)0x400E1204U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (*(RwReg*)0x400E1208U) /**< \brief (RSTC) Mode Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtc.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtc.h index 34ea5bef1..70848a5f1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_RTC_INSTANCE_ #define _SAM3U_RTC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtt.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtt.h new file mode 100644 index 000000000..30fb346a0 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_rtt.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_RTT_INSTANCE_ +#define _SAM3U_RTT_INSTANCE_ + +/* ========== Register definition for RTT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RTT_MR (0x400E1230U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (0x400E1234U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (0x400E1238U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (0x400E123CU) /**< \brief (RTT) Status Register */ +#else +#define REG_RTT_MR (*(RwReg*)0x400E1230U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (*(RwReg*)0x400E1234U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (*(RoReg*)0x400E1238U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (*(RoReg*)0x400E123CU) /**< \brief (RTT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/smc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_smc.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/smc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_smc.h index fba13e58e..6cc8e8cb3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SMC_INSTANCE_ #define _SAM3U_SMC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/spi.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_spi.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/spi.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_spi.h index ffa9e3b29..01da0f3b1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SPI_INSTANCE_ #define _SAM3U_SPI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/ssc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_ssc.h similarity index 69% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_ssc.h index 8b1e829ef..8960a1196 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SSC_INSTANCE_ #define _SAM3U_SSC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_supc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_supc.h new file mode 100644 index 000000000..cf26eaf8d --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_supc.h @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_SUPC_INSTANCE_ +#define _SAM3U_SUPC_INSTANCE_ + +/* ========== Register definition for SUPC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_SUPC_CR (0x400E1210U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (0x400E1214U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (0x400E1218U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (0x400E121CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (0x400E1220U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (0x400E1224U) /**< \brief (SUPC) Supply Controller Status Register */ +#else +#define REG_SUPC_CR (*(WoReg*)0x400E1210U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (*(RwReg*)0x400E1214U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (*(RwReg*)0x400E1218U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (*(RwReg*)0x400E121CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (*(RwReg*)0x400E1220U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (*(RoReg*)0x400E1224U) /**< \brief (SUPC) Supply Controller Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/tc0.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_tc0.h similarity index 82% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/tc0.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_tc0.h index d04edaa6d..ad44c5513 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/tc0.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_tc0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_TC0_INSTANCE_ #define _SAM3U_TC0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/twi0.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_twi0.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/twi0.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_twi0.h index d32697553..6498136c5 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/twi0.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_twi0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_TWI0_INSTANCE_ #define _SAM3U_TWI0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/twi1.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_twi1.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/twi1.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_twi1.h index 607b60ad1..aabfbad93 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/twi1.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_twi1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_TWI1_INSTANCE_ #define _SAM3U_TWI1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/uart.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_uart.h similarity index 70% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/uart.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_uart.h index cdf7119d4..f0cf7002c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_UART_INSTANCE_ #define _SAM3U_UART_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/udphs.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_udphs.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/udphs.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_udphs.h index 59b12e0b1..5b39da837 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/udphs.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_udphs.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_UDPHS_INSTANCE_ #define _SAM3U_UDPHS_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart0.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart0.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart0.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart0.h index 7a4d30c6e..67cda384d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_USART0_INSTANCE_ #define _SAM3U_USART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart1.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart1.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart1.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart1.h index 961a1253e..3cae30973 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_USART1_INSTANCE_ #define _SAM3U_USART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart2.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart2.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart2.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart2.h index 49dc723f2..02717fa03 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart2.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart2.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_USART2_INSTANCE_ #define _SAM3U_USART2_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart3.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart3.h similarity index 78% rename from hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart3.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart3.h index c63986825..363d309b4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/usart3.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_usart3.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_USART3_INSTANCE_ #define _SAM3U_USART3_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_wdt.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_wdt.h new file mode 100644 index 000000000..f17439520 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/instance_wdt.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_WDT_INSTANCE_ +#define _SAM3U_WDT_INSTANCE_ + +/* ========== Register definition for WDT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_WDT_CR (0x400E1250U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (0x400E1254U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (0x400E1258U) /**< \brief (WDT) Status Register */ +#else +#define REG_WDT_CR (*(WoReg*)0x400E1250U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (*(RwReg*)0x400E1254U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (*(RoReg*)0x400E1258U) /**< \brief (WDT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3U_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rstc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rstc.h deleted file mode 100644 index 7844edc21..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rstc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_RSTC_INSTANCE_ -#define _SAM3U_RSTC_INSTANCE_ - -/* ========== Register definition for RSTC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RSTC_CR (0x400E1200U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (0x400E1204U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (0x400E1208U) /**< \brief (RSTC) Mode Register */ -#else -#define REG_RSTC_CR (*(WoReg*)0x400E1200U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (*(RoReg*)0x400E1204U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (*(RwReg*)0x400E1208U) /**< \brief (RSTC) Mode Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtt.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtt.h deleted file mode 100644 index 046bc6f1c..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/rtt.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_RTT_INSTANCE_ -#define _SAM3U_RTT_INSTANCE_ - -/* ========== Register definition for RTT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RTT_MR (0x400E1230U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (0x400E1234U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (0x400E1238U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (0x400E123CU) /**< \brief (RTT) Status Register */ -#else -#define REG_RTT_MR (*(RwReg*)0x400E1230U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (*(RwReg*)0x400E1234U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (*(RoReg*)0x400E1238U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (*(RoReg*)0x400E123CU) /**< \brief (RTT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/supc.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/supc.h deleted file mode 100644 index ba39421ea..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/supc.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_SUPC_INSTANCE_ -#define _SAM3U_SUPC_INSTANCE_ - -/* ========== Register definition for SUPC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_SUPC_CR (0x400E1210U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (0x400E1214U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (0x400E1218U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (0x400E121CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (0x400E1220U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (0x400E1224U) /**< \brief (SUPC) Supply Controller Status Register */ -#else -#define REG_SUPC_CR (*(WoReg*)0x400E1210U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (*(RwReg*)0x400E1214U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (*(RwReg*)0x400E1218U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (*(RwReg*)0x400E121CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (*(RwReg*)0x400E1220U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (*(RoReg*)0x400E1224U) /**< \brief (SUPC) Supply Controller Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/wdt.h b/hardware/sam/system/libsam/cmsis/sam3u/include/instance/wdt.h deleted file mode 100644 index 9cd67c326..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/instance/wdt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3U_WDT_INSTANCE_ -#define _SAM3U_WDT_INSTANCE_ - -/* ========== Register definition for WDT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_WDT_CR (0x400E1250U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (0x400E1254U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (0x400E1258U) /**< \brief (WDT) Status Register */ -#else -#define REG_WDT_CR (*(WoReg*)0x400E1250U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (*(RwReg*)0x400E1254U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (*(RoReg*)0x400E1258U) /**< \brief (WDT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3U_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u1c.h b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u1c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u1c.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u1c.h index b0e601f5d..d1a0dea87 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u1c.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u1c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U1C_PIO_ #define _SAM3U1C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u1e.h b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u1e.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u1e.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u1e.h index 44396f6aa..3a0a48f23 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u1e.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u1e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U1E_PIO_ #define _SAM3U1E_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u2c.h b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u2c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u2c.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u2c.h index 00b56dab0..5a3f55661 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U2C_PIO_ #define _SAM3U2C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u2e.h b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u2e.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u2e.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u2e.h index 7b7880043..0fa035631 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u2e.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u2e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U2E_PIO_ #define _SAM3U2E_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u4c.h b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u4c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u4c.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u4c.h index 0c4d56bb7..602db8ad8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U4C_PIO_ #define _SAM3U4C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u4e.h b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u4e.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u4e.h rename to hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u4e.h index 82bc2bd0b..8c8fd7a41 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/pio/sam3u4e.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/pio/pio_sam3u4e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U4E_PIO_ #define _SAM3U4E_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u.h index f843fb277..856c3b1d4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u.h @@ -1,19 +1,35 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U_ #define _SAM3U_ -/* Device characteristics */ -#define CHIP_FREQ_SLCK_RC_MIN (20000U) -#define CHIP_FREQ_SLCK_RC (32000U) -#define CHIP_FREQ_SLCK_RC_MAX (44000U) -#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) -#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) -#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) -#define CHIP_FREQ_CPU_MAX (96000000U) - -#define CHIP_FLASH_WAIT_STATE (3U) - #if defined __SAM3U1C__ #include "sam3u1c.h" #elif defined __SAM3U1E__ diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1c.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1c.h index b51f5c279..5dc98fbc8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1c.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U1C_ #define _SAM3U1C_ @@ -100,31 +127,31 @@ typedef enum IRQn /** \addtogroup SAM3U1C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/adc12b.h" -#include "component/chipid.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udphs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_adc12b.h" +#include "component/component_chipid.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udphs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -133,35 +160,35 @@ typedef enum IRQn /** \addtogroup SAM3U1C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/udphs.h" -#include "instance/adc12b.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_udphs.h" +#include "instance/instance_adc12b.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -293,7 +320,7 @@ typedef enum IRQn /** \addtogroup SAM3U1C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3u1c.h" +#include "pio/pio_sam3u1c.h" /*@}*/ /* ************************************************************************** */ @@ -316,6 +343,21 @@ typedef enum IRQn #define NFC_RAM_ADDR (0x20100000u) /**< NAND Flash Controller RAM base address */ #define UDPHS_RAM_ADDR (0x20180000u) /**< USB High Speed Device Port RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3U1C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (96000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1e.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1e.h index 9b9e4e6df..94de4a863 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1e.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u1e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U1E_ #define _SAM3U1E_ @@ -102,31 +129,31 @@ typedef enum IRQn /** \addtogroup SAM3U1E_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/adc12b.h" -#include "component/chipid.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udphs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_adc12b.h" +#include "component/component_chipid.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udphs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -135,37 +162,37 @@ typedef enum IRQn /** \addtogroup SAM3U1E_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/udphs.h" -#include "instance/adc12b.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_udphs.h" +#include "instance/instance_adc12b.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -305,7 +332,7 @@ typedef enum IRQn /** \addtogroup SAM3U1E_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3u1e.h" +#include "pio/pio_sam3u1e.h" /*@}*/ /* ************************************************************************** */ @@ -328,6 +355,21 @@ typedef enum IRQn #define NFC_RAM_ADDR (0x20100000u) /**< NAND Flash Controller RAM base address */ #define UDPHS_RAM_ADDR (0x20180000u) /**< USB High Speed Device Port RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3U1E */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (96000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2c.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2c.h index aac0bbf78..53f0331e4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U2C_ #define _SAM3U2C_ @@ -100,31 +127,31 @@ typedef enum IRQn /** \addtogroup SAM3U2C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/adc12b.h" -#include "component/chipid.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udphs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_adc12b.h" +#include "component/component_chipid.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udphs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -133,35 +160,35 @@ typedef enum IRQn /** \addtogroup SAM3U2C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/udphs.h" -#include "instance/adc12b.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_udphs.h" +#include "instance/instance_adc12b.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -293,7 +320,7 @@ typedef enum IRQn /** \addtogroup SAM3U2C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3u2c.h" +#include "pio/pio_sam3u2c.h" /*@}*/ /* ************************************************************************** */ @@ -316,6 +343,21 @@ typedef enum IRQn #define NFC_RAM_ADDR (0x20100000u) /**< NAND Flash Controller RAM base address */ #define UDPHS_RAM_ADDR (0x20180000u) /**< USB High Speed Device Port RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3U2C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (96000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2e.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2e.h index db0f68e6f..bda7dae88 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2e.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u2e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U2E_ #define _SAM3U2E_ @@ -102,31 +129,31 @@ typedef enum IRQn /** \addtogroup SAM3U2E_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/adc12b.h" -#include "component/chipid.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udphs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_adc12b.h" +#include "component/component_chipid.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udphs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -135,37 +162,37 @@ typedef enum IRQn /** \addtogroup SAM3U2E_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/udphs.h" -#include "instance/adc12b.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_udphs.h" +#include "instance/instance_adc12b.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -305,7 +332,7 @@ typedef enum IRQn /** \addtogroup SAM3U2E_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3u2e.h" +#include "pio/pio_sam3u2e.h" /*@}*/ /* ************************************************************************** */ @@ -328,6 +355,21 @@ typedef enum IRQn #define NFC_RAM_ADDR (0x20100000u) /**< NAND Flash Controller RAM base address */ #define UDPHS_RAM_ADDR (0x20180000u) /**< USB High Speed Device Port RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3U2E */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (96000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4c.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4c.h index 6f45230b6..3f28f60a8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U4C_ #define _SAM3U4C_ @@ -100,31 +127,31 @@ typedef enum IRQn /** \addtogroup SAM3U4C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/adc12b.h" -#include "component/chipid.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udphs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_adc12b.h" +#include "component/component_chipid.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udphs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -133,35 +160,35 @@ typedef enum IRQn /** \addtogroup SAM3U4C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/udphs.h" -#include "instance/adc12b.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_udphs.h" +#include "instance/instance_adc12b.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -293,7 +320,7 @@ typedef enum IRQn /** \addtogroup SAM3U4C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3u4c.h" +#include "pio/pio_sam3u4c.h" /*@}*/ /* ************************************************************************** */ @@ -321,6 +348,21 @@ typedef enum IRQn #define NFC_RAM_ADDR (0x20100000u) /**< NAND Flash Controller RAM base address */ #define UDPHS_RAM_ADDR (0x20180000u) /**< USB High Speed Device Port RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3U4C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (96000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4e.h b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4e.h index dc0c02726..2d987d8ed 100644 --- a/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4e.h +++ b/hardware/sam/system/libsam/cmsis/sam3u/include/sam3u4e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3U4E_ #define _SAM3U4E_ @@ -102,31 +129,31 @@ typedef enum IRQn /** \addtogroup SAM3U4E_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/adc12b.h" -#include "component/chipid.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/udphs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_adc12b.h" +#include "component/component_chipid.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_udphs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -135,37 +162,37 @@ typedef enum IRQn /** \addtogroup SAM3U4E_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi.h" -#include "instance/tc0.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/udphs.h" -#include "instance/adc12b.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi.h" +#include "instance/instance_tc0.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_udphs.h" +#include "instance/instance_adc12b.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -305,7 +332,7 @@ typedef enum IRQn /** \addtogroup SAM3U4E_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3u4e.h" +#include "pio/pio_sam3u4e.h" /*@}*/ /* ************************************************************************** */ @@ -333,6 +360,21 @@ typedef enum IRQn #define NFC_RAM_ADDR (0x20100000u) /**< NAND Flash Controller RAM base address */ #define UDPHS_RAM_ADDR (0x20180000u) /**< USB High Speed Device Port RAM base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3U4E */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (96000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3x/include/component/gpbr.h deleted file mode 100644 index 816c6241e..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/gpbr.h +++ /dev/null @@ -1,26 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_GPBR_COMPONENT_ -#define _SAM3XA_GPBR_COMPONENT_ - -/* ============================================================================= */ -/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ -/* ============================================================================= */ -/** \addtogroup SAM3XA_GPBR General Purpose Backup Register */ -/*@{*/ - -#ifndef __ASSEMBLY__ -/** \brief Gpbr hardware registers */ -typedef struct { - RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ -} Gpbr; -#endif /* __ASSEMBLY__ */ -/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ -#define SYS_GPBR_GPBR_VALUE_Pos 0 -#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ -#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) - -/*@}*/ - - -#endif /* _SAM3XA_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/chipid.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/chipid.h deleted file mode 100644 index a1b48bd14..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/chipid.h +++ /dev/null @@ -1,15 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_CHIPID_INSTANCE_ -#define _SAM3XA_CHIPID_INSTANCE_ - -/* ========== Register definition for CHIPID peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_CHIPID_CIDR (0x400E0940U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (0x400E0944U) /**< \brief (CHIPID) Chip ID Extension Register */ -#else -#define REG_CHIPID_CIDR (*(RoReg*)0x400E0940U) /**< \brief (CHIPID) Chip ID Register */ -#define REG_CHIPID_EXID (*(RoReg*)0x400E0944U) /**< \brief (CHIPID) Chip ID Extension Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc0.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc0.h deleted file mode 100644 index 048877d25..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc0.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_EFC0_INSTANCE_ -#define _SAM3XA_EFC0_INSTANCE_ - -/* ========== Register definition for EFC0 peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC0_FMR (0x400E0A00U) /**< \brief (EFC0) EEFC Flash Mode Register */ -#define REG_EFC0_FCR (0x400E0A04U) /**< \brief (EFC0) EEFC Flash Command Register */ -#define REG_EFC0_FSR (0x400E0A08U) /**< \brief (EFC0) EEFC Flash Status Register */ -#define REG_EFC0_FRR (0x400E0A0CU) /**< \brief (EFC0) EEFC Flash Result Register */ -#else -#define REG_EFC0_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC0) EEFC Flash Mode Register */ -#define REG_EFC0_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC0) EEFC Flash Command Register */ -#define REG_EFC0_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC0) EEFC Flash Status Register */ -#define REG_EFC0_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC0) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_EFC0_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc1.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc1.h deleted file mode 100644 index 705ec8209..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/efc1.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_EFC1_INSTANCE_ -#define _SAM3XA_EFC1_INSTANCE_ - -/* ========== Register definition for EFC1 peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_EFC1_FMR (0x400E0C00U) /**< \brief (EFC1) EEFC Flash Mode Register */ -#define REG_EFC1_FCR (0x400E0C04U) /**< \brief (EFC1) EEFC Flash Command Register */ -#define REG_EFC1_FSR (0x400E0C08U) /**< \brief (EFC1) EEFC Flash Status Register */ -#define REG_EFC1_FRR (0x400E0C0CU) /**< \brief (EFC1) EEFC Flash Result Register */ -#else -#define REG_EFC1_FMR (*(RwReg*)0x400E0C00U) /**< \brief (EFC1) EEFC Flash Mode Register */ -#define REG_EFC1_FCR (*(WoReg*)0x400E0C04U) /**< \brief (EFC1) EEFC Flash Command Register */ -#define REG_EFC1_FSR (*(RoReg*)0x400E0C08U) /**< \brief (EFC1) EEFC Flash Status Register */ -#define REG_EFC1_FRR (*(RoReg*)0x400E0C0CU) /**< \brief (EFC1) EEFC Flash Result Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_EFC1_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/gpbr.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/gpbr.h deleted file mode 100644 index 120f82a29..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/gpbr.h +++ /dev/null @@ -1,13 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_GPBR_INSTANCE_ -#define _SAM3XA_GPBR_INSTANCE_ - -/* ========== Register definition for GPBR peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_GPBR_GPBR (0x400E1A90U) /**< \brief (GPBR) General Purpose Backup Register */ -#else -#define REG_GPBR_GPBR (*(RwReg*)0x400E1A90U) /**< \brief (GPBR) General Purpose Backup Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rstc.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rstc.h deleted file mode 100644 index e34a87ff1..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rstc.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_RSTC_INSTANCE_ -#define _SAM3XA_RSTC_INSTANCE_ - -/* ========== Register definition for RSTC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RSTC_CR (0x400E1A00U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (0x400E1A04U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (0x400E1A08U) /**< \brief (RSTC) Mode Register */ -#else -#define REG_RSTC_CR (*(WoReg*)0x400E1A00U) /**< \brief (RSTC) Control Register */ -#define REG_RSTC_SR (*(RoReg*)0x400E1A04U) /**< \brief (RSTC) Status Register */ -#define REG_RSTC_MR (*(RwReg*)0x400E1A08U) /**< \brief (RSTC) Mode Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtt.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtt.h deleted file mode 100644 index 99e88b459..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtt.h +++ /dev/null @@ -1,19 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_RTT_INSTANCE_ -#define _SAM3XA_RTT_INSTANCE_ - -/* ========== Register definition for RTT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_RTT_MR (0x400E1A30U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (0x400E1A34U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (0x400E1A38U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (0x400E1A3CU) /**< \brief (RTT) Status Register */ -#else -#define REG_RTT_MR (*(RwReg*)0x400E1A30U) /**< \brief (RTT) Mode Register */ -#define REG_RTT_AR (*(RwReg*)0x400E1A34U) /**< \brief (RTT) Alarm Register */ -#define REG_RTT_VR (*(RoReg*)0x400E1A38U) /**< \brief (RTT) Value Register */ -#define REG_RTT_SR (*(RoReg*)0x400E1A3CU) /**< \brief (RTT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/supc.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/supc.h deleted file mode 100644 index 80655d9fd..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/supc.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_SUPC_INSTANCE_ -#define _SAM3XA_SUPC_INSTANCE_ - -/* ========== Register definition for SUPC peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_SUPC_CR (0x400E1A10U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (0x400E1A14U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (0x400E1A18U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (0x400E1A1CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (0x400E1A20U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (0x400E1A24U) /**< \brief (SUPC) Supply Controller Status Register */ -#else -#define REG_SUPC_CR (*(WoReg*)0x400E1A10U) /**< \brief (SUPC) Supply Controller Control Register */ -#define REG_SUPC_SMMR (*(RwReg*)0x400E1A14U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ -#define REG_SUPC_MR (*(RwReg*)0x400E1A18U) /**< \brief (SUPC) Supply Controller Mode Register */ -#define REG_SUPC_WUMR (*(RwReg*)0x400E1A1CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ -#define REG_SUPC_WUIR (*(RwReg*)0x400E1A20U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ -#define REG_SUPC_SR (*(RoReg*)0x400E1A24U) /**< \brief (SUPC) Supply Controller Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/trng.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/trng.h deleted file mode 100644 index 7d7393009..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/trng.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_TRNG_INSTANCE_ -#define _SAM3XA_TRNG_INSTANCE_ - -/* ========== Register definition for TRNG peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_TRNG_CR (0x400BC000U) /**< \brief (TRNG) Control Register */ -#define REG_TRNG_IER (0x400BC010U) /**< \brief (TRNG) Interrupt Enable Register */ -#define REG_TRNG_IDR (0x400BC014U) /**< \brief (TRNG) Interrupt Disable Register */ -#define REG_TRNG_IMR (0x400BC018U) /**< \brief (TRNG) Interrupt Mask Register */ -#define REG_TRNG_ISR (0x400BC01CU) /**< \brief (TRNG) Interrupt Status Register */ -#define REG_TRNG_ODATA (0x400BC050U) /**< \brief (TRNG) Output Data Register */ -#else -#define REG_TRNG_CR (*(WoReg*)0x400BC000U) /**< \brief (TRNG) Control Register */ -#define REG_TRNG_IER (*(WoReg*)0x400BC010U) /**< \brief (TRNG) Interrupt Enable Register */ -#define REG_TRNG_IDR (*(WoReg*)0x400BC014U) /**< \brief (TRNG) Interrupt Disable Register */ -#define REG_TRNG_IMR (*(RoReg*)0x400BC018U) /**< \brief (TRNG) Interrupt Mask Register */ -#define REG_TRNG_ISR (*(RoReg*)0x400BC01CU) /**< \brief (TRNG) Interrupt Status Register */ -#define REG_TRNG_ODATA (*(RoReg*)0x400BC050U) /**< \brief (TRNG) Output Data Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_TRNG_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/wdt.h b/hardware/sam/system/libsam/cmsis/sam3x/include/instance/wdt.h deleted file mode 100644 index 4f7159052..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/wdt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_WDT_INSTANCE_ -#define _SAM3XA_WDT_INSTANCE_ - -/* ========== Register definition for WDT peripheral ========== */ -#ifdef __ASSEMBLY__ -#define REG_WDT_CR (0x400E1A50U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (0x400E1A54U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (0x400E1A58U) /**< \brief (WDT) Status Register */ -#else -#define REG_WDT_CR (*(WoReg*)0x400E1A50U) /**< \brief (WDT) Control Register */ -#define REG_WDT_MR (*(RwReg*)0x400E1A54U) /**< \brief (WDT) Mode Register */ -#define REG_WDT_SR (*(RoReg*)0x400E1A58U) /**< \brief (WDT) Status Register */ -#endif /* __ASSEMBLY__ */ - -#endif /* _SAM3XA_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3xa.h b/hardware/sam/system/libsam/cmsis/sam3x/include/sam3xa.h deleted file mode 100644 index 2a0058efe..000000000 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3xa.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $asf_license$ */ - -#ifndef _SAM3XA_ -#define _SAM3XA_ - -/* Device characteristics */ -#define CHIP_FREQ_SLCK_RC_MIN (20000U) -#define CHIP_FREQ_SLCK_RC (32000U) -#define CHIP_FREQ_SLCK_RC_MAX (44000U) -#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) -#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) -#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) -#define CHIP_FREQ_CPU_MAX (84000000U) - -#define CHIP_FLASH_WAIT_STATE (3U) - -#if defined __SAM3A2C__ - #include "sam3a2c.h" -#elif defined __SAM3A4C__ - #include "sam3a4c.h" -#elif defined __SAM3A8C__ - #include "sam3a8c.h" -#elif defined __SAM3X2C__ - #include "sam3x2c.h" -#elif defined __SAM3X2E__ - #include "sam3x2e.h" -#elif defined __SAM3X2G__ - #include "sam3x2g.h" -#elif defined __SAM3X2H__ - #include "sam3x2h.h" -#elif defined __SAM3X4C__ - #include "sam3x4c.h" -#elif defined __SAM3X4E__ - #include "sam3x4e.h" -#elif defined __SAM3X4G__ - #include "sam3x4g.h" -#elif defined __SAM3X4H__ - #include "sam3x4h.h" -#elif defined __SAM3X8C__ - #include "sam3x8c.h" -#elif defined __SAM3X8E__ - #include "sam3x8e.h" -#elif defined __SAM3X8G__ - #include "sam3x8g.h" -#elif defined __SAM3X8H__ - #include "sam3x8h.h" -#else - #error Library does not support the specified device. -#endif - -#endif /* _SAM3XA_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/adc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_adc.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/adc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_adc.h index 9f0fa6452..70d30de35 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_ADC_COMPONENT_ #define _SAM3XA_ADC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/can.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_can.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/can.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_can.h index 49900a7ca..de0b80ce9 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/can.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_can.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_CAN_COMPONENT_ #define _SAM3XA_CAN_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/chipid.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_chipid.h similarity index 87% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/chipid.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_chipid.h index 20127deca..16bb3659a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/chipid.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_chipid.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_CHIPID_COMPONENT_ #define _SAM3XA_CHIPID_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/dacc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_dacc.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_dacc.h index 29776b791..afa720599 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_DACC_COMPONENT_ #define _SAM3XA_DACC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/dmac.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_dmac.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/dmac.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_dmac.h index f60333e65..87a8f7672 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/dmac.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_dmac.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_DMAC_COMPONENT_ #define _SAM3XA_DMAC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/efc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_efc.h similarity index 63% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/efc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_efc.h index cf75e3b5b..ca54f4303 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/efc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_efc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_EFC_COMPONENT_ #define _SAM3XA_EFC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/emac.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_emac.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/emac.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_emac.h index 1afa5bd5d..9ac1aec47 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/emac.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_emac.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_EMAC_COMPONENT_ #define _SAM3XA_EMAC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_gpbr.h new file mode 100644 index 000000000..3c386eb69 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_gpbr.h @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_GPBR_COMPONENT_ +#define _SAM3XA_GPBR_COMPONENT_ + +/* ============================================================================= */ +/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */ +/* ============================================================================= */ +/** \addtogroup SAM3XA_GPBR General Purpose Backup Register */ +/*@{*/ + +#ifndef __ASSEMBLY__ +/** \brief Gpbr hardware registers */ +typedef struct { + RwReg SYS_GPBR[8]; /**< \brief (Gpbr Offset: 0x0) General Purpose Backup Register */ +} Gpbr; +#endif /* __ASSEMBLY__ */ +/* -------- SYS_GPBR[8] : (GPBR Offset: 0x0) General Purpose Backup Register -------- */ +#define SYS_GPBR_GPBR_VALUE_Pos 0 +#define SYS_GPBR_GPBR_VALUE_Msk (0xffffffffu << SYS_GPBR_GPBR_VALUE_Pos) /**< \brief (SYS_GPBR[8]) Value of GPBR x */ +#define SYS_GPBR_GPBR_VALUE(value) ((SYS_GPBR_GPBR_VALUE_Msk & ((value) << SYS_GPBR_GPBR_VALUE_Pos))) + +/*@}*/ + + +#endif /* _SAM3XA_GPBR_COMPONENT_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_hsmci.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_hsmci.h index 2944530a1..c56c94b28 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_HSMCI_COMPONENT_ #define _SAM3XA_HSMCI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/matrix.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_matrix.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_matrix.h index f51208e52..3ec9137ea 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_MATRIX_COMPONENT_ #define _SAM3XA_MATRIX_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pdc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pdc.h similarity index 75% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/pdc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pdc.h index b042446b9..fffd19b5c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pdc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pdc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PDC_COMPONENT_ #define _SAM3XA_PDC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pio.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pio.h similarity index 98% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/pio.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pio.h index cdb9567c6..df598b8e1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pio.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pio.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIO_COMPONENT_ #define _SAM3XA_PIO_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pmc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pmc.h similarity index 73% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pmc.h index 5b31715ba..51a2551df 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PMC_COMPONENT_ #define _SAM3XA_PMC_COMPONENT_ @@ -45,26 +72,31 @@ typedef struct { WoReg PMC_PCDR1; /**< \brief (Pmc Offset: 0x0104) Peripheral Clock Disable Register 1 */ RoReg PMC_PCSR1; /**< \brief (Pmc Offset: 0x0108) Peripheral Clock Status Register 1 */ RwReg PMC_PCR; /**< \brief (Pmc Offset: 0x010C) Peripheral Control Register */ + RwReg PMC_OCR; /**< \brief (Pmc Offset: 0x0110) Oscillator Calibration Register */ } Pmc; #endif /* __ASSEMBLY__ */ /* -------- PMC_SCER : (PMC Offset: 0x0000) System Clock Enable Register -------- */ -#define PMC_SCER_UOTGCK (0x1u << 5) /**< \brief (PMC_SCER) Enable USB OTG Clock (48 MHz, USB_48M) for UTMI */ +#define PMC_SCER_UOTGCLK (0x1u << 5) /**< \brief (PMC_SCER) Enable USB OTG Clock (48 MHz, USB_48M) for UTMI */ #define PMC_SCER_PCK0 (0x1u << 8) /**< \brief (PMC_SCER) Programmable Clock 0 Output Enable */ #define PMC_SCER_PCK1 (0x1u << 9) /**< \brief (PMC_SCER) Programmable Clock 1 Output Enable */ #define PMC_SCER_PCK2 (0x1u << 10) /**< \brief (PMC_SCER) Programmable Clock 2 Output Enable */ /* -------- PMC_SCDR : (PMC Offset: 0x0004) System Clock Disable Register -------- */ -#define PMC_SCDR_UOTGCK (0x1u << 5) /**< \brief (PMC_SCDR) Disable USB OTG Clock (48 MHz, USB_48M) for UTMI */ +#define PMC_SCDR_UOTGCLK (0x1u << 5) /**< \brief (PMC_SCDR) Disable USB OTG Clock (48 MHz, USB_48M) for UTMI */ #define PMC_SCDR_PCK0 (0x1u << 8) /**< \brief (PMC_SCDR) Programmable Clock 0 Output Disable */ #define PMC_SCDR_PCK1 (0x1u << 9) /**< \brief (PMC_SCDR) Programmable Clock 1 Output Disable */ #define PMC_SCDR_PCK2 (0x1u << 10) /**< \brief (PMC_SCDR) Programmable Clock 2 Output Disable */ /* -------- PMC_SCSR : (PMC Offset: 0x0008) System Clock Status Register -------- */ -#define PMC_SCSR_UOTGCK (0x1u << 5) /**< \brief (PMC_SCSR) USB OTG Clock (48 MHz, USB_48M) for UTMI */ -#define PMC_SCSR_UOTGCK_DISABLE (0x0u << 5) /**< \brief (PMC_SCSR) USB_48M is disabled in normal operation mode. */ -#define PMC_SCSR_UOTGCK_ENABLE (0x1u << 5) /**< \brief (PMC_SCSR) Enable USB_48M (to use if SPDCONF =1). */ +#define PMC_SCSR_UOTGCLK (0x1u << 5) /**< \brief (PMC_SCSR) USB OTG Clock (48 MHz, USB_48M) Clock Status */ #define PMC_SCSR_PCK0 (0x1u << 8) /**< \brief (PMC_SCSR) Programmable Clock 0 Output Status */ #define PMC_SCSR_PCK1 (0x1u << 9) /**< \brief (PMC_SCSR) Programmable Clock 1 Output Status */ #define PMC_SCSR_PCK2 (0x1u << 10) /**< \brief (PMC_SCSR) Programmable Clock 2 Output Status */ /* -------- PMC_PCER0 : (PMC Offset: 0x0010) Peripheral Clock Enable Register 0 -------- */ +#define PMC_PCER0_PID2 (0x1u << 2) /**< \brief (PMC_PCER0) Peripheral Clock 2 Enable */ +#define PMC_PCER0_PID3 (0x1u << 3) /**< \brief (PMC_PCER0) Peripheral Clock 3 Enable */ +#define PMC_PCER0_PID4 (0x1u << 4) /**< \brief (PMC_PCER0) Peripheral Clock 4 Enable */ +#define PMC_PCER0_PID5 (0x1u << 5) /**< \brief (PMC_PCER0) Peripheral Clock 5 Enable */ +#define PMC_PCER0_PID6 (0x1u << 6) /**< \brief (PMC_PCER0) Peripheral Clock 6 Enable */ +#define PMC_PCER0_PID7 (0x1u << 7) /**< \brief (PMC_PCER0) Peripheral Clock 7 Enable */ #define PMC_PCER0_PID8 (0x1u << 8) /**< \brief (PMC_PCER0) Peripheral Clock 8 Enable */ #define PMC_PCER0_PID9 (0x1u << 9) /**< \brief (PMC_PCER0) Peripheral Clock 9 Enable */ #define PMC_PCER0_PID10 (0x1u << 10) /**< \brief (PMC_PCER0) Peripheral Clock 10 Enable */ @@ -90,6 +122,12 @@ typedef struct { #define PMC_PCER0_PID30 (0x1u << 30) /**< \brief (PMC_PCER0) Peripheral Clock 30 Enable */ #define PMC_PCER0_PID31 (0x1u << 31) /**< \brief (PMC_PCER0) Peripheral Clock 31 Enable */ /* -------- PMC_PCDR0 : (PMC Offset: 0x0014) Peripheral Clock Disable Register 0 -------- */ +#define PMC_PCDR0_PID2 (0x1u << 2) /**< \brief (PMC_PCDR0) Peripheral Clock 2 Disable */ +#define PMC_PCDR0_PID3 (0x1u << 3) /**< \brief (PMC_PCDR0) Peripheral Clock 3 Disable */ +#define PMC_PCDR0_PID4 (0x1u << 4) /**< \brief (PMC_PCDR0) Peripheral Clock 4 Disable */ +#define PMC_PCDR0_PID5 (0x1u << 5) /**< \brief (PMC_PCDR0) Peripheral Clock 5 Disable */ +#define PMC_PCDR0_PID6 (0x1u << 6) /**< \brief (PMC_PCDR0) Peripheral Clock 6 Disable */ +#define PMC_PCDR0_PID7 (0x1u << 7) /**< \brief (PMC_PCDR0) Peripheral Clock 7 Disable */ #define PMC_PCDR0_PID8 (0x1u << 8) /**< \brief (PMC_PCDR0) Peripheral Clock 8 Disable */ #define PMC_PCDR0_PID9 (0x1u << 9) /**< \brief (PMC_PCDR0) Peripheral Clock 9 Disable */ #define PMC_PCDR0_PID10 (0x1u << 10) /**< \brief (PMC_PCDR0) Peripheral Clock 10 Disable */ @@ -115,6 +153,12 @@ typedef struct { #define PMC_PCDR0_PID30 (0x1u << 30) /**< \brief (PMC_PCDR0) Peripheral Clock 30 Disable */ #define PMC_PCDR0_PID31 (0x1u << 31) /**< \brief (PMC_PCDR0) Peripheral Clock 31 Disable */ /* -------- PMC_PCSR0 : (PMC Offset: 0x0018) Peripheral Clock Status Register 0 -------- */ +#define PMC_PCSR0_PID2 (0x1u << 2) /**< \brief (PMC_PCSR0) Peripheral Clock 2 Status */ +#define PMC_PCSR0_PID3 (0x1u << 3) /**< \brief (PMC_PCSR0) Peripheral Clock 3 Status */ +#define PMC_PCSR0_PID4 (0x1u << 4) /**< \brief (PMC_PCSR0) Peripheral Clock 4 Status */ +#define PMC_PCSR0_PID5 (0x1u << 5) /**< \brief (PMC_PCSR0) Peripheral Clock 5 Status */ +#define PMC_PCSR0_PID6 (0x1u << 6) /**< \brief (PMC_PCSR0) Peripheral Clock 6 Status */ +#define PMC_PCSR0_PID7 (0x1u << 7) /**< \brief (PMC_PCSR0) Peripheral Clock 7 Status */ #define PMC_PCSR0_PID8 (0x1u << 8) /**< \brief (PMC_PCSR0) Peripheral Clock 8 Status */ #define PMC_PCSR0_PID9 (0x1u << 9) /**< \brief (PMC_PCSR0) Peripheral Clock 9 Status */ #define PMC_PCSR0_PID10 (0x1u << 10) /**< \brief (PMC_PCSR0) Peripheral Clock 10 Status */ @@ -147,13 +191,12 @@ typedef struct { /* -------- CKGR_MOR : (PMC Offset: 0x0020) Main Oscillator Register -------- */ #define CKGR_MOR_MOSCXTEN (0x1u << 0) /**< \brief (CKGR_MOR) Main Crystal Oscillator Enable */ #define CKGR_MOR_MOSCXTBY (0x1u << 1) /**< \brief (CKGR_MOR) Main Crystal Oscillator Bypass */ -#define CKGR_MOR_WAITMODE (0x1u << 2) /**< \brief (CKGR_MOR) Wait Mode Command */ #define CKGR_MOR_MOSCRCEN (0x1u << 3) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Enable */ #define CKGR_MOR_MOSCRCF_Pos 4 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) /**< \brief (CKGR_MOR) Main On-Chip RC Oscillator Frequency Selection */ -#define CKGR_MOR_MOSCRCF_4MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ -#define CKGR_MOR_MOSCRCF_8MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ -#define CKGR_MOR_MOSCRCF_12MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ +#define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 4 MHz (default) */ +#define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 8 MHz */ +#define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) /**< \brief (CKGR_MOR) The Fast RC Oscillator Frequency is at 12 MHz */ #define CKGR_MOR_MOSCXTST_Pos 8 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) /**< \brief (CKGR_MOR) Main Crystal Oscillator Start-up Time */ #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) @@ -176,17 +219,17 @@ typedef struct { #define CKGR_PLLAR_MULA_Pos 16 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) /**< \brief (CKGR_PLLAR) PLLA Multiplier */ #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) -#define CKGR_PLLAR_STUCKTO1 (0x1u << 29) /**< \brief (CKGR_PLLAR) */ +#define CKGR_PLLAR_ONE (0x1u << 29) /**< \brief (CKGR_PLLAR) Must Be Set to 1 */ /* -------- PMC_MCKR : (PMC Offset: 0x0030) Master Clock Register -------- */ #define PMC_MCKR_CSS_Pos 0 #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) /**< \brief (PMC_MCKR) Master Clock Source Selection */ #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_MCKR) Slow Clock is selected */ #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_MCKR) Main Clock is selected */ #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_MCKR) PLLA Clock is selected */ -#define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_MCKR) UPLL/2 Clock is selected */ +#define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_MCKR) UPLL Clock is selected */ #define PMC_MCKR_PRES_Pos 4 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) /**< \brief (PMC_MCKR) Processor Clock Prescaler */ -#define PMC_MCKR_PRES_CLK_1 (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ +#define PMC_MCKR_PRES_CLK (0x0u << 4) /**< \brief (PMC_MCKR) Selected clock */ #define PMC_MCKR_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 2 */ #define PMC_MCKR_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 4 */ #define PMC_MCKR_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 8 */ @@ -194,7 +237,8 @@ typedef struct { #define PMC_MCKR_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 32 */ #define PMC_MCKR_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 64 */ #define PMC_MCKR_PRES_CLK_3 (0x7u << 4) /**< \brief (PMC_MCKR) Selected clock divided by 3 */ -#define PMC_MCKR_UPLLDIV (0x1u << 13) /**< \brief (PMC_MCKR) UPLL Divider */ +#define PMC_MCKR_PLLADIV2 (0x1u << 12) /**< \brief (PMC_MCKR) PLLA Divisor by 2 */ +#define PMC_MCKR_UPLLDIV2 (0x1u << 13) /**< \brief (PMC_MCKR) */ /* -------- PMC_USB : (PMC Offset: 0x0038) USB Clock Register -------- */ #define PMC_USB_USBS (0x1u << 0) /**< \brief (PMC_USB) USB Input Clock Selection */ #define PMC_USB_USBDIV_Pos 8 @@ -206,22 +250,15 @@ typedef struct { #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) /**< \brief (PMC_PCK[3]) Slow Clock is selected */ #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) /**< \brief (PMC_PCK[3]) Main Clock is selected */ #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) /**< \brief (PMC_PCK[3]) PLLA Clock is selected */ -#define PMC_PCK_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) UPLL/2 Clock is selected */ +#define PMC_PCK_CSS_UPLL_CLK (0x3u << 0) /**< \brief (PMC_PCK[3]) UPLL Clock is selected */ #define PMC_PCK_CSS_MCK (0x4u << 0) /**< \brief (PMC_PCK[3]) Master Clock is selected */ #define PMC_PCK_PRES_Pos 4 #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) /**< \brief (PMC_PCK[3]) Programmable Clock Prescaler */ -#define PMC_PCK_PRES_CLK_1 (0x0u << 4) /**< \brief (PMC_PCK[3]) Selected clock */ -#define PMC_PCK_PRES_CLK_2 (0x1u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 2 */ -#define PMC_PCK_PRES_CLK_4 (0x2u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 4 */ -#define PMC_PCK_PRES_CLK_8 (0x3u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 8 */ -#define PMC_PCK_PRES_CLK_16 (0x4u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 16 */ -#define PMC_PCK_PRES_CLK_32 (0x5u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 32 */ -#define PMC_PCK_PRES_CLK_64 (0x6u << 4) /**< \brief (PMC_PCK[3]) Selected clock divided by 64 */ +#define PMC_PCK_PRES(value) ((PMC_PCK_PRES_Msk & ((value) << PMC_PCK_PRES_Pos))) /* -------- PMC_IER : (PMC Offset: 0x0060) Interrupt Enable Register -------- */ #define PMC_IER_MOSCXTS (0x1u << 0) /**< \brief (PMC_IER) Main Crystal Oscillator Status Interrupt Enable */ -#define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLL A Lock Interrupt Enable */ +#define PMC_IER_LOCKA (0x1u << 1) /**< \brief (PMC_IER) PLLA Lock Interrupt Enable */ #define PMC_IER_MCKRDY (0x1u << 3) /**< \brief (PMC_IER) Master Clock Ready Interrupt Enable */ -#define PMC_IER_LOCKU (0x1u << 6) /**< \brief (PMC_IER) UTMI PLL Lock Interrupt Enable */ #define PMC_IER_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IER) Programmable Clock Ready 0 Interrupt Enable */ #define PMC_IER_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IER) Programmable Clock Ready 1 Interrupt Enable */ #define PMC_IER_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IER) Programmable Clock Ready 2 Interrupt Enable */ @@ -230,9 +267,8 @@ typedef struct { #define PMC_IER_CFDEV (0x1u << 18) /**< \brief (PMC_IER) Clock Failure Detector Event Interrupt Enable */ /* -------- PMC_IDR : (PMC Offset: 0x0064) Interrupt Disable Register -------- */ #define PMC_IDR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IDR) Main Crystal Oscillator Status Interrupt Disable */ -#define PMC_IDR_LOCKA (0x1u << 1) /**< \brief (PMC_IDR) PLL A Lock Interrupt Disable */ +#define PMC_IDR_LOCKA (0x1u << 1) /**< \brief (PMC_IDR) PLLA Lock Interrupt Disable */ #define PMC_IDR_MCKRDY (0x1u << 3) /**< \brief (PMC_IDR) Master Clock Ready Interrupt Disable */ -#define PMC_IDR_LOCKU (0x1u << 6) /**< \brief (PMC_IDR) UTMI PLL Lock Interrupt Disable */ #define PMC_IDR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IDR) Programmable Clock Ready 0 Interrupt Disable */ #define PMC_IDR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IDR) Programmable Clock Ready 1 Interrupt Disable */ #define PMC_IDR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IDR) Programmable Clock Ready 2 Interrupt Disable */ @@ -241,9 +277,8 @@ typedef struct { #define PMC_IDR_CFDEV (0x1u << 18) /**< \brief (PMC_IDR) Clock Failure Detector Event Interrupt Disable */ /* -------- PMC_SR : (PMC Offset: 0x0068) Status Register -------- */ #define PMC_SR_MOSCXTS (0x1u << 0) /**< \brief (PMC_SR) Main XTAL Oscillator Status */ -#define PMC_SR_LOCKA (0x1u << 1) /**< \brief (PMC_SR) PLL A Lock Status */ +#define PMC_SR_LOCKA (0x1u << 1) /**< \brief (PMC_SR) PLLA Lock Status */ #define PMC_SR_MCKRDY (0x1u << 3) /**< \brief (PMC_SR) Master Clock Status */ -#define PMC_SR_LOCKU (0x1u << 6) /**< \brief (PMC_SR) UTMI PLL Lock Status */ #define PMC_SR_OSCSELS (0x1u << 7) /**< \brief (PMC_SR) Slow Clock Oscillator Selection */ #define PMC_SR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_SR) Programmable Clock Ready Status */ #define PMC_SR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_SR) Programmable Clock Ready Status */ @@ -255,9 +290,8 @@ typedef struct { #define PMC_SR_FOS (0x1u << 20) /**< \brief (PMC_SR) Clock Failure Detector Fault Output Status */ /* -------- PMC_IMR : (PMC Offset: 0x006C) Interrupt Mask Register -------- */ #define PMC_IMR_MOSCXTS (0x1u << 0) /**< \brief (PMC_IMR) Main Crystal Oscillator Status Interrupt Mask */ -#define PMC_IMR_LOCKA (0x1u << 1) /**< \brief (PMC_IMR) PLL A Lock Interrupt Mask */ +#define PMC_IMR_LOCKA (0x1u << 1) /**< \brief (PMC_IMR) PLLA Lock Interrupt Mask */ #define PMC_IMR_MCKRDY (0x1u << 3) /**< \brief (PMC_IMR) Master Clock Ready Interrupt Mask */ -#define PMC_IMR_LOCKU (0x1u << 6) /**< \brief (PMC_IMR) UTMI PLL Lock Interrupt Mask */ #define PMC_IMR_PCKRDY0 (0x1u << 8) /**< \brief (PMC_IMR) Programmable Clock Ready 0 Interrupt Mask */ #define PMC_IMR_PCKRDY1 (0x1u << 9) /**< \brief (PMC_IMR) Programmable Clock Ready 1 Interrupt Mask */ #define PMC_IMR_PCKRDY2 (0x1u << 10) /**< \brief (PMC_IMR) Programmable Clock Ready 2 Interrupt Mask */ @@ -286,22 +320,22 @@ typedef struct { #define PMC_FSMR_USBAL (0x1u << 18) /**< \brief (PMC_FSMR) USB Alarm Enable */ #define PMC_FSMR_LPM (0x1u << 20) /**< \brief (PMC_FSMR) Low Power Mode */ /* -------- PMC_FSPR : (PMC Offset: 0x0074) Fast Startup Polarity Register -------- */ -#define PMC_FSPR_FSTP0 (0x1u << 0) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP1 (0x1u << 1) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP2 (0x1u << 2) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP3 (0x1u << 3) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP4 (0x1u << 4) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP5 (0x1u << 5) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP6 (0x1u << 6) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP7 (0x1u << 7) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP8 (0x1u << 8) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP9 (0x1u << 9) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP10 (0x1u << 10) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP11 (0x1u << 11) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP12 (0x1u << 12) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP13 (0x1u << 13) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP14 (0x1u << 14) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ -#define PMC_FSPR_FSTP15 (0x1u << 15) /**< \brief (PMC_FSPR) Fast Startup Input Polarity */ +#define PMC_FSPR_FSTP0 (0x1u << 0) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP1 (0x1u << 1) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP2 (0x1u << 2) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP3 (0x1u << 3) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP4 (0x1u << 4) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP5 (0x1u << 5) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP6 (0x1u << 6) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP7 (0x1u << 7) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP8 (0x1u << 8) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP9 (0x1u << 9) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP10 (0x1u << 10) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP11 (0x1u << 11) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP12 (0x1u << 12) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP13 (0x1u << 13) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP14 (0x1u << 14) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ +#define PMC_FSPR_FSTP15 (0x1u << 15) /**< \brief (PMC_FSPR) Fast Startup Input Polarityx */ /* -------- PMC_FOCR : (PMC Offset: 0x0078) Fault Output Clear Register -------- */ #define PMC_FOCR_FOCLR (0x1u << 0) /**< \brief (PMC_FOCR) Fault Output Clear */ /* -------- PMC_WPMR : (PMC Offset: 0x00E4) Write Protect Mode Register -------- */ @@ -327,6 +361,25 @@ typedef struct { #define PMC_PCER1_PID42 (0x1u << 10) /**< \brief (PMC_PCER1) Peripheral Clock 42 Enable */ #define PMC_PCER1_PID43 (0x1u << 11) /**< \brief (PMC_PCER1) Peripheral Clock 43 Enable */ #define PMC_PCER1_PID44 (0x1u << 12) /**< \brief (PMC_PCER1) Peripheral Clock 44 Enable */ +#define PMC_PCER1_PID45 (0x1u << 13) /**< \brief (PMC_PCER1) Peripheral Clock 45 Enable */ +#define PMC_PCER1_PID46 (0x1u << 14) /**< \brief (PMC_PCER1) Peripheral Clock 46 Enable */ +#define PMC_PCER1_PID47 (0x1u << 15) /**< \brief (PMC_PCER1) Peripheral Clock 47 Enable */ +#define PMC_PCER1_PID48 (0x1u << 16) /**< \brief (PMC_PCER1) Peripheral Clock 48 Enable */ +#define PMC_PCER1_PID49 (0x1u << 17) /**< \brief (PMC_PCER1) Peripheral Clock 49 Enable */ +#define PMC_PCER1_PID50 (0x1u << 18) /**< \brief (PMC_PCER1) Peripheral Clock 50 Enable */ +#define PMC_PCER1_PID51 (0x1u << 19) /**< \brief (PMC_PCER1) Peripheral Clock 51 Enable */ +#define PMC_PCER1_PID52 (0x1u << 20) /**< \brief (PMC_PCER1) Peripheral Clock 52 Enable */ +#define PMC_PCER1_PID53 (0x1u << 21) /**< \brief (PMC_PCER1) Peripheral Clock 53 Enable */ +#define PMC_PCER1_PID54 (0x1u << 22) /**< \brief (PMC_PCER1) Peripheral Clock 54 Enable */ +#define PMC_PCER1_PID55 (0x1u << 23) /**< \brief (PMC_PCER1) Peripheral Clock 55 Enable */ +#define PMC_PCER1_PID56 (0x1u << 24) /**< \brief (PMC_PCER1) Peripheral Clock 56 Enable */ +#define PMC_PCER1_PID57 (0x1u << 25) /**< \brief (PMC_PCER1) Peripheral Clock 57 Enable */ +#define PMC_PCER1_PID58 (0x1u << 26) /**< \brief (PMC_PCER1) Peripheral Clock 58 Enable */ +#define PMC_PCER1_PID59 (0x1u << 27) /**< \brief (PMC_PCER1) Peripheral Clock 59 Enable */ +#define PMC_PCER1_PID60 (0x1u << 28) /**< \brief (PMC_PCER1) Peripheral Clock 60 Enable */ +#define PMC_PCER1_PID61 (0x1u << 29) /**< \brief (PMC_PCER1) Peripheral Clock 61 Enable */ +#define PMC_PCER1_PID62 (0x1u << 30) /**< \brief (PMC_PCER1) Peripheral Clock 62 Enable */ +#define PMC_PCER1_PID63 (0x1u << 31) /**< \brief (PMC_PCER1) Peripheral Clock 63 Enable */ /* -------- PMC_PCDR1 : (PMC Offset: 0x0104) Peripheral Clock Disable Register 1 -------- */ #define PMC_PCDR1_PID32 (0x1u << 0) /**< \brief (PMC_PCDR1) Peripheral Clock 32 Disable */ #define PMC_PCDR1_PID33 (0x1u << 1) /**< \brief (PMC_PCDR1) Peripheral Clock 33 Disable */ @@ -341,6 +394,25 @@ typedef struct { #define PMC_PCDR1_PID42 (0x1u << 10) /**< \brief (PMC_PCDR1) Peripheral Clock 42 Disable */ #define PMC_PCDR1_PID43 (0x1u << 11) /**< \brief (PMC_PCDR1) Peripheral Clock 43 Disable */ #define PMC_PCDR1_PID44 (0x1u << 12) /**< \brief (PMC_PCDR1) Peripheral Clock 44 Disable */ +#define PMC_PCDR1_PID45 (0x1u << 13) /**< \brief (PMC_PCDR1) Peripheral Clock 45 Disable */ +#define PMC_PCDR1_PID46 (0x1u << 14) /**< \brief (PMC_PCDR1) Peripheral Clock 46 Disable */ +#define PMC_PCDR1_PID47 (0x1u << 15) /**< \brief (PMC_PCDR1) Peripheral Clock 47 Disable */ +#define PMC_PCDR1_PID48 (0x1u << 16) /**< \brief (PMC_PCDR1) Peripheral Clock 48 Disable */ +#define PMC_PCDR1_PID49 (0x1u << 17) /**< \brief (PMC_PCDR1) Peripheral Clock 49 Disable */ +#define PMC_PCDR1_PID50 (0x1u << 18) /**< \brief (PMC_PCDR1) Peripheral Clock 50 Disable */ +#define PMC_PCDR1_PID51 (0x1u << 19) /**< \brief (PMC_PCDR1) Peripheral Clock 51 Disable */ +#define PMC_PCDR1_PID52 (0x1u << 20) /**< \brief (PMC_PCDR1) Peripheral Clock 52 Disable */ +#define PMC_PCDR1_PID53 (0x1u << 21) /**< \brief (PMC_PCDR1) Peripheral Clock 53 Disable */ +#define PMC_PCDR1_PID54 (0x1u << 22) /**< \brief (PMC_PCDR1) Peripheral Clock 54 Disable */ +#define PMC_PCDR1_PID55 (0x1u << 23) /**< \brief (PMC_PCDR1) Peripheral Clock 55 Disable */ +#define PMC_PCDR1_PID56 (0x1u << 24) /**< \brief (PMC_PCDR1) Peripheral Clock 56 Disable */ +#define PMC_PCDR1_PID57 (0x1u << 25) /**< \brief (PMC_PCDR1) Peripheral Clock 57 Disable */ +#define PMC_PCDR1_PID58 (0x1u << 26) /**< \brief (PMC_PCDR1) Peripheral Clock 58 Disable */ +#define PMC_PCDR1_PID59 (0x1u << 27) /**< \brief (PMC_PCDR1) Peripheral Clock 59 Disable */ +#define PMC_PCDR1_PID60 (0x1u << 28) /**< \brief (PMC_PCDR1) Peripheral Clock 60 Disable */ +#define PMC_PCDR1_PID61 (0x1u << 29) /**< \brief (PMC_PCDR1) Peripheral Clock 61 Disable */ +#define PMC_PCDR1_PID62 (0x1u << 30) /**< \brief (PMC_PCDR1) Peripheral Clock 62 Disable */ +#define PMC_PCDR1_PID63 (0x1u << 31) /**< \brief (PMC_PCDR1) Peripheral Clock 63 Disable */ /* -------- PMC_PCSR1 : (PMC Offset: 0x0108) Peripheral Clock Status Register 1 -------- */ #define PMC_PCSR1_PID32 (0x1u << 0) /**< \brief (PMC_PCSR1) Peripheral Clock 32 Status */ #define PMC_PCSR1_PID33 (0x1u << 1) /**< \brief (PMC_PCSR1) Peripheral Clock 33 Status */ @@ -355,6 +427,25 @@ typedef struct { #define PMC_PCSR1_PID42 (0x1u << 10) /**< \brief (PMC_PCSR1) Peripheral Clock 42 Status */ #define PMC_PCSR1_PID43 (0x1u << 11) /**< \brief (PMC_PCSR1) Peripheral Clock 43 Status */ #define PMC_PCSR1_PID44 (0x1u << 12) /**< \brief (PMC_PCSR1) Peripheral Clock 44 Status */ +#define PMC_PCSR1_PID45 (0x1u << 13) /**< \brief (PMC_PCSR1) Peripheral Clock 45 Status */ +#define PMC_PCSR1_PID46 (0x1u << 14) /**< \brief (PMC_PCSR1) Peripheral Clock 46 Status */ +#define PMC_PCSR1_PID47 (0x1u << 15) /**< \brief (PMC_PCSR1) Peripheral Clock 47 Status */ +#define PMC_PCSR1_PID48 (0x1u << 16) /**< \brief (PMC_PCSR1) Peripheral Clock 48 Status */ +#define PMC_PCSR1_PID49 (0x1u << 17) /**< \brief (PMC_PCSR1) Peripheral Clock 49 Status */ +#define PMC_PCSR1_PID50 (0x1u << 18) /**< \brief (PMC_PCSR1) Peripheral Clock 50 Status */ +#define PMC_PCSR1_PID51 (0x1u << 19) /**< \brief (PMC_PCSR1) Peripheral Clock 51 Status */ +#define PMC_PCSR1_PID52 (0x1u << 20) /**< \brief (PMC_PCSR1) Peripheral Clock 52 Status */ +#define PMC_PCSR1_PID53 (0x1u << 21) /**< \brief (PMC_PCSR1) Peripheral Clock 53 Status */ +#define PMC_PCSR1_PID54 (0x1u << 22) /**< \brief (PMC_PCSR1) Peripheral Clock 54 Status */ +#define PMC_PCSR1_PID55 (0x1u << 23) /**< \brief (PMC_PCSR1) Peripheral Clock 55 Status */ +#define PMC_PCSR1_PID56 (0x1u << 24) /**< \brief (PMC_PCSR1) Peripheral Clock 56 Status */ +#define PMC_PCSR1_PID57 (0x1u << 25) /**< \brief (PMC_PCSR1) Peripheral Clock 57 Status */ +#define PMC_PCSR1_PID58 (0x1u << 26) /**< \brief (PMC_PCSR1) Peripheral Clock 58 Status */ +#define PMC_PCSR1_PID59 (0x1u << 27) /**< \brief (PMC_PCSR1) Peripheral Clock 59 Status */ +#define PMC_PCSR1_PID60 (0x1u << 28) /**< \brief (PMC_PCSR1) Peripheral Clock 60 Status */ +#define PMC_PCSR1_PID61 (0x1u << 29) /**< \brief (PMC_PCSR1) Peripheral Clock 61 Status */ +#define PMC_PCSR1_PID62 (0x1u << 30) /**< \brief (PMC_PCSR1) Peripheral Clock 62 Status */ +#define PMC_PCSR1_PID63 (0x1u << 31) /**< \brief (PMC_PCSR1) Peripheral Clock 63 Status */ /* -------- PMC_PCR : (PMC Offset: 0x010C) Peripheral Control Register -------- */ #define PMC_PCR_PID_Pos 0 #define PMC_PCR_PID_Msk (0x3fu << PMC_PCR_PID_Pos) /**< \brief (PMC_PCR) Peripheral ID */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pwm.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pwm.h similarity index 97% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pwm.h index 4e1619caa..150737fd4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PWM_COMPONENT_ #define _SAM3XA_PWM_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/rstc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rstc.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/rstc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rstc.h index 193acde62..225a768b4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/rstc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rstc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_RSTC_COMPONENT_ #define _SAM3XA_RSTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/rtc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rtc.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rtc.h index 6d38098c2..0f29c6c18 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_RTC_COMPONENT_ #define _SAM3XA_RTC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/rtt.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rtt.h similarity index 56% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/rtt.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rtt.h index 6e23fe7db..0903a2254 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/rtt.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_rtt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_RTT_COMPONENT_ #define _SAM3XA_RTT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/sdramc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_sdramc.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/sdramc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_sdramc.h index 2d75d588a..ac1069551 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/sdramc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_sdramc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SDRAMC_COMPONENT_ #define _SAM3XA_SDRAMC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/smc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_smc.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/smc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_smc.h index 8566018f8..eec8fa3ae 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SMC_COMPONENT_ #define _SAM3XA_SMC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/spi.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_spi.h similarity index 86% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/spi.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_spi.h index c208987d8..eaae250a9 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/spi.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_spi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SPI_COMPONENT_ #define _SAM3XA_SPI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/ssc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_ssc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_ssc.h index 2ab12059c..ba96be3c0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SSC_COMPONENT_ #define _SAM3XA_SSC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/supc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_supc.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/supc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_supc.h index 8ae49ba96..36af1123c 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/supc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_supc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SUPC_COMPONENT_ #define _SAM3XA_SUPC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/tc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_tc.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/tc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_tc.h index 9a2db8f3d..88324bb18 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/tc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_tc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TC_COMPONENT_ #define _SAM3XA_TC_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/trng.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_trng.h similarity index 60% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/trng.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_trng.h index 19207daec..4deac7f75 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/trng.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_trng.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TRNG_COMPONENT_ #define _SAM3XA_TRNG_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/twi.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_twi.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/twi.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_twi.h index 8b6f5fadc..cdc10d858 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/twi.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_twi.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TWI_COMPONENT_ #define _SAM3XA_TWI_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/uart.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_uart.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/uart.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_uart.h index 6333045e3..dc8f47c93 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_UART_COMPONENT_ #define _SAM3XA_UART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/uotghs.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_uotghs.h similarity index 98% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/uotghs.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_uotghs.h index 164449379..15ec768e5 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/uotghs.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_uotghs.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_UOTGHS_COMPONENT_ #define _SAM3XA_UOTGHS_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/usart.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_usart.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/usart.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_usart.h index 886bb364e..4e9ad8e8e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/usart.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_usart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_USART_COMPONENT_ #define _SAM3XA_USART_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/component/wdt.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_wdt.h similarity index 58% rename from hardware/sam/system/libsam/cmsis/sam3x/include/component/wdt.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_wdt.h index 25e142a60..aa5772b3d 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/component/wdt.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/component/component_wdt.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_WDT_COMPONENT_ #define _SAM3XA_WDT_COMPONENT_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/adc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_adc.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/adc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_adc.h index 07e6ecfe6..a9f2279d0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/adc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_adc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_ADC_INSTANCE_ #define _SAM3XA_ADC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/can0.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_can0.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/can0.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_can0.h index 80141856c..0307bef86 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/can0.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_can0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_CAN0_INSTANCE_ #define _SAM3XA_CAN0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/can1.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_can1.h similarity index 91% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/can1.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_can1.h index b85eeb4db..4662d18ab 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/can1.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_can1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_CAN1_INSTANCE_ #define _SAM3XA_CAN1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_chipid.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_chipid.h new file mode 100644 index 000000000..b5f550d22 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_chipid.h @@ -0,0 +1,42 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_CHIPID_INSTANCE_ +#define _SAM3XA_CHIPID_INSTANCE_ + +/* ========== Register definition for CHIPID peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_CHIPID_CIDR (0x400E0940U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (0x400E0944U) /**< \brief (CHIPID) Chip ID Extension Register */ +#else +#define REG_CHIPID_CIDR (*(RoReg*)0x400E0940U) /**< \brief (CHIPID) Chip ID Register */ +#define REG_CHIPID_EXID (*(RoReg*)0x400E0944U) /**< \brief (CHIPID) Chip ID Extension Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_CHIPID_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/dacc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_dacc.h similarity index 74% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/dacc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_dacc.h index f9b43e451..e27cb4ef7 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/dacc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_dacc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_DACC_INSTANCE_ #define _SAM3XA_DACC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/dmac.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_dmac.h similarity index 88% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/dmac.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_dmac.h index 9aec6305e..1301e38eb 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/dmac.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_dmac.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_DMAC_INSTANCE_ #define _SAM3XA_DMAC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc0.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc0.h new file mode 100644 index 000000000..278d2cc57 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc0.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_EFC0_INSTANCE_ +#define _SAM3XA_EFC0_INSTANCE_ + +/* ========== Register definition for EFC0 peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC0_FMR (0x400E0A00U) /**< \brief (EFC0) EEFC Flash Mode Register */ +#define REG_EFC0_FCR (0x400E0A04U) /**< \brief (EFC0) EEFC Flash Command Register */ +#define REG_EFC0_FSR (0x400E0A08U) /**< \brief (EFC0) EEFC Flash Status Register */ +#define REG_EFC0_FRR (0x400E0A0CU) /**< \brief (EFC0) EEFC Flash Result Register */ +#else +#define REG_EFC0_FMR (*(RwReg*)0x400E0A00U) /**< \brief (EFC0) EEFC Flash Mode Register */ +#define REG_EFC0_FCR (*(WoReg*)0x400E0A04U) /**< \brief (EFC0) EEFC Flash Command Register */ +#define REG_EFC0_FSR (*(RoReg*)0x400E0A08U) /**< \brief (EFC0) EEFC Flash Status Register */ +#define REG_EFC0_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC0) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_EFC0_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc1.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc1.h new file mode 100644 index 000000000..3fb5cb54c --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_efc1.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_EFC1_INSTANCE_ +#define _SAM3XA_EFC1_INSTANCE_ + +/* ========== Register definition for EFC1 peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_EFC1_FMR (0x400E0C00U) /**< \brief (EFC1) EEFC Flash Mode Register */ +#define REG_EFC1_FCR (0x400E0C04U) /**< \brief (EFC1) EEFC Flash Command Register */ +#define REG_EFC1_FSR (0x400E0C08U) /**< \brief (EFC1) EEFC Flash Status Register */ +#define REG_EFC1_FRR (0x400E0C0CU) /**< \brief (EFC1) EEFC Flash Result Register */ +#else +#define REG_EFC1_FMR (*(RwReg*)0x400E0C00U) /**< \brief (EFC1) EEFC Flash Mode Register */ +#define REG_EFC1_FCR (*(WoReg*)0x400E0C04U) /**< \brief (EFC1) EEFC Flash Command Register */ +#define REG_EFC1_FSR (*(RoReg*)0x400E0C08U) /**< \brief (EFC1) EEFC Flash Status Register */ +#define REG_EFC1_FRR (*(RoReg*)0x400E0C0CU) /**< \brief (EFC1) EEFC Flash Result Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_EFC1_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/emac.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_emac.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/emac.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_emac.h index 122c1f824..c67415ea3 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/emac.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_emac.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_EMAC_INSTANCE_ #define _SAM3XA_EMAC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_gpbr.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_gpbr.h new file mode 100644 index 000000000..b96b12e94 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_gpbr.h @@ -0,0 +1,40 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_GPBR_INSTANCE_ +#define _SAM3XA_GPBR_INSTANCE_ + +/* ========== Register definition for GPBR peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_GPBR_GPBR (0x400E1A90U) /**< \brief (GPBR) General Purpose Backup Register */ +#else +#define REG_GPBR_GPBR (*(RwReg*)0x400E1A90U) /**< \brief (GPBR) General Purpose Backup Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_GPBR_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/hsmci.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_hsmci.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/hsmci.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_hsmci.h index fbc5e4b50..8fbfe4fd4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/hsmci.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_hsmci.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_HSMCI_INSTANCE_ #define _SAM3XA_HSMCI_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/matrix.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_matrix.h similarity index 68% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/matrix.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_matrix.h index deae8461c..c7fe7ec62 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/matrix.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_matrix.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_MATRIX_INSTANCE_ #define _SAM3XA_MATRIX_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioa.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioa.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioa.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioa.h index 97eb70e00..b678d0598 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioa.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioa.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIOA_INSTANCE_ #define _SAM3XA_PIOA_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/piob.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piob.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/piob.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piob.h index cd6e3e56c..36e88e401 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/piob.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piob.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIOB_INSTANCE_ #define _SAM3XA_PIOB_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioc.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioc.h index 1d5333adb..bda3019ae 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIOC_INSTANCE_ #define _SAM3XA_PIOC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/piod.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piod.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/piod.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piod.h index d9e939670..e58a65d9e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/piod.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piod.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIOD_INSTANCE_ #define _SAM3XA_PIOD_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioe.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioe.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioe.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioe.h index d2995e736..f4c6f0dac 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pioe.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pioe.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIOE_INSTANCE_ #define _SAM3XA_PIOE_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/piof.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piof.h similarity index 85% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/piof.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piof.h index 1329d1dcb..7d6846a67 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/piof.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_piof.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PIOF_INSTANCE_ #define _SAM3XA_PIOF_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pmc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pmc.h similarity index 74% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/pmc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pmc.h index 1e805c3fb..d08e59512 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pmc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pmc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PMC_INSTANCE_ #define _SAM3XA_PMC_INSTANCE_ @@ -31,6 +58,7 @@ #define REG_PMC_PCDR1 (0x400E0704U) /**< \brief (PMC) Peripheral Clock Disable Register 1 */ #define REG_PMC_PCSR1 (0x400E0708U) /**< \brief (PMC) Peripheral Clock Status Register 1 */ #define REG_PMC_PCR (0x400E070CU) /**< \brief (PMC) Peripheral Control Register */ +#define REG_PMC_OCR (0x400E0710U) /**< \brief (PMC) Oscillator Calibration Register */ #else #define REG_PMC_SCER (*(WoReg*)0x400E0600U) /**< \brief (PMC) System Clock Enable Register */ #define REG_PMC_SCDR (*(WoReg*)0x400E0604U) /**< \brief (PMC) System Clock Disable Register */ @@ -58,6 +86,7 @@ #define REG_PMC_PCDR1 (*(WoReg*)0x400E0704U) /**< \brief (PMC) Peripheral Clock Disable Register 1 */ #define REG_PMC_PCSR1 (*(RoReg*)0x400E0708U) /**< \brief (PMC) Peripheral Clock Status Register 1 */ #define REG_PMC_PCR (*(RwReg*)0x400E070CU) /**< \brief (PMC) Peripheral Control Register */ +#define REG_PMC_OCR (*(RwReg*)0x400E0710U) /**< \brief (PMC) Oscillator Calibration Register */ #endif /* __ASSEMBLY__ */ #endif /* _SAM3XA_PMC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pwm.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pwm.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/pwm.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pwm.h index fd33e95d1..79859cf8a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/pwm.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_pwm.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_PWM_INSTANCE_ #define _SAM3XA_PWM_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rstc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rstc.h new file mode 100644 index 000000000..e2cd8dd25 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rstc.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_RSTC_INSTANCE_ +#define _SAM3XA_RSTC_INSTANCE_ + +/* ========== Register definition for RSTC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RSTC_CR (0x400E1A00U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (0x400E1A04U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (0x400E1A08U) /**< \brief (RSTC) Mode Register */ +#else +#define REG_RSTC_CR (*(WoReg*)0x400E1A00U) /**< \brief (RSTC) Control Register */ +#define REG_RSTC_SR (*(RoReg*)0x400E1A04U) /**< \brief (RSTC) Status Register */ +#define REG_RSTC_MR (*(RwReg*)0x400E1A08U) /**< \brief (RSTC) Mode Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_RSTC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtc.h similarity index 62% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtc.h index f41bf4fa6..3aedcc492 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/rtc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_RTC_INSTANCE_ #define _SAM3XA_RTC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtt.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtt.h new file mode 100644 index 000000000..912a296ca --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_rtt.h @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_RTT_INSTANCE_ +#define _SAM3XA_RTT_INSTANCE_ + +/* ========== Register definition for RTT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_RTT_MR (0x400E1A30U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (0x400E1A34U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (0x400E1A38U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (0x400E1A3CU) /**< \brief (RTT) Status Register */ +#else +#define REG_RTT_MR (*(RwReg*)0x400E1A30U) /**< \brief (RTT) Mode Register */ +#define REG_RTT_AR (*(RwReg*)0x400E1A34U) /**< \brief (RTT) Alarm Register */ +#define REG_RTT_VR (*(RoReg*)0x400E1A38U) /**< \brief (RTT) Value Register */ +#define REG_RTT_SR (*(RoReg*)0x400E1A3CU) /**< \brief (RTT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_RTT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/sdramc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_sdramc.h similarity index 61% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/sdramc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_sdramc.h index d68c9961a..aebb86366 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/sdramc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_sdramc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SDRAMC_INSTANCE_ #define _SAM3XA_SDRAMC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/smc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_smc.h similarity index 90% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/smc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_smc.h index c5e7000bf..c5115cf63 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/smc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_smc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SMC_INSTANCE_ #define _SAM3XA_SMC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/spi0.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_spi0.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/spi0.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_spi0.h index ed8dd17bb..9d957ce16 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/spi0.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_spi0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SPI0_INSTANCE_ #define _SAM3XA_SPI0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/spi1.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_spi1.h similarity index 59% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/spi1.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_spi1.h index 6fe1f0c3a..f47352bae 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/spi1.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_spi1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SPI1_INSTANCE_ #define _SAM3XA_SPI1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/ssc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_ssc.h similarity index 69% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/ssc.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_ssc.h index 4e5ed6e35..34c1c0a00 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/ssc.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_ssc.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SSC_INSTANCE_ #define _SAM3XA_SSC_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_supc.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_supc.h new file mode 100644 index 000000000..5d5ecb50a --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_supc.h @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_SUPC_INSTANCE_ +#define _SAM3XA_SUPC_INSTANCE_ + +/* ========== Register definition for SUPC peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_SUPC_CR (0x400E1A10U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (0x400E1A14U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (0x400E1A18U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (0x400E1A1CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (0x400E1A20U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (0x400E1A24U) /**< \brief (SUPC) Supply Controller Status Register */ +#else +#define REG_SUPC_CR (*(WoReg*)0x400E1A10U) /**< \brief (SUPC) Supply Controller Control Register */ +#define REG_SUPC_SMMR (*(RwReg*)0x400E1A14U) /**< \brief (SUPC) Supply Controller Supply Monitor Mode Register */ +#define REG_SUPC_MR (*(RwReg*)0x400E1A18U) /**< \brief (SUPC) Supply Controller Mode Register */ +#define REG_SUPC_WUMR (*(RwReg*)0x400E1A1CU) /**< \brief (SUPC) Supply Controller Wake Up Mode Register */ +#define REG_SUPC_WUIR (*(RwReg*)0x400E1A20U) /**< \brief (SUPC) Supply Controller Wake Up Inputs Register */ +#define REG_SUPC_SR (*(RoReg*)0x400E1A24U) /**< \brief (SUPC) Supply Controller Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_SUPC_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc0.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc0.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc0.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc0.h index 71e6e65a0..10c6624ef 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc0.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TC0_INSTANCE_ #define _SAM3XA_TC0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc1.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc1.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc1.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc1.h index 191b75dd5..f40fcc1b1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc1.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TC1_INSTANCE_ #define _SAM3XA_TC1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc2.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc2.h similarity index 84% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc2.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc2.h index 5f93d83f6..4c4e86112 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/tc2.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_tc2.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TC2_INSTANCE_ #define _SAM3XA_TC2_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_trng.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_trng.h new file mode 100644 index 000000000..811cdafcd --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_trng.h @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TRNG_INSTANCE_ +#define _SAM3XA_TRNG_INSTANCE_ + +/* ========== Register definition for TRNG peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_TRNG_CR (0x400BC000U) /**< \brief (TRNG) Control Register */ +#define REG_TRNG_IER (0x400BC010U) /**< \brief (TRNG) Interrupt Enable Register */ +#define REG_TRNG_IDR (0x400BC014U) /**< \brief (TRNG) Interrupt Disable Register */ +#define REG_TRNG_IMR (0x400BC018U) /**< \brief (TRNG) Interrupt Mask Register */ +#define REG_TRNG_ISR (0x400BC01CU) /**< \brief (TRNG) Interrupt Status Register */ +#define REG_TRNG_ODATA (0x400BC050U) /**< \brief (TRNG) Output Data Register */ +#else +#define REG_TRNG_CR (*(WoReg*)0x400BC000U) /**< \brief (TRNG) Control Register */ +#define REG_TRNG_IER (*(WoReg*)0x400BC010U) /**< \brief (TRNG) Interrupt Enable Register */ +#define REG_TRNG_IDR (*(WoReg*)0x400BC014U) /**< \brief (TRNG) Interrupt Disable Register */ +#define REG_TRNG_IMR (*(RoReg*)0x400BC018U) /**< \brief (TRNG) Interrupt Mask Register */ +#define REG_TRNG_ISR (*(RoReg*)0x400BC01CU) /**< \brief (TRNG) Interrupt Status Register */ +#define REG_TRNG_ODATA (*(RoReg*)0x400BC050U) /**< \brief (TRNG) Output Data Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_TRNG_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/twi0.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_twi0.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/twi0.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_twi0.h index d8dca1153..357803339 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/twi0.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_twi0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TWI0_INSTANCE_ #define _SAM3XA_TWI0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/twi1.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_twi1.h similarity index 72% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/twi1.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_twi1.h index 1e9969a03..dc4aad851 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/twi1.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_twi1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_TWI1_INSTANCE_ #define _SAM3XA_TWI1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/uart.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_uart.h similarity index 70% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/uart.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_uart.h index 65275aeba..0bbf0ce65 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/uart.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_uart.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_UART_INSTANCE_ #define _SAM3XA_UART_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/uotghs.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_uotghs.h similarity index 94% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/uotghs.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_uotghs.h index b49f72937..7d40f7601 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/uotghs.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_uotghs.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_UOTGHS_INSTANCE_ #define _SAM3XA_UOTGHS_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart0.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart0.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart0.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart0.h index 929bb8b10..5f9d8b2b1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart0.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart0.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_USART0_INSTANCE_ #define _SAM3XA_USART0_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart1.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart1.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart1.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart1.h index df3d6d3e2..2574dccd1 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart1.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart1.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_USART1_INSTANCE_ #define _SAM3XA_USART1_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart2.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart2.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart2.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart2.h index de405cd4a..cff7d4bdd 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart2.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart2.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_USART2_INSTANCE_ #define _SAM3XA_USART2_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart3.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart3.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart3.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart3.h index 385793a36..357f20fbd 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/instance/usart3.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_usart3.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_USART3_INSTANCE_ #define _SAM3XA_USART3_INSTANCE_ diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_wdt.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_wdt.h new file mode 100644 index 000000000..e60630056 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/instance/instance_wdt.h @@ -0,0 +1,44 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_WDT_INSTANCE_ +#define _SAM3XA_WDT_INSTANCE_ + +/* ========== Register definition for WDT peripheral ========== */ +#ifdef __ASSEMBLY__ +#define REG_WDT_CR (0x400E1A50U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (0x400E1A54U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (0x400E1A58U) /**< \brief (WDT) Status Register */ +#else +#define REG_WDT_CR (*(WoReg*)0x400E1A50U) /**< \brief (WDT) Control Register */ +#define REG_WDT_MR (*(RwReg*)0x400E1A54U) /**< \brief (WDT) Mode Register */ +#define REG_WDT_SR (*(RoReg*)0x400E1A58U) /**< \brief (WDT) Status Register */ +#endif /* __ASSEMBLY__ */ + +#endif /* _SAM3XA_WDT_INSTANCE_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a2c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a2c.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a2c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a2c.h index de7c2e293..233a32c43 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3A2C_PIO_ #define _SAM3A2C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a4c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a4c.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a4c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a4c.h index 1d3953a9a..7cd79bbf0 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3A4C_PIO_ #define _SAM3A4C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a8c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a8c.h similarity index 92% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a8c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a8c.h index a1d15ff18..a04c6b7ea 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3a8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3a8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3A8C_PIO_ #define _SAM3A8C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2c.h index f17dd87c8..a43c75048 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2C_PIO_ #define _SAM3X2C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2e.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2e.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2e.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2e.h index 48d3ddb73..bfa0f2b3e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2e.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2E_PIO_ #define _SAM3X2E_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2g.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2g.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2g.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2g.h index 6d89e5a4c..55e4c5960 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2g.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2g.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2G_PIO_ #define _SAM3X2G_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2h.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2h.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2h.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2h.h index 9d8a30b00..c3b3e7be5 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x2h.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x2h.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2H_PIO_ #define _SAM3X2H_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4c.h index 3da251176..4afffcb8f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4C_PIO_ #define _SAM3X4C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4e.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4e.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4e.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4e.h index cb184e7ba..19d8355dc 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4e.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4E_PIO_ #define _SAM3X4E_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4g.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4g.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4g.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4g.h index e10aa9603..6d3997d5f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4g.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4g.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4G_PIO_ #define _SAM3X4G_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4h.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4h.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4h.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4h.h index 2f1ed2955..e74cd395e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x4h.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x4h.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4H_PIO_ #define _SAM3X4H_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8c.h similarity index 93% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8c.h index 955d2b74c..023fd5416 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8C_PIO_ #define _SAM3X8C_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8e.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8e.h similarity index 95% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8e.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8e.h index c1149299d..904349e07 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8e.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8E_PIO_ #define _SAM3X8E_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8g.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8g.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8g.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8g.h index b7743731e..fb73dfa80 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8g.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8g.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8G_PIO_ #define _SAM3X8G_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8h.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8h.h similarity index 96% rename from hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8h.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8h.h index 776c99a51..f438e52c4 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/pio/sam3x8h.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/pio/pio_sam3x8h.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8H_PIO_ #define _SAM3X8H_PIO_ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3a2c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a2c.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3a2c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a2c.h index ab100e2dd..47d0b5440 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3a2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3A2C_ #define _SAM3A2C_ @@ -105,32 +132,32 @@ typedef enum IRQn /** \addtogroup SAM3A2C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -139,38 +166,38 @@ typedef enum IRQn /** \addtogroup SAM3A2C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/uotghs.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -313,7 +340,7 @@ typedef enum IRQn /** \addtogroup SAM3A2C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3a2c.h" +#include "pio/pio_sam3a2c.h" /*@}*/ /* ************************************************************************** */ @@ -351,6 +378,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3A2C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3a4c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a4c.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3a4c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a4c.h index 98e9327cb..7c95eace8 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3a4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3A4C_ #define _SAM3A4C_ @@ -105,32 +132,32 @@ typedef enum IRQn /** \addtogroup SAM3A4C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -139,38 +166,38 @@ typedef enum IRQn /** \addtogroup SAM3A4C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/uotghs.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -313,7 +340,7 @@ typedef enum IRQn /** \addtogroup SAM3A4C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3a4c.h" +#include "pio/pio_sam3a4c.h" /*@}*/ /* ************************************************************************** */ @@ -351,6 +378,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3A4C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3a8c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a8c.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3a8c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a8c.h index d466bf57a..20ffbb2a7 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3a8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3a8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3A8C_ #define _SAM3A8C_ @@ -105,32 +132,32 @@ typedef enum IRQn /** \addtogroup SAM3A8C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -139,38 +166,38 @@ typedef enum IRQn /** \addtogroup SAM3A8C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/uotghs.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -313,7 +340,7 @@ typedef enum IRQn /** \addtogroup SAM3A8C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3a8c.h" +#include "pio/pio_sam3a8c.h" /*@}*/ /* ************************************************************************** */ @@ -351,6 +378,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3A8C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2c.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2c.h index 2c2c7994e..707cbb403 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2C_ #define _SAM3X2C_ @@ -106,33 +133,33 @@ typedef enum IRQn /** \addtogroup SAM3X2C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -141,39 +168,39 @@ typedef enum IRQn /** \addtogroup SAM3X2C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -319,7 +346,7 @@ typedef enum IRQn /** \addtogroup SAM3X2C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x2c.h" +#include "pio/pio_sam3x2c.h" /*@}*/ /* ************************************************************************** */ @@ -357,6 +384,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X2C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2e.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2e.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2e.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2e.h index 9249ca6c1..127413cfa 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2e.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2E_ #define _SAM3X2E_ @@ -113,34 +140,34 @@ typedef enum IRQn /** \addtogroup SAM3X2E_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -149,44 +176,44 @@ typedef enum IRQn /** \addtogroup SAM3X2E_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -351,7 +378,7 @@ typedef enum IRQn /** \addtogroup SAM3X2E_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x2e.h" +#include "pio/pio_sam3x2e.h" /*@}*/ /* ************************************************************************** */ @@ -390,6 +417,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X2E */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2g.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2g.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2g.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2g.h index ce2ea92b9..345b8e040 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2g.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2g.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2G_ #define _SAM3X2G_ @@ -117,35 +144,35 @@ typedef enum IRQn /** \addtogroup SAM3X2G_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/sdramc.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_sdramc.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -154,48 +181,48 @@ typedef enum IRQn /** \addtogroup SAM3X2G_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/spi1.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/sdramc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/pioe.h" -#include "instance/piof.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_spi1.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_sdramc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_pioe.h" +#include "instance/instance_piof.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -372,7 +399,7 @@ typedef enum IRQn /** \addtogroup SAM3X2G_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x2g.h" +#include "pio/pio_sam3x2g.h" /*@}*/ /* ************************************************************************** */ @@ -411,6 +438,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X2G */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2h.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2h.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2h.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2h.h index ea22bb667..55c09276e 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x2h.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x2h.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X2H_ #define _SAM3X2H_ @@ -117,35 +144,35 @@ typedef enum IRQn /** \addtogroup SAM3X2H_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/sdramc.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_sdramc.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -154,48 +181,48 @@ typedef enum IRQn /** \addtogroup SAM3X2H_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/spi1.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/sdramc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/pioe.h" -#include "instance/piof.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_spi1.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_sdramc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_pioe.h" +#include "instance/instance_piof.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -372,7 +399,7 @@ typedef enum IRQn /** \addtogroup SAM3X2H_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x2h.h" +#include "pio/pio_sam3x2h.h" /*@}*/ /* ************************************************************************** */ @@ -411,6 +438,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X2H */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4c.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4c.h index 8c021bdcf..c539981f9 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4C_ #define _SAM3X4C_ @@ -106,33 +133,33 @@ typedef enum IRQn /** \addtogroup SAM3X4C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -141,39 +168,39 @@ typedef enum IRQn /** \addtogroup SAM3X4C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -319,7 +346,7 @@ typedef enum IRQn /** \addtogroup SAM3X4C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x4c.h" +#include "pio/pio_sam3x4c.h" /*@}*/ /* ************************************************************************** */ @@ -357,6 +384,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X4C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4e.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4e.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4e.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4e.h index 258c5f267..b5a47a36f 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4e.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4E_ #define _SAM3X4E_ @@ -113,34 +140,34 @@ typedef enum IRQn /** \addtogroup SAM3X4E_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -149,44 +176,44 @@ typedef enum IRQn /** \addtogroup SAM3X4E_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -351,7 +378,7 @@ typedef enum IRQn /** \addtogroup SAM3X4E_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x4e.h" +#include "pio/pio_sam3x4e.h" /*@}*/ /* ************************************************************************** */ @@ -390,6 +417,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X4E */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4g.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4g.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4g.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4g.h index 5882e834d..0c9660eba 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4g.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4g.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4G_ #define _SAM3X4G_ @@ -117,35 +144,35 @@ typedef enum IRQn /** \addtogroup SAM3X4G_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/sdramc.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_sdramc.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -154,48 +181,48 @@ typedef enum IRQn /** \addtogroup SAM3X4G_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/spi1.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/sdramc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/pioe.h" -#include "instance/piof.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_spi1.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_sdramc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_pioe.h" +#include "instance/instance_piof.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -372,7 +399,7 @@ typedef enum IRQn /** \addtogroup SAM3X4G_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x4g.h" +#include "pio/pio_sam3x4g.h" /*@}*/ /* ************************************************************************** */ @@ -411,6 +438,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X4G */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4h.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4h.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4h.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4h.h index 8a84c0f81..dd0657b22 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x4h.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x4h.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X4H_ #define _SAM3X4H_ @@ -117,35 +144,35 @@ typedef enum IRQn /** \addtogroup SAM3X4H_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/sdramc.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_sdramc.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -154,48 +181,48 @@ typedef enum IRQn /** \addtogroup SAM3X4H_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/spi1.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/sdramc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/pioe.h" -#include "instance/piof.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_spi1.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_sdramc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_pioe.h" +#include "instance/instance_piof.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -372,7 +399,7 @@ typedef enum IRQn /** \addtogroup SAM3X4H_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x4h.h" +#include "pio/pio_sam3x4h.h" /*@}*/ /* ************************************************************************** */ @@ -411,6 +438,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X4H */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8c.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8c.h similarity index 79% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8c.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8c.h index 949f3b1bd..3314d65df 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8c.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8c.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8C_ #define _SAM3X8C_ @@ -106,33 +133,33 @@ typedef enum IRQn /** \addtogroup SAM3X8C_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -141,39 +168,39 @@ typedef enum IRQn /** \addtogroup SAM3X8C_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -319,7 +346,7 @@ typedef enum IRQn /** \addtogroup SAM3X8C_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x8c.h" +#include "pio/pio_sam3x8c.h" /*@}*/ /* ************************************************************************** */ @@ -357,6 +384,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X8C */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8e.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8e.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8e.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8e.h index aecb05c7e..6d3ba7a5a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8e.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8e.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8E_ #define _SAM3X8E_ @@ -113,34 +140,34 @@ typedef enum IRQn /** \addtogroup SAM3X8E_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -149,44 +176,44 @@ typedef enum IRQn /** \addtogroup SAM3X8E_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -351,7 +378,7 @@ typedef enum IRQn /** \addtogroup SAM3X8E_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x8e.h" +#include "pio/pio_sam3x8e.h" /*@}*/ /* ************************************************************************** */ @@ -390,6 +417,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X8E */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8g.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8g.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8g.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8g.h index 7f5575f20..9a76fa84a 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8g.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8g.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8G_ #define _SAM3X8G_ @@ -117,35 +144,35 @@ typedef enum IRQn /** \addtogroup SAM3X8G_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/sdramc.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_sdramc.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -154,48 +181,48 @@ typedef enum IRQn /** \addtogroup SAM3X8G_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/spi1.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/sdramc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/pioe.h" -#include "instance/piof.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_spi1.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_sdramc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_pioe.h" +#include "instance/instance_piof.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -372,7 +399,7 @@ typedef enum IRQn /** \addtogroup SAM3X8G_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x8g.h" +#include "pio/pio_sam3x8g.h" /*@}*/ /* ************************************************************************** */ @@ -411,6 +438,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X8G */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8h.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8h.h similarity index 80% rename from hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8h.h rename to hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8h.h index e5ad58d3b..1ca0d9d08 100644 --- a/hardware/sam/system/libsam/cmsis/sam3x/include/sam3x8h.h +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3x8h.h @@ -1,4 +1,31 @@ -/* $asf_license$ */ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3X8H_ #define _SAM3X8H_ @@ -117,35 +144,35 @@ typedef enum IRQn /** \addtogroup SAM3X8H_api Peripheral Software API */ /*@{*/ -#include "component/adc.h" -#include "component/can.h" -#include "component/chipid.h" -#include "component/dacc.h" -#include "component/dmac.h" -#include "component/efc.h" -#include "component/emac.h" -#include "component/gpbr.h" -#include "component/hsmci.h" -#include "component/matrix.h" -#include "component/pdc.h" -#include "component/pio.h" -#include "component/pmc.h" -#include "component/pwm.h" -#include "component/rstc.h" -#include "component/rtc.h" -#include "component/rtt.h" -#include "component/sdramc.h" -#include "component/smc.h" -#include "component/spi.h" -#include "component/ssc.h" -#include "component/supc.h" -#include "component/tc.h" -#include "component/trng.h" -#include "component/twi.h" -#include "component/uart.h" -#include "component/uotghs.h" -#include "component/usart.h" -#include "component/wdt.h" +#include "component/component_adc.h" +#include "component/component_can.h" +#include "component/component_chipid.h" +#include "component/component_dacc.h" +#include "component/component_dmac.h" +#include "component/component_efc.h" +#include "component/component_emac.h" +#include "component/component_gpbr.h" +#include "component/component_hsmci.h" +#include "component/component_matrix.h" +#include "component/component_pdc.h" +#include "component/component_pio.h" +#include "component/component_pmc.h" +#include "component/component_pwm.h" +#include "component/component_rstc.h" +#include "component/component_rtc.h" +#include "component/component_rtt.h" +#include "component/component_sdramc.h" +#include "component/component_smc.h" +#include "component/component_spi.h" +#include "component/component_ssc.h" +#include "component/component_supc.h" +#include "component/component_tc.h" +#include "component/component_trng.h" +#include "component/component_twi.h" +#include "component/component_uart.h" +#include "component/component_uotghs.h" +#include "component/component_usart.h" +#include "component/component_wdt.h" /*@}*/ /* ************************************************************************** */ @@ -154,48 +181,48 @@ typedef enum IRQn /** \addtogroup SAM3X8H_reg Registers Access Definitions */ /*@{*/ -#include "instance/hsmci.h" -#include "instance/ssc.h" -#include "instance/spi0.h" -#include "instance/spi1.h" -#include "instance/tc0.h" -#include "instance/tc1.h" -#include "instance/tc2.h" -#include "instance/twi0.h" -#include "instance/twi1.h" -#include "instance/pwm.h" -#include "instance/usart0.h" -#include "instance/usart1.h" -#include "instance/usart2.h" -#include "instance/usart3.h" -#include "instance/uotghs.h" -#include "instance/emac.h" -#include "instance/can0.h" -#include "instance/can1.h" -#include "instance/trng.h" -#include "instance/adc.h" -#include "instance/dmac.h" -#include "instance/dacc.h" -#include "instance/smc.h" -#include "instance/sdramc.h" -#include "instance/matrix.h" -#include "instance/pmc.h" -#include "instance/uart.h" -#include "instance/chipid.h" -#include "instance/efc0.h" -#include "instance/efc1.h" -#include "instance/pioa.h" -#include "instance/piob.h" -#include "instance/pioc.h" -#include "instance/piod.h" -#include "instance/pioe.h" -#include "instance/piof.h" -#include "instance/rstc.h" -#include "instance/supc.h" -#include "instance/rtt.h" -#include "instance/wdt.h" -#include "instance/rtc.h" -#include "instance/gpbr.h" +#include "instance/instance_hsmci.h" +#include "instance/instance_ssc.h" +#include "instance/instance_spi0.h" +#include "instance/instance_spi1.h" +#include "instance/instance_tc0.h" +#include "instance/instance_tc1.h" +#include "instance/instance_tc2.h" +#include "instance/instance_twi0.h" +#include "instance/instance_twi1.h" +#include "instance/instance_pwm.h" +#include "instance/instance_usart0.h" +#include "instance/instance_usart1.h" +#include "instance/instance_usart2.h" +#include "instance/instance_usart3.h" +#include "instance/instance_uotghs.h" +#include "instance/instance_emac.h" +#include "instance/instance_can0.h" +#include "instance/instance_can1.h" +#include "instance/instance_trng.h" +#include "instance/instance_adc.h" +#include "instance/instance_dmac.h" +#include "instance/instance_dacc.h" +#include "instance/instance_smc.h" +#include "instance/instance_sdramc.h" +#include "instance/instance_matrix.h" +#include "instance/instance_pmc.h" +#include "instance/instance_uart.h" +#include "instance/instance_chipid.h" +#include "instance/instance_efc0.h" +#include "instance/instance_efc1.h" +#include "instance/instance_pioa.h" +#include "instance/instance_piob.h" +#include "instance/instance_pioc.h" +#include "instance/instance_piod.h" +#include "instance/instance_pioe.h" +#include "instance/instance_piof.h" +#include "instance/instance_rstc.h" +#include "instance/instance_supc.h" +#include "instance/instance_rtt.h" +#include "instance/instance_wdt.h" +#include "instance/instance_rtc.h" +#include "instance/instance_gpbr.h" /*@}*/ /* ************************************************************************** */ @@ -372,7 +399,7 @@ typedef enum IRQn /** \addtogroup SAM3X8H_pio Peripheral Pio Definitions */ /*@{*/ -#include "pio/sam3x8h.h" +#include "pio/pio_sam3x8h.h" /*@}*/ /* ************************************************************************** */ @@ -411,6 +438,21 @@ typedef enum IRQn #define EBI_CS6_ADDR (0x66000000u) /**< EBI Chip Select 6 base address */ #define EBI_CS7_ADDR (0x67000000u) /**< EBI Chip Select 7 base address */ +/* ************************************************************************** */ +/* ELECTRICAL DEFINITIONS FOR SAM3X8H */ +/* ************************************************************************** */ + +/* Device characteristics */ + +#define CHIP_FREQ_SLCK_RC_MIN (20000U) +#define CHIP_FREQ_SLCK_RC (32000U) +#define CHIP_FREQ_SLCK_RC_MAX (44000U) +#define CHIP_FREQ_MAINCK_RC_4MHZ (4000000U) +#define CHIP_FREQ_MAINCK_RC_8MHZ (8000000U) +#define CHIP_FREQ_MAINCK_RC_12MHZ (12000000U) +#define CHIP_FREQ_CPU_MAX (84000000U) +#define CHIP_FLASH_WAIT_STATE (3U) + #ifdef __cplusplus } #endif diff --git a/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3xa.h b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3xa.h new file mode 100644 index 000000000..73e9ad699 --- /dev/null +++ b/hardware/sam/system/libsam/cmsis/sam3xa/include/sam3xa.h @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * SAM Software Package License + * ---------------------------------------------------------------------------- + * Copyright (c) 2011, Atmel Corporation + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the disclaimer below. + * + * Atmel's name may not be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * DISCLAIMED. IN NO EVENT SHALL ATMEL 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 _SAM3XA_ +#define _SAM3XA_ + +#if defined __SAM3A2C__ + #include "sam3a2c.h" +#elif defined __SAM3A4C__ + #include "sam3a4c.h" +#elif defined __SAM3A8C__ + #include "sam3a8c.h" +#elif defined __SAM3X4C__ + #include "sam3x4c.h" +#elif defined __SAM3X4E__ + #include "sam3x4e.h" +#elif defined __SAM3X8C__ + #include "sam3x8c.h" +#elif defined __SAM3X8E__ + #include "sam3x8e.h" +#elif defined __SAM3X8H__ + #include "sam3x8h.h" +#else + #error Library does not support the specified device. +#endif + +#endif /* _SAM3XA_ */ diff --git a/hardware/sam/system/libsam/cmsis/sam3x/source/templates/exceptions.c b/hardware/sam/system/libsam/cmsis/sam3xa/source/templates/exceptions.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3x/source/templates/exceptions.c rename to hardware/sam/system/libsam/cmsis/sam3xa/source/templates/exceptions.c diff --git a/hardware/sam/system/libsam/cmsis/sam3x/source/templates/exceptions.h b/hardware/sam/system/libsam/cmsis/sam3xa/source/templates/exceptions.h similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3x/source/templates/exceptions.h rename to hardware/sam/system/libsam/cmsis/sam3xa/source/templates/exceptions.h diff --git a/hardware/sam/system/libsam/cmsis/sam3x/source/templates/gcc/startup_sam3x.c b/hardware/sam/system/libsam/cmsis/sam3xa/source/templates/gcc/startup_sam3x.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3x/source/templates/gcc/startup_sam3x.c rename to hardware/sam/system/libsam/cmsis/sam3xa/source/templates/gcc/startup_sam3x.c diff --git a/hardware/sam/system/libsam/cmsis/sam3x/source/templates/iar/startup_sam3x.c b/hardware/sam/system/libsam/cmsis/sam3xa/source/templates/iar/startup_sam3x.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3x/source/templates/iar/startup_sam3x.c rename to hardware/sam/system/libsam/cmsis/sam3xa/source/templates/iar/startup_sam3x.c diff --git a/hardware/sam/system/libsam/cmsis/sam3x/source/templates/system_sam3x.c b/hardware/sam/system/libsam/cmsis/sam3xa/source/templates/system_sam3x.c similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3x/source/templates/system_sam3x.c rename to hardware/sam/system/libsam/cmsis/sam3xa/source/templates/system_sam3x.c diff --git a/hardware/sam/system/libsam/cmsis/sam3x/source/templates/system_sam3x.h b/hardware/sam/system/libsam/cmsis/sam3xa/source/templates/system_sam3x.h similarity index 100% rename from hardware/sam/system/libsam/cmsis/sam3x/source/templates/system_sam3x.h rename to hardware/sam/system/libsam/cmsis/sam3xa/source/templates/system_sam3x.h