mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Merge pull request #4776 from jflyper/bfdev-add-conditional-to-mcu-dep-adc-drivers
ADC Add conditionals for MCU dependent drivers
This commit is contained in:
commit
74672972ba
3 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_ADC
|
||||
|
||||
#include "drivers/accgyro/accgyro.h"
|
||||
#include "drivers/io.h"
|
||||
#include "drivers/sensor.h"
|
||||
|
@ -222,3 +224,4 @@ void adcInit(const adcConfig_t *config)
|
|||
|
||||
ADC_StartConversion(adc.ADCx);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_ADC
|
||||
|
||||
#include "drivers/accgyro/accgyro.h"
|
||||
#include "drivers/system.h"
|
||||
|
||||
|
@ -202,3 +204,4 @@ void adcInit(const adcConfig_t *config)
|
|||
|
||||
ADC_SoftwareStartConv(adc.ADCx);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_ADC
|
||||
|
||||
#include "drivers/accgyro/accgyro.h"
|
||||
#include "drivers/system.h"
|
||||
|
||||
|
@ -199,3 +201,4 @@ void adcInit(const adcConfig_t *config)
|
|||
/* Start Conversation Error */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue