Skip to content

cpu/stm32l4: add adc implementation#8804

Merged
MichelRottleuthner merged 1 commit intoRIOT-OS:masterfrom
MichelRottleuthner:pr_stm32l4_add_adc
Jul 6, 2018
Merged

cpu/stm32l4: add adc implementation#8804
MichelRottleuthner merged 1 commit intoRIOT-OS:masterfrom
MichelRottleuthner:pr_stm32l4_add_adc

Conversation

@MichelRottleuthner
Copy link
Copy Markdown
Contributor

Contribution description

Adds implementation for ADC on stm32l4. Currently this only includes configuration for nucleo-l476, and only for the analog pins of the arduino header.

Issues/PRs references

Could make sense to merge this with #7277.
I didn't base it on that PR as it doesn't seem working completely for now, and the ADCs on the L4 are actually quite a bit different to initialize.

@MichelRottleuthner MichelRottleuthner added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: drivers Area: Device drivers labels Mar 20, 2018
@aabadie aabadie self-requested a review March 24, 2018 18:38
/**
* @brief Allocate locks for all three available ADC devices
*/
static mutex_t locks[] = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

static mutex_t locks[ADC_DEVS]; will have the same effect.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I allowed myself to directly address your comment @kaspar030. Tested with nucleo-l476 and still works.

@kaspar030
Copy link
Copy Markdown
Contributor

Does anyone have an stm32l4 board for testing?

@aabadie
Copy link
Copy Markdown
Contributor

aabadie commented Mar 29, 2018

Does anyone have an stm32l4 board for testing?

me, but I won't be able to test before next tuesday unfortunately

Copy link
Copy Markdown
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

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

Tested, works

@aabadie aabadie added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 9, 2018
@aabadie aabadie force-pushed the pr_stm32l4_add_adc branch from d271a2a to 511a6be Compare May 16, 2018 07:57
@aabadie aabadie added the Type: new feature The issue requests / The PR implemements a new feature for RIOT label May 16, 2018
@tcschmidt
Copy link
Copy Markdown
Member

Test seems o.k.. Are the change requests satisfied @kaspar030 ? Can we proceed with this?

@kaspar030
Copy link
Copy Markdown
Contributor

needs rebase

@MichelRottleuthner
Copy link
Copy Markdown
Contributor Author

Murdock spits out some unrelated error regarding xtimer_now64_continuity test. @kaspar030: do you have an idea where this comes from?

@MichelRottleuthner MichelRottleuthner 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 Jun 21, 2018
@MichelRottleuthner MichelRottleuthner merged commit 392c40e into RIOT-OS:master Jul 6, 2018
@cladmi cladmi added this to the Release 2018.07 milestone Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation 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.

5 participants