From 6150f3b4a34df80ac65cee5d1818982199b5a027 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 23 Nov 2009 21:18:54 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1320 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/io/platforms/STM32/adc_lld.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'os/io/platforms/STM32/adc_lld.h') diff --git a/os/io/platforms/STM32/adc_lld.h b/os/io/platforms/STM32/adc_lld.h index 2c60f81e8..bbb4faef0 100644 --- a/os/io/platforms/STM32/adc_lld.h +++ b/os/io/platforms/STM32/adc_lld.h @@ -144,45 +144,45 @@ typedef struct { /** * @brief Enables the circular buffer mode for the group. */ - bool_t acg_circular; + bool_t acg_circular; /** * @brief Number of the analog channels belonging to the conversion group. */ - adc_channels_num_t acg_num_channels; + adc_channels_num_t acg_num_channels; /* End of the mandatory fields.*/ /** * @brief ADC CR1 register initialization data. * @note All the required bits must be defined into this field except * @p ADC_CR1_SCAN that is enforced inside the driver. */ - uint32_t acg_cr1; + uint32_t acg_cr1; /** * @brief ADC CR2 register initialization data. * @note All the required bits must be defined into this field except * @p ADC_CR2_DMA and @p ADC_CR2_ADON that are enforced inside the * driver. */ - uint32_t acg_cr2; + uint32_t acg_cr2; /** * @brief ADC SMPR1 register initialization data. */ - uint32_t acg_smpr1; + uint32_t acg_smpr1; /** * @brief ADC SMPR2 register initialization data. */ - uint32_t acg_smpr2; + uint32_t acg_smpr2; /** * @brief ADC SQR1 register initialization data. */ - uint32_t acg_sqr1; + uint32_t acg_sqr1; /** * @brief ADC SQR2 register initialization data. */ - uint32_t acg_sqr2; + uint32_t acg_sqr2; /** * @brief ADC SQR3 register initialization data. */ - uint32_t acg_sqr3; + uint32_t acg_sqr3; } ADCConversionGroup; /** @@ -206,44 +206,44 @@ typedef struct { /** * @brief Driver state. */ - adcstate_t ad_state; + adcstate_t ad_state; /** * @brief Current configuration data. */ - const ADCConfig *ad_config; + const ADCConfig *ad_config; /** * @brief Synchronization semaphore. */ - Semaphore ad_sem; + Semaphore ad_sem; /** * @brief Current callback function or @p NULL. */ - adccallback_t ad_callback; + adccallback_t ad_callback; /** * @brief Current samples buffer pointer or @p NULL. */ - adcsample_t *ad_samples; + adcsample_t *ad_samples; /** * @brief Current samples buffer depth or @p 0. */ - size_t ad_depth; + size_t ad_depth; /** * @brief Current conversion group pointer or @p NULL. */ - ADCConversionGroup *ad_grpp; + const ADCConversionGroup *ad_grpp; /* End of the mandatory fields.*/ /** * @brief Pointer to the ADCx registers block. */ - ADC_TypeDef *ad_adc; + ADC_TypeDef *ad_adc; /** * @brief Pointer to the DMA channel registers block. */ - DMA_Channel_TypeDef *ad_dma; + DMA_Channel_TypeDef *ad_dma; /** * @brief DMA priority bit mask. */ - uint32_t ad_dmaprio; + uint32_t ad_dmaprio; } ADCDriver; /*===========================================================================*/ -- cgit v1.2.3