From cf84da6cbdac2f09159a290d0d71cacfcc9c7e49 Mon Sep 17 00:00:00 2001 From: Theodore Ateba Date: Thu, 18 Jan 2018 22:24:44 +0000 Subject: [PATCH] AVR: Update demo comment. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11334 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/AVR/MEGA/ADC/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testhal/AVR/MEGA/ADC/main.c b/testhal/AVR/MEGA/ADC/main.c index 7d014492c..84733c4ee 100644 --- a/testhal/AVR/MEGA/ADC/main.c +++ b/testhal/AVR/MEGA/ADC/main.c @@ -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);