Skip to content

cpu/kinetis: features provided not properly defined according to series #11423

@fjmolinas

Description

@fjmolinas

Description

Since in base Makefile.include, Makefile.fatures for a BOARD is included after $(RIOTCPU)/$(CPU)/Makefile.include there is not definition of KINETIS_SERIES when calling this statement

ifeq (EA,$(KINETIS_SERIES))
FEATURES_PROVIDED += periph_ics
else
FEATURES_PROVIDED += periph_mcg
endif

Therefore the statement has not effect and the FEATURE_PROVIDED is allways periph_mcg.

Steps to reproduce the issue

Add $(info Kinetis series: $(KINETIS_SERIES)) just before the above statement and call the below statement for any Kinetis board.

make -C examples/hello-world/ BOARD=pba-d-01-kw2x

Expected results

See in terminal:


make: Entering directory '/home/francisco/workspace/RIOT/examples/hello-world'
Kinetis series: W
Building application "hello-world" for "pba-d-01-kw2x" with MCU "kinetis".

Actual results

make: Entering directory '/home/francisco/workspace/RIOT/examples/hello-world'
Kinetis series:
Building application "hello-world" for "pba-d-01-kw2x" with MCU "kinetis".

Versions

Related Issues

#9913

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions