Skip to content

Commit

Permalink
fixup! fixup! cpu/kw41z: Add support for NXP Kinetis KW41Z SoC
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård committed Jun 1, 2017
1 parent 60a7112 commit ca88cdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 8 additions & 6 deletions cpu/kw41z/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# define the CPU architecture for the kw41z
export CPU_ARCH = cortex-m0plus

# map CPU models to generic Kinetis linkerscript
LD_MKW41Z512VHT4 = kinetis_f512l32u96.ld
LD_MKW31Z512VHT4 = kinetis_f512l32u96.ld
LD_MKW21Z512VHT4 = kinetis_f512l32u96.ld
LD_MKW41Z256VHT4 = kinetis_f256l16u48.ld
LD_MKW31Z256VHT4 = kinetis_f256l16u48.ld
LD_MKW21Z256VHT4 = kinetis_f256l16u48.ld

# tell the build system that the CPU depends on the Kinetis common files
export USEMODULE += kinetis_common

Expand All @@ -9,12 +17,6 @@ export KINETIS_COMMON = $(RIOTCPU)/kinetis_common/
# CPU depends on the kinetis module, so include it
include $(KINETIS_COMMON)Makefile.include

#export the CPU model
MODEL = $(shell echo $(CPU_MODEL)|tr 'a-z' 'A-Z')
export CFLAGS += -DCPU_MODEL_$(MODEL)
ARCH = $(shell echo $(CPU_ARCH) | tr 'a-z-' 'A-Z_')
export CFLAGS += -DCPU_ARCH_$(ARCH)

# this CPU implementation is using Kinetis common startup
export COMMON_STARTUP = $(KINETIS_COMMON)

Expand Down
1 change: 0 additions & 1 deletion cpu/kw41z/ldscripts/mkw41z512vht4.ld

This file was deleted.

0 comments on commit ca88cdc

Please sign in to comment.