From 83f9cecc123b049a8e27ebad7e0c4d3563c8c0df Mon Sep 17 00:00:00 2001
From: Michael Andersen <m.andersen@cs.berkeley.edu>
Date: Fri, 29 Jan 2016 21:47:30 -0800
Subject: [PATCH] cpu/samd21: Change linker file to support E variant

---
 boards/samr21-xpro/Makefile.include                   | 2 +-
 cpu/samd21/ldscripts/{samr21g18a.ld => samr21x18a.ld} | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename cpu/samd21/ldscripts/{samr21g18a.ld => samr21x18a.ld} (78%)

diff --git a/boards/samr21-xpro/Makefile.include b/boards/samr21-xpro/Makefile.include
index f16f5d8744..20ca545f7f 100644
--- a/boards/samr21-xpro/Makefile.include
+++ b/boards/samr21-xpro/Makefile.include
@@ -1,6 +1,6 @@
 # define the cpu used by SAMR21 Xplained Pro board
 export CPU = samd21
-export CPU_MODEL = samr21g18a
+export CPU_MODEL = samr21x18a
 
 # set default port depending on operating system
 PORT_LINUX ?= /dev/ttyACM0
diff --git a/cpu/samd21/ldscripts/samr21g18a.ld b/cpu/samd21/ldscripts/samr21x18a.ld
similarity index 78%
rename from cpu/samd21/ldscripts/samr21g18a.ld
rename to cpu/samd21/ldscripts/samr21x18a.ld
index 71715a2fb4..b47c76d96f 100644
--- a/cpu/samd21/ldscripts/samr21g18a.ld
+++ b/cpu/samd21/ldscripts/samr21x18a.ld
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Freie Universität Berlin
+ * Copyright (C) 2015, 2016 Freie Universität Berlin
  *
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License v2.1. See the file LICENSE in the top level
@@ -11,7 +11,7 @@
  * @{
  *
  * @file
- * @brief           Memory definitions for the SAMR21G18A
+ * @brief           Memory definitions for the SAMR21E18A and SAMR21G18A
  *
  * @author          Hauke Petersen <hauke.petersen@fu-berlin.de>
  *
-- 
GitLab