AVR: Update demo comment.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11334 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Theodore Ateba 2018-01-18 22:24:44 +00:00
parent e892fd2b48
commit cf84da6cbd
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ static THD_FUNCTION(Thd2, arg) {
while (TRUE) {
/* Make ADC conversion of the voltage on A0. */
adcConvert(&ADCD1, &my_conversion_group, sample_buff, MY_SAMPLING_NUMBER);
/* Making mean of sampled values.*/
for (i = 0; i < MY_NUM_CH * MY_SAMPLING_NUMBER; i++) {
adcConvA0 += sample_buff[i];
@ -84,7 +84,7 @@ static THD_FUNCTION(Thd2, arg) {
}
}
/*
/**
* Application entry point.
*/
int main(void) {
@ -112,7 +112,7 @@ int main(void) {
chThdCreateStatic(waThd2, sizeof(waThd2), NORMALPRIO + 1, Thd2, NULL);
chprintf(chp, "AVR ADC program example... \r\n");
while (TRUE) {
chprintf(chp, "Measure the voltage on A0 pin: \r\n");
chprintf(chp, " %.3fv \r\n", voltageA0);