diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-23 21:18:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-23 21:18:54 +0000 |
commit | 6150f3b4a34df80ac65cee5d1818982199b5a027 (patch) | |
tree | 0f9e6aea3a4bae426572fc4b7f897fb73b78748c /os/io/platforms/STM32/adc_lld.h | |
parent | ed930d3c0f0bf075dcc4a2361ff96f51e8b8964c (diff) | |
download | ChibiOS-6150f3b4a34df80ac65cee5d1818982199b5a027.tar.gz ChibiOS-6150f3b4a34df80ac65cee5d1818982199b5a027.tar.bz2 ChibiOS-6150f3b4a34df80ac65cee5d1818982199b5a027.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1320 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/platforms/STM32/adc_lld.h')
-rw-r--r-- | os/io/platforms/STM32/adc_lld.h | 38 |
1 files changed, 19 insertions, 19 deletions
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;
/*===========================================================================*/
|