Skip to content

kinetis: add support for S9KEAZ128#9666

Merged
smlng merged 2 commits intoRIOT-OS:masterfrom
OYTIS:s9kea-pr1
Feb 7, 2019
Merged

kinetis: add support for S9KEAZ128#9666
smlng merged 2 commits intoRIOT-OS:masterfrom
OYTIS:s9kea-pr1

Conversation

@OYTIS
Copy link
Copy Markdown
Contributor

@OYTIS OYTIS commented Aug 1, 2018

Add supports for Kinetis EA series and S9KEAZ129 MCU.
This series is significantly different from K, for instance it uses different clock generation/distribution module and different pin multiplexing scheme. One might think it starts getting too far with conditional compilation already, maybe it's worth refactoring cpu/kinetis at some point to be more modular.

@smlng smlng requested a review from jnohlgard August 6, 2018 06:33
@smlng smlng added Type: new feature The issue requests / The PR implemements a new feature for RIOT Area: cpu Area: CPU/MCU ports labels Aug 6, 2018
#endif
#ifdef UART0
#ifdef UART_RPL_RPL_MASK
# ifdef KINETIS_SINGLE_UART_IRQ
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might need to discuss and clarify (in coding conventions) how to indent pre-processor #ifs

Copy link
Copy Markdown
Contributor Author

@OYTIS OYTIS Aug 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would be your preferred indentation? Most of the code doesn't indent nested #ifs, but sometimes it gets too hard to read.

@OYTIS OYTIS force-pushed the s9kea-pr1 branch 4 times, most recently from d1c227e to 992a191 Compare September 2, 2018 14:01
@OYTIS
Copy link
Copy Markdown
Contributor Author

OYTIS commented Sep 2, 2018

@smlng @gebart Fixed issues and rebased.

@RIOT-OS RIOT-OS deleted a comment Sep 2, 2018
Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also I currently get the following error when comping tests/periph_timer for the PhyNode (pba-d-01-kw2x) which has a Kinetis MCU, too:

/RIOT/cpu/kinetis/periph/timer.c:123:0: error: unterminated #ifdef
 #ifdef KINETIS_HAVE_LPTMR
 
/RIOT/cpu/kinetis/periph/timer.c:85:14: error: 'pit' defined but not used [-Werror=unused-variable]
 static pit_t pit[PIT_NUMOF];
              ^~~
/RIOT/cpu/kinetis/periph/timer.c:80:25: error: 'pit_config' defined but not used [-Werror=unused-const-variable=]
 static const pit_conf_t pit_config[PIT_NUMOF] = PIT_CONFIG;
                         ^~~~~~~~~~
cc1: all warnings being treated as errors

@smlng smlng self-assigned this Sep 20, 2018
@OYTIS OYTIS force-pushed the s9kea-pr1 branch 3 times, most recently from 236a32d to b0bf229 Compare October 28, 2018 21:51
@OYTIS
Copy link
Copy Markdown
Contributor Author

OYTIS commented Oct 28, 2018

@smlng @gebart
Fixed unmatched endif, rebased and renamed KINETIS_HAVE_ADC_16BIT to KINETIS_HAVE_ADC_K (as in Kinetis K series).

Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some minor things, still need to test this ...

@OYTIS OYTIS force-pushed the s9kea-pr1 branch 5 times, most recently from ed4aee7 to fcde6de Compare December 2, 2018 15:53
@smlng smlng added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines labels Jan 11, 2019
Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final (minor) changes, otherwise (very) close to merge ... will run some tests now, to verify it doesn't break any other Kinetis MCU/Board

@smlng
Copy link
Copy Markdown
Member

smlng commented Jan 11, 2019

CI is not happy, and for me it also fails with an error in periph/timer when compiling for PhyNode (pba-d-01-kw2x)

@smlng
Copy link
Copy Markdown
Member

smlng commented Jan 22, 2019

ping @OYTIS, this needs to be in first, before we can get the KEA boards merged.

@OYTIS OYTIS force-pushed the s9kea-pr1 branch 4 times, most recently from 35dbd00 to 19d2ef7 Compare January 26, 2019 14:44
Anton Gerasimov and others added 2 commits January 26, 2019 15:53
Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
Signed-off-by: Anton Gerasimov <tossel@gmail.com>
@OYTIS
Copy link
Copy Markdown
Contributor Author

OYTIS commented Jan 26, 2019

@smlng
Sorry for the delay. All the failures have been hunted down, I believe it's good now.

@smlng smlng added the Reviewed: 3-testing The PR was tested according to the maintainer guidelines label Feb 4, 2019
@smlng smlng added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 4, 2019
@OYTIS
Copy link
Copy Markdown
Contributor Author

OYTIS commented Feb 7, 2019

@smlng @gebart
Anything else needed before merge? Or should the two dependent PRs (#9711, #9655) be reviewed first?

@smlng
Copy link
Copy Markdown
Member

smlng commented Feb 7, 2019

I successfully tested with the PhyNode, just to make sure it doesn't break stuff for existing nodes. To me this looks good to go, so ACK & GO!

@smlng smlng merged commit 6037fa2 into RIOT-OS:master Feb 7, 2019
@OYTIS
Copy link
Copy Markdown
Contributor Author

OYTIS commented Feb 7, 2019

@smlng Thanks a lot!

I've rebased the next two PRs to make them more observable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants