aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2017-09-02 14:15:15 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2017-09-02 14:15:15 +0000
commit94c03cf54c3ec35b05ca2c31b1d60129fff6f3da (patch)
tree4c9baf4c49ce9316618d22b6329b237c7c2b6332 /os/hal
parentf63698059e6f5ae4b7a050af57ad2fe5cb0e50b8 (diff)
downloadChibiOS-94c03cf54c3ec35b05ca2c31b1d60129fff6f3da.tar.gz
ChibiOS-94c03cf54c3ec35b05ca2c31b1d60129fff6f3da.tar.bz2
ChibiOS-94c03cf54c3ec35b05ca2c31b1d60129fff6f3da.zip
Change commnet, remove empty line.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10531 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.c15
-rw-r--r--os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.h4
2 files changed, 8 insertions, 11 deletions
diff --git a/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.c b/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.c
index def5b6c1e..4898941b6 100644
--- a/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.c
+++ b/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.c
@@ -15,8 +15,8 @@
*/
/**
- * @file hal_adc_lld.c
- * @brief ADC Driver subsystem low level driver source.
+ * @file ADCv1/hal_adc_lld.c
+ * @brief AVR/MEGA ADC subsystem low level driver source.
*
* @addtogroup ADC
* @{
@@ -37,6 +37,7 @@
#if AVR_ADC_USE_ADC1 || defined(__DOXYGEN__)
ADCDriver ADCD1;
#endif
+
/*===========================================================================*/
/* Driver local variables. */
/*===========================================================================*/
@@ -45,7 +46,8 @@ ADCDriver ADCD1;
/* Driver local functions. */
/*===========================================================================*/
-static size_t getAdcChannelNumberFromMask(uint8_t mask, uint8_t currentChannel) {
+static size_t getAdcChannelNumberFromMask(uint8_t mask,
+ uint8_t currentChannel) {
for (uint8_t i = 0; mask > 0; i++) {
if (mask & 0x01) {
@@ -63,7 +65,6 @@ static size_t getAdcChannelNumberFromMask(uint8_t mask, uint8_t currentChannel)
static void setAdcChannel(uint8_t channelNum) {
ADMUX = (ADMUX & 0xf8) | (channelNum & 0x07);
-
}
/*===========================================================================*/
@@ -118,7 +119,6 @@ void adc_lld_init(void) {
//uso aref, only valid for arduino. arduino ha aref collegato
ADMUX = (0 << REFS1) | (0 << REFS0);
-
}
/**
@@ -153,7 +153,6 @@ void adc_lld_stop(ADCDriver *adcp) {
/* Clock de-activation.*/
ADCSRA &= ~(1 << ADEN);
}
-
}
/**
@@ -169,7 +168,6 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
setAdcChannel(getAdcChannelNumberFromMask(adcp->grpp->channelsMask,0));
ADCSRA |= 1 << ADSC;
-
}
/**
@@ -181,8 +179,7 @@ void adc_lld_start_conversion(ADCDriver *adcp) {
*/
void adc_lld_stop_conversion(ADCDriver *adcp) {
- ADCSRA &= ~(1 << ADSC);
-
+ ADCSRA &= ~(1 << ADSC);
}
#endif /* HAL_USE_ADC */
diff --git a/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.h b/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.h
index 1affdde98..fe0e03dd0 100644
--- a/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.h
+++ b/os/hal/ports/AVR/MEGA/LLD/ADCv1/hal_adc_lld.h
@@ -15,8 +15,8 @@
*/
/**
- * @file hal_adc_lld.h
- * @brief ADC Driver subsystem low level driver header.
+ * @file ADCv1/hal_adc_lld.h
+ * @brief AVR/MEGA ADC subsystem low level driver header.
*
* @addtogroup ADC
* @{