mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Add conditionals for MCU dependent ADC drivers
This commit is contained in:
parent
7a7f1ceda5
commit
3b3ed72be8
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"
|
||||
|
@ -219,3 +221,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"
|
||||
|
||||
|
@ -199,3 +201,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"
|
||||
|
||||
|
@ -196,3 +198,4 @@ void adcInit(const adcConfig_t *config)
|
|||
/* Start Conversation Error */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue