Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/periph_adc: added test for adc driver #1951

Merged
merged 1 commit into from
Nov 6, 2014

Conversation

haukepetersen
Copy link
Contributor

No description provided.

@PeterKietzmann
Copy link
Member

Tested with stm32f4discovery. Worked fine! stm32f0discovery does not provide periph_spi in the Makefile.features. Shurely Travis will tell you the same. Maybe you can add this?

/* convert each channel for this ADC device */
for (int i = 0; i < ADC_NUMOF; i++) {
for (int j = 0; j < ADC_1_CHANNELS; j++) {
values[i][j] = adc_sample(i, j);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be ADC_MAX_CHANNELS ?

Copy link
Member

Choose a reason for hiding this comment

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

... in line 63 ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, youre right. Copy and paste failure...

@PeterKietzmann
Copy link
Member

Ok Travis was happy, hm.. For some reason the loop just iterates once on the stm32f0discovery board, after changing the above comments. Also LED PC9 blinks continuously.

@haukepetersen
Copy link
Contributor Author

fixed channel define as pointed out by @PeterKietzmann

@haukepetersen
Copy link
Contributor Author

@PeterKietzmann the problem with the stm32f0 looks like it has to do something with the vtimer, could be connected to #1519

@haukepetersen
Copy link
Contributor Author

and for the missing ADC feature please see (and review) #1955

@haukepetersen
Copy link
Contributor Author

@PeterKietzmann I also found the problem with the vtimer that made the ADC test fail, see #1956

@PeterKietzmann
Copy link
Member

#1956 fixed the problems on stm32f0discovery

@haukepetersen
Copy link
Contributor Author

so can we merge this test?

@PeterKietzmann
Copy link
Member

Si senor, the test is fine. ACK

@haukepetersen
Copy link
Contributor Author

and go.

haukepetersen added a commit that referenced this pull request Nov 6, 2014
tests/periph_adc: added test for adc driver
@haukepetersen haukepetersen merged commit b501eb8 into RIOT-OS:master Nov 6, 2014
@haukepetersen haukepetersen deleted the add_test_periphadc branch November 6, 2014 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants