mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
f4 adc: allow PIOS ADC to be properly excluded from the build
This was preventing the BL image from building
This commit is contained in:
parent
261e65a6f2
commit
c719d5b6cf
@ -45,6 +45,8 @@
|
||||
#include "pios.h"
|
||||
#include <pios_adc_priv.h>
|
||||
|
||||
#if defined(PIOS_INCLUDE_ADC)
|
||||
|
||||
#if !defined(PIOS_ADC_MAX_SAMPLES)
|
||||
#define PIOS_ADC_MAX_SAMPLES 0
|
||||
#endif
|
||||
@ -461,6 +463,8 @@ void PIOS_ADC_DMA_Handler(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* PIOS_INCLUDE_ADC */
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user