Skip to content

cpu: efm32: fix ADC and RTC#8572

Merged
kYc0o merged 2 commits intoRIOT-OS:masterfrom
basilfx:bugfix/efm32_peripherals
Feb 16, 2018
Merged

cpu: efm32: fix ADC and RTC#8572
kYc0o merged 2 commits intoRIOT-OS:masterfrom
basilfx:bugfix/efm32_peripherals

Conversation

@basilfx
Copy link
Copy Markdown
Member

@basilfx basilfx commented Feb 15, 2018

Contribution description

When @kYc0o was testing #8520, two small bugs were identified. This PR fixes them.

Issues/PRs references

Required for #8520.

Without fix:
  Setting alarm to   12627-11-30 15:00:05
   Alarm is set to   12722-01-25 07:13:03

With fix:
  Setting alarm to   2011-12-13 14:15:17
   Alarm is set to   2011-12-13 14:15:17
The `res` argument is a combination of resolution and shifting, combined using `(y << 4) | x`. To yield x, `0x0F` should have been used.
@basilfx basilfx requested a review from kYc0o February 15, 2018 20:20
@basilfx basilfx added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Platform: ARM Platform: This PR/issue effects ARM-based platforms CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 15, 2018
Copy link
Copy Markdown
Contributor

@kYc0o kYc0o left a comment

Choose a reason for hiding this comment

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

ACK.

@kYc0o kYc0o merged commit 879e949 into RIOT-OS:master Feb 16, 2018
@basilfx basilfx deleted the bugfix/efm32_peripherals branch January 9, 2020 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants