sam3n port: revert to our custom made register definition includes.
authoraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 15 Oct 2010 18:08:12 +0000 (18:08 +0000)
committeraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 15 Oct 2010 18:08:12 +0000 (18:08 +0000)
commitc796e2e7baf75175e4c14311f0aa0080d7f65862
tree0687b218f91f473c1f9a484b603d0fbf379ed9c6
parent05b576afecd2ac6f391250a9248861c7855eefd2
sam3n port: revert to our custom made register definition includes.

SAM3 peripherals are very similar to SAM7 one.  To allow reuse of SAM7
drivers we need to use same register definitions.  Atmel supplied
include file defines register offsets with the bare register name
(i.e. PIO_PDR) and access register macro with the REG_ prefix.
Instead the SAM7 tree defines offsets with _OFF suffix and access
register macros with the bare register name.  Moreover register
bits are defined as bit numbers, i.e. when using them on registers
the BV() macro is required.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4432 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cpu/cortex-m3/io/sam3.h
bertos/cpu/cortex-m3/io/sam3_flash.h [new file with mode: 0644]
bertos/cpu/cortex-m3/io/sam3_nvic.h
bertos/cpu/cortex-m3/io/sam3_pio.h [new file with mode: 0644]
bertos/cpu/cortex-m3/io/sam3_pmc.h [new file with mode: 0644]
bertos/cpu/cortex-m3/io/sam3_sysctl.h [new file with mode: 0644]
bertos/cpu/cortex-m3/io/sam3_uart.h [new file with mode: 0644]