atsamd: Use local linker script

Use a local linker script instead of the linker script provided by
Atmel.  This will allow Klipper to use dynamic memory allocation.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-03-01 13:25:29 -05:00
parent e18501d01c
commit d33c4820bd
3 changed files with 84 additions and 9 deletions

View File

@@ -53,6 +53,22 @@ config CLOCK_FREQ
default 48000000 if MACH_SAMD21
default 120000000 if MACH_SAMD51
config FLASH_SIZE
hex
default 0x40000 if MACH_SAMD21G18
default 0x80000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19
default 0x100000 if MACH_SAMD51P20
config RAM_SIZE
hex
default 0x8000 if MACH_SAMD21G18
default 0x30000 if MACH_SAMD51G19 || MACH_SAMD51J19 || MACH_SAMD51N19
default 0x40000 if MACH_SAMD51P20
config STACK_SIZE
int
default 512
choice
prompt "Clock Reference"
config CLOCK_REF_X32K