Index: firmware/App/Drivers/InternalADC.c =================================================================== diff -u -ref95a6c8bdfb5ada99e6cffb9627155b6d3cd8c6 -r766708fceb0bdf1af8c7897df29d4f5036bfd3db --- firmware/App/Drivers/InternalADC.c (.../InternalADC.c) (revision ef95a6c8bdfb5ada99e6cffb9627155b6d3cd8c6) +++ firmware/App/Drivers/InternalADC.c (.../InternalADC.c) (revision 766708fceb0bdf1af8c7897df29d4f5036bfd3db) @@ -28,8 +28,8 @@ // ********** private definitions ********** #define MAX_ADC_CHANNELS 24 ///< ADC supports up to 24 channels. -#define SIZE_OF_ROLLING_AVG 16 ///< samples in rolling average calculations. -#define ROLLING_AVG_SHIFT_DIVIDER 4 ///< rolling average shift divider. +#define SIZE_OF_ROLLING_AVG 16 ///< Samples in rolling average calculations. +#define ROLLING_AVG_SHIFT_DIVIDER 4 ///< Rolling average shift divider. /// Mapping from enumerated used ADC channel to processor channel ID. const INT_ADC_CHANNEL_T ADC_CHANNEL_NUM_TO_CHANNEL_ID[ MAX_ADC_CHANNELS ] = @@ -83,7 +83,7 @@ { U32 c,r; - // zero all adc values and stats + // Zero all adc values and stats adcRawReadingsCount = 0; for ( c = 0; c < NUM_OF_INT_ADC_CHANNELS; c++ ) { @@ -98,7 +98,7 @@ } } - // enable interrupt when all channels converted + // Enable interrupt when all channels converted adcEnableNotification( adcREG1, adcGROUP1 ); } @@ -134,7 +134,7 @@ if ( adcRawReadingsCount < NUM_OF_INT_ADC_CHANNELS ) { - // process readings from last conversion + // Process readings from last conversion for ( i = 0; i < adcRawReadingsCount; i++ ) { U32 ch = ADC_CHANNEL_NUM_TO_CHANNEL_ID[ adcRawReadings[ i ].id ]; @@ -151,7 +151,7 @@ SET_ALARM_WITH_2_U32_DATA( ALARM_ID_HD_SOFTWARE_FAULT, SW_FAULT_ID_INT_ADC_DATA_OVERRUN, adcRawReadingsCount ) } - // start an adc channel group conversion + // Start an adc channel group conversion adcStartConversion( adcREG1, adcGROUP1 ); }