From 95e3d202f2d047ed53fcda25ce8f94b5c94e3769 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se>
Date: Mon, 3 Apr 2017 10:14:39 +0200
Subject: [PATCH] kw2xd: Rename CPU kw2x -> kw2xd

NXP calls the family KW2xD in their material.
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/w-series-wireless-m0-plus-m4:KINETIS_W_SERIES
---
 boards/pba-d-01-kw2x/Makefile.include        | 2 +-
 cpu/{kw2x => kw2xd}/Makefile                 | 0
 cpu/{kw2x => kw2xd}/Makefile.include         | 2 +-
 cpu/{kw2x => kw2xd}/cpu.c                    | 2 +-
 cpu/{kw2x => kw2xd}/include/cpu_conf.h       | 4 ++--
 cpu/{kw2x => kw2xd}/include/vendor/MKW22D5.h | 0
 cpu/{kw2x => kw2xd}/ldscripts/kw21d256.ld    | 0
 cpu/{kw2x => kw2xd}/ldscripts/kw21d512.ld    | 0
 cpu/{kw2x => kw2xd}/ldscripts/kw22d512.ld    | 0
 cpu/{kw2x => kw2xd}/periph/Makefile          | 0
 cpu/{kw2x => kw2xd}/vectors.c                | 2 +-
 11 files changed, 6 insertions(+), 6 deletions(-)
 rename cpu/{kw2x => kw2xd}/Makefile (100%)
 rename cpu/{kw2x => kw2xd}/Makefile.include (93%)
 rename cpu/{kw2x => kw2xd}/cpu.c (98%)
 rename cpu/{kw2x => kw2xd}/include/cpu_conf.h (96%)
 rename cpu/{kw2x => kw2xd}/include/vendor/MKW22D5.h (100%)
 rename cpu/{kw2x => kw2xd}/ldscripts/kw21d256.ld (100%)
 rename cpu/{kw2x => kw2xd}/ldscripts/kw21d512.ld (100%)
 rename cpu/{kw2x => kw2xd}/ldscripts/kw22d512.ld (100%)
 rename cpu/{kw2x => kw2xd}/periph/Makefile (100%)
 rename cpu/{kw2x => kw2xd}/vectors.c (99%)

diff --git a/boards/pba-d-01-kw2x/Makefile.include b/boards/pba-d-01-kw2x/Makefile.include
index b8ef982ee7..cc094b90e0 100644
--- a/boards/pba-d-01-kw2x/Makefile.include
+++ b/boards/pba-d-01-kw2x/Makefile.include
@@ -1,5 +1,5 @@
 # define the cpu used by the phyWAVE-KW22 board
-export CPU = kw2x
+export CPU = kw2xd
 export CPU_MODEL = kw21d256
 #export CPU_MODEL = kw21d512
 #export CPU_MODEL = kw22d512
diff --git a/cpu/kw2x/Makefile b/cpu/kw2xd/Makefile
similarity index 100%
rename from cpu/kw2x/Makefile
rename to cpu/kw2xd/Makefile
diff --git a/cpu/kw2x/Makefile.include b/cpu/kw2xd/Makefile.include
similarity index 93%
rename from cpu/kw2x/Makefile.include
rename to cpu/kw2xd/Makefile.include
index 9a931c989f..0d656da2b8 100644
--- a/cpu/kw2x/Makefile.include
+++ b/cpu/kw2xd/Makefile.include
@@ -1,4 +1,4 @@
-# define the CPU architecture for the kw2x
+# define the CPU architecture for the kw2xd
 export CPU_ARCH = cortex-m4
 
 # tell the build system that the CPU depends on the Kinetis common files
diff --git a/cpu/kw2x/cpu.c b/cpu/kw2xd/cpu.c
similarity index 98%
rename from cpu/kw2x/cpu.c
rename to cpu/kw2xd/cpu.c
index bcbffa75b8..a822c6c947 100644
--- a/cpu/kw2x/cpu.c
+++ b/cpu/kw2xd/cpu.c
@@ -8,7 +8,7 @@
  */
 
 /**
- * @ingroup     cpu_kw2x
+ * @ingroup     cpu_kw2xd
  * @{
  *
  * @file
diff --git a/cpu/kw2x/include/cpu_conf.h b/cpu/kw2xd/include/cpu_conf.h
similarity index 96%
rename from cpu/kw2x/include/cpu_conf.h
rename to cpu/kw2xd/include/cpu_conf.h
index d87306690d..f0b67294e8 100644
--- a/cpu/kw2x/include/cpu_conf.h
+++ b/cpu/kw2xd/include/cpu_conf.h
@@ -8,9 +8,9 @@
  */
 
 /**
- * @defgroup        cpu_kw2x KW2xD SiP
+ * @defgroup        cpu_kw2xd KW2xD SiP
  * @ingroup         cpu
- * @brief           CPU specific implementations for the Freescale KW2xD SiP.
+ * @brief           CPU specific implementations for the NXP/Freescale KW2xD SiP.
  *                  The SiP incorporates a low power 2.4 GHz transceiver and a
  *                  Kinetis Cortex-M4 MCU.
  * @{
diff --git a/cpu/kw2x/include/vendor/MKW22D5.h b/cpu/kw2xd/include/vendor/MKW22D5.h
similarity index 100%
rename from cpu/kw2x/include/vendor/MKW22D5.h
rename to cpu/kw2xd/include/vendor/MKW22D5.h
diff --git a/cpu/kw2x/ldscripts/kw21d256.ld b/cpu/kw2xd/ldscripts/kw21d256.ld
similarity index 100%
rename from cpu/kw2x/ldscripts/kw21d256.ld
rename to cpu/kw2xd/ldscripts/kw21d256.ld
diff --git a/cpu/kw2x/ldscripts/kw21d512.ld b/cpu/kw2xd/ldscripts/kw21d512.ld
similarity index 100%
rename from cpu/kw2x/ldscripts/kw21d512.ld
rename to cpu/kw2xd/ldscripts/kw21d512.ld
diff --git a/cpu/kw2x/ldscripts/kw22d512.ld b/cpu/kw2xd/ldscripts/kw22d512.ld
similarity index 100%
rename from cpu/kw2x/ldscripts/kw22d512.ld
rename to cpu/kw2xd/ldscripts/kw22d512.ld
diff --git a/cpu/kw2x/periph/Makefile b/cpu/kw2xd/periph/Makefile
similarity index 100%
rename from cpu/kw2x/periph/Makefile
rename to cpu/kw2xd/periph/Makefile
diff --git a/cpu/kw2x/vectors.c b/cpu/kw2xd/vectors.c
similarity index 99%
rename from cpu/kw2x/vectors.c
rename to cpu/kw2xd/vectors.c
index e9a9e34ba0..ab7bea0aa4 100644
--- a/cpu/kw2x/vectors.c
+++ b/cpu/kw2xd/vectors.c
@@ -8,7 +8,7 @@
  */
 
 /**
- * @ingroup     cpu_kw2x
+ * @ingroup     cpu_kw2xd
  * @{
  *
  * @file
-- 
GitLab