atsamd: Add build support for SAMD21E15 chip

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-01 13:42:39 -04:00
parent 1a8bd750fc
commit e2e4a5d4e6
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,9 @@ choice
config MACH_SAMD21E18 config MACH_SAMD21E18
bool "SAMD21E18 (Adafruit Trinket M0)" bool "SAMD21E18 (Adafruit Trinket M0)"
select MACH_SAMD21 select MACH_SAMD21
config MACH_SAMD21E15
bool "SAMD21E15"
select MACH_SAMD21
config MACH_SAMD51G19 config MACH_SAMD51G19
bool "SAMD51G19 (Adafruit ItsyBitsy M4)" bool "SAMD51G19 (Adafruit ItsyBitsy M4)"
select MACH_SAMD51 select MACH_SAMD51
@ -47,6 +50,7 @@ config MCU
string string
default "samd21g18a" if MACH_SAMD21G18 default "samd21g18a" if MACH_SAMD21G18
default "samd21e18a" if MACH_SAMD21E18 default "samd21e18a" if MACH_SAMD21E18
default "samd21e15a" if MACH_SAMD21E15
default "samd51g19a" if MACH_SAMD51G19 default "samd51g19a" if MACH_SAMD51G19
default "samd51j19a" if MACH_SAMD51J19 default "samd51j19a" if MACH_SAMD51J19
default "samd51n19a" if MACH_SAMD51N19 default "samd51n19a" if MACH_SAMD51N19
@ -59,12 +63,14 @@ config CLOCK_FREQ
config FLASH_SIZE config FLASH_SIZE
hex hex
default 0x8000 if MACH_SAMD21E15
default 0x40000 if MACH_SAMD21G18 || MACH_SAMD21E18 default 0x40000 if MACH_SAMD21G18 || MACH_SAMD21E18
default 0x80000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 default 0x80000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19
default 0x100000 if MACH_SAMD51P20 default 0x100000 if MACH_SAMD51P20
config RAM_SIZE config RAM_SIZE
hex hex
default 0x1000 if MACH_SAMD21E15
default 0x8000 if MACH_SAMD21G18 || MACH_SAMD21E18 default 0x8000 if MACH_SAMD21G18 || MACH_SAMD21E18
default 0x30000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19 default 0x30000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19
default 0x40000 if MACH_SAMD51P20 default 0x40000 if MACH_SAMD51P20