Skip to content

drivers: Adapt old platforms to periph rtc#2060

Merged
LudwigKnuepfer merged 17 commits intoRIOT-OS:masterfrom
OlegHahm:periph_rtc
Dec 16, 2014
Merged

drivers: Adapt old platforms to periph rtc#2060
LudwigKnuepfer merged 17 commits intoRIOT-OS:masterfrom
OlegHahm:periph_rtc

Conversation

@OlegHahm
Copy link
Copy Markdown
Member

I guess the implementation could need some cleanup and more documentation.

NOTE: the TI cc430 can only set alarms based on minutes, hours and days of week - not on seconds, day of month, day of year, month or year.

@OlegHahm OlegHahm added State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Area: drivers Area: Device drivers Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Platform: MSP Platform: This PR/issue effects MSP-based platforms Platform: ARM Platform: This PR/issue effects ARM-based platforms State: waiting for other PR State: The PR requires another PR to be merged first labels Nov 20, 2014
@OlegHahm
Copy link
Copy Markdown
Member Author

Depends on #1922.

@OlegHahm OlegHahm mentioned this pull request Nov 20, 2014
Comment thread sys/auto_init/auto_init.c
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.

remove this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why?

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.

The discussion in #2046 converged (from my point of view) to the point that auto_init should not work on peripheral devices.

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.

In any case - this PR does not change auto_init to do that (at least not yet).

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.

file does not have a C++ compatible header: 'boards/msb-430/include/periph_conf.h'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Won't fix. This check is stupid for empty files.

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.

Then please come up with a method for the test to verify that the file is indeed empty.

@OlegHahm
Copy link
Copy Markdown
Member Author

Depends also on #2061.

@OlegHahm
Copy link
Copy Markdown
Member Author

Closes #10 - by removing the function. ;-)

@LudwigKnuepfer
Copy link
Copy Markdown
Member

@OlegHahm are you OK with rebasing your PR on #2061 (which I in turn only base on #1922 after you say yes here)?

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Actually I will just do the change of base in #2061 .. you already said this PR depends on it sorry for the noise.

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Please squash and rebase on #2061 - then we can merge this (and the others with it) in one go.

@LudwigKnuepfer LudwigKnuepfer added the CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable label Nov 24, 2014
@OlegHahm OlegHahm removed State: WIP State: The PR is still work-in-progress and its code is not in its final presentable form yet CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable labels Nov 24, 2014
@OlegHahm
Copy link
Copy Markdown
Member Author

Did as you wished.

@LudwigKnuepfer
Copy link
Copy Markdown
Member

hm, I think we need to rebase on something that has #2072 merged in order for Travis to be able to succeed.

@mehlis
Copy link
Copy Markdown
Contributor

mehlis commented Nov 24, 2014

@OlegHahm nice work, the only peace piece of code that worked 1.5 years ago is gone now :( but it's replaced by a consistent API, so 👍

@LudwigKnuepfer
Copy link
Copy Markdown
Member

The chronos board misses sscanf.
As the chronos has no uart0 implementation, this is somewhat silly.

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Please rebase on #2061 to satisfy chronos (even though theoretically useless). Might save some bytes for other platforms though.

@OlegHahm
Copy link
Copy Markdown
Member Author

Did rebase.

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Apparently everything is fine now, so I will squash #2061 if you agree.

@LudwigKnuepfer
Copy link
Copy Markdown
Member

needs rebase

@OlegHahm
Copy link
Copy Markdown
Member Author

reBASEd

@LudwigKnuepfer LudwigKnuepfer removed the State: waiting for other PR State: The PR requires another PR to be merged first label Dec 16, 2014
@LudwigKnuepfer
Copy link
Copy Markdown
Member

Do we really want to wait for Travis? It is awfully moody today.

@OlegHahm
Copy link
Copy Markdown
Member Author

It's almost done.

@LudwigKnuepfer
Copy link
Copy Markdown
Member

Done!

@LudwigKnuepfer
Copy link
Copy Markdown
Member

ACK & go

LudwigKnuepfer pushed a commit that referenced this pull request Dec 16, 2014
drivers: Adapt old platforms to periph rtc
@LudwigKnuepfer LudwigKnuepfer merged commit e7f6f64 into RIOT-OS:master Dec 16, 2014
@OlegHahm OlegHahm deleted the periph_rtc branch December 16, 2014 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: drivers Area: Device drivers Platform: ARM Platform: This PR/issue effects ARM-based platforms Platform: MSP Platform: This PR/issue effects MSP-based platforms Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants