git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1320 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-11-23 21:18:54 +00:00
parent ed930d3c0f
commit 6150f3b4a3
6 changed files with 35 additions and 35 deletions

View File

@ -121,7 +121,7 @@ void adcStop(ADCDriver *adcp) {
* with no gaps. * with no gaps.
*/ */
bool_t adcStartConversion(ADCDriver *adcp, bool_t adcStartConversion(ADCDriver *adcp,
ADCConversionGroup *grpp, const ADCConversionGroup *grpp,
adcsample_t *samples, adcsample_t *samples,
size_t depth, size_t depth,
adccallback_t callback) { adccallback_t callback) {

View File

@ -51,7 +51,7 @@ extern "C" {
void adcStart(ADCDriver *adcp, const ADCConfig *config); void adcStart(ADCDriver *adcp, const ADCConfig *config);
void adcStop(ADCDriver *adcp); void adcStop(ADCDriver *adcp);
bool_t adcStartConversion(ADCDriver *adcp, bool_t adcStartConversion(ADCDriver *adcp,
ADCConversionGroup *grpp, const ADCConversionGroup *grpp,
adcsample_t *samples, adcsample_t *samples,
size_t depth, size_t depth,
adccallback_t callback); adccallback_t callback);

View File

@ -190,7 +190,7 @@ void adc_lld_stop(ADCDriver *adcp) {
*/ */
void adc_lld_start_conversion(ADCDriver *adcp) { void adc_lld_start_conversion(ADCDriver *adcp) {
uint32_t ccr, n; uint32_t ccr, n;
ADCConversionGroup *grpp = adcp->ad_grpp; const ADCConversionGroup *grpp = adcp->ad_grpp;
/* DMA setup.*/ /* DMA setup.*/
adcp->ad_dma->CMAR = (uint32_t)adcp->ad_samples; adcp->ad_dma->CMAR = (uint32_t)adcp->ad_samples;

View File

@ -230,7 +230,7 @@ typedef struct {
/** /**
* @brief Current conversion group pointer or @p NULL. * @brief Current conversion group pointer or @p NULL.
*/ */
ADCConversionGroup *ad_grpp; const ADCConversionGroup *ad_grpp;
/* End of the mandatory fields.*/ /* End of the mandatory fields.*/
/** /**
* @brief Pointer to the ADCx registers block. * @brief Pointer to the ADCx registers block.

View File

@ -29,15 +29,15 @@
#include <stm32_dma.h> #include <stm32_dma.h>
#include <nvic.h> #include <nvic.h>
/*===========================================================================*/
/* Low Level Driver exported variables. */
/*===========================================================================*/
#if USE_STM32_SPI1 || defined(__DOXYGEN__) #if USE_STM32_SPI1 || defined(__DOXYGEN__)
/** @brief SPI1 driver identifier.*/ /** @brief SPI1 driver identifier.*/
SPIDriver SPID1; SPIDriver SPID1;
#endif #endif
/*===========================================================================*/
/* Low Level Driver exported variables. */
/*===========================================================================*/
#if USE_STM32_SPI2 || defined(__DOXYGEN__) #if USE_STM32_SPI2 || defined(__DOXYGEN__)
/** @brief SPI2 driver identifier.*/ /** @brief SPI2 driver identifier.*/
SPIDriver SPID2; SPIDriver SPID2;

View File

@ -112,7 +112,7 @@ typedef struct {
/** /**
* @brief Current conversion group pointer or @p NULL. * @brief Current conversion group pointer or @p NULL.
*/ */
ADCConversionGroup *ad_grpp; const ADCConversionGroup *ad_grpp;
/* End of the mandatory fields.*/ /* End of the mandatory fields.*/
} ADCDriver; } ADCDriver;