aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2017-07-03 21:40:53 +0200
committermarcoveeneman <marco-veeneman@hotmail.com>2017-07-03 22:24:07 +0200
commit884dbaeabc65a1e2b53d5609652e66521e4f0998 (patch)
tree752bc5411423ba046d9f1423def56f0fc3fb2a61 /testhal
parentffd9d3fd90ffe7f8a7f9d824fa3d9d8b6f33c196 (diff)
downloadChibiOS-Contrib-884dbaeabc65a1e2b53d5609652e66521e4f0998.tar.gz
ChibiOS-Contrib-884dbaeabc65a1e2b53d5609652e66521e4f0998.tar.bz2
ChibiOS-Contrib-884dbaeabc65a1e2b53d5609652e66521e4f0998.zip
Improved ADC driver and ADC testhal application.
Diffstat (limited to 'testhal')
-rw-r--r--testhal/TIVA/TM4C123x/ADC/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/testhal/TIVA/TM4C123x/ADC/main.c b/testhal/TIVA/TM4C123x/ADC/main.c
index 5f06180..c538e6d 100644
--- a/testhal/TIVA/TM4C123x/ADC/main.c
+++ b/testhal/TIVA/TM4C123x/ADC/main.c
@@ -77,7 +77,7 @@ static void adcerrorcallback(ADCDriver *adcp, adcerror_t err) {
/*
* ADC conversion group.
- * Mode: Linear buffer, 8 samples of 2 channels, SW triggered.
+ * Mode: Linear buffer, 8 samples of 2 channels, Always triggered.
* Channels: TS, TS.
*/
static const ADCConversionGroup adcgrpcfg1 = {
@@ -85,15 +85,15 @@ static const ADCConversionGroup adcgrpcfg1 = {
ADC_GRP1_NUM_CHANNELS,
NULL,
adcerrorcallback,
- 0xF, /* EMUX */ /* Continuous trigger */
+ 0xF, /* EMUX */ /* Always trigger */
0, /* SSMUX */
(1 << 7) | (1 << 5) |
- (1 << 3) /* SSCTL */ /* 2 times TS, 2nd has end+int bit set */
+ (1 << 3) /* SSCTL */ /* 2 times TS, 2nd has end bit set */
};
/*
* ADC conversion group.
- * Mode: Continuous, 16 samples of 8 channels, SW triggered.
+ * Mode: Continuous, 16 samples of 8 channels, Always triggered.
* Channels: TS, TS, TS, TS, TS, TS, TS, TS.
*/
static const ADCConversionGroup adcgrpcfg2 = {
@@ -101,8 +101,8 @@ static const ADCConversionGroup adcgrpcfg2 = {
ADC_GRP2_NUM_CHANNELS,
adccallback,
adcerrorcallback,
- 0xF, /* EMUX */
- 0, /* SSMUX */
+ 0xF, /* EMUX */ /* Always trigger */
+ 0, /* SSMUX */
(1 << 31) | (1 << 29) |
(1 << 27) |
(1 << 23) |
@@ -110,7 +110,7 @@ static const ADCConversionGroup adcgrpcfg2 = {
(1 << 15) |
(1 << 11) |
(1 << 7) |
- (1 << 3) /* SSCTL */
+ (1 << 3) /* SSCTL */ /* 8 times TS, 8th has end bit set */
};
/*