aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/AVR
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2018-01-18 22:24:44 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2018-01-18 22:24:44 +0000
commitcf84da6cbdac2f09159a290d0d71cacfcc9c7e49 (patch)
tree68b3ba3c4de661fd98160dd92e4e1329bdd8755f /testhal/AVR
parente892fd2b48a314dd4f54ce34a971336945aa71ec (diff)
downloadChibiOS-cf84da6cbdac2f09159a290d0d71cacfcc9c7e49.tar.gz
ChibiOS-cf84da6cbdac2f09159a290d0d71cacfcc9c7e49.tar.bz2
ChibiOS-cf84da6cbdac2f09159a290d0d71cacfcc9c7e49.zip
AVR: Update demo comment.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11334 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/AVR')
-rw-r--r--testhal/AVR/MEGA/ADC/main.c6
1 files 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);