mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 05:17:03 +08:00
whitespace cleanup
This commit is contained in:
+12
-12
@@ -53,26 +53,26 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
Struct to collect samples from ADC and building an average
|
||||
over MAX_AV_NB_SAMPLE values.
|
||||
See @ref adc_buf_channel.
|
||||
Struct to collect samples from ADC and building an average
|
||||
over MAX_AV_NB_SAMPLE values.
|
||||
See @ref adc_buf_channel.
|
||||
*/
|
||||
struct adc_buf {
|
||||
uint16_t sum; /* Sum of samples in buffer (avg = sum / av_nb_sample) */
|
||||
uint16_t sum; /* Sum of samples in buffer (avg = sum / av_nb_sample) */
|
||||
uint16_t values[MAX_AV_NB_SAMPLE]; /* Buffer for sample values from ADC */
|
||||
uint8_t head; /* Position index of write head in buffer */
|
||||
uint8_t av_nb_sample; /* Number of samples to use in buffer (used for avg) */
|
||||
uint8_t head; /* Position index of write head in buffer */
|
||||
uint8_t av_nb_sample; /* Number of samples to use in buffer (used for avg) */
|
||||
};
|
||||
|
||||
/**
|
||||
Registers a buffer to be used to store the specified converted channel
|
||||
Usage:
|
||||
Registers a buffer to be used to store the specified converted channel
|
||||
Usage:
|
||||
@code
|
||||
struct adc_buf channel_buf;
|
||||
adc_buf_channel(1, &channel_buf, 12);
|
||||
struct adc_buf channel_buf;
|
||||
adc_buf_channel(1, &channel_buf, 12);
|
||||
@endcode
|
||||
Registers channel_buf as buffer for ADC channel 1, with max index 12
|
||||
(12 samples).
|
||||
Registers channel_buf as buffer for ADC channel 1, with max index 12
|
||||
(12 samples).
|
||||
*/
|
||||
void adc_buf_channel(uint8_t adc_channel, struct adc_buf* s, uint8_t av_nb_sample);
|
||||
|
||||
|
||||
@@ -58,5 +58,3 @@ void booz2_pwm_init_hw( void ) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user