mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
Fix the ADC code on the BL for revolution
This commit is contained in:
parent
c660dd17f0
commit
65065f2588
@ -82,9 +82,7 @@ struct pios_adc_dev {
|
||||
enum pios_adc_dev_magic magic;
|
||||
};
|
||||
|
||||
#if defined(PIOS_INCLUDE_FREERTOS)
|
||||
struct pios_adc_dev * pios_adc_dev;
|
||||
#endif
|
||||
|
||||
// Private functions
|
||||
void PIOS_ADC_downsample_data();
|
||||
@ -271,8 +269,14 @@ static struct pios_adc_dev * PIOS_ADC_Allocate()
|
||||
return(adc_dev);
|
||||
}
|
||||
#else
|
||||
#if defined(PIOS_INCLUDE_ADC)
|
||||
#error Not implemented
|
||||
#endif
|
||||
static struct pios_adc_dev * PIOS_ADC_Allocate()
|
||||
{
|
||||
return (struct pios_adc_dev *) NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Init the ADC.
|
||||
|
Loading…
x
Reference in New Issue
Block a user