Skip to content

Commit

Permalink
[target] fix NBD_INFINITYAIOV2 adding USE_ADC
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Apr 26, 2024
1 parent c6d496f commit 68ddb62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/target/NBD_INFINITYAIOV2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@
#define MAX7456_SPI_CS_PIN PA15
#define MAX7456_SPI_INSTANCE SPI3

#define USE_ADC
#define VBAT_ADC_PIN PC1
#define CURRENT_METER_ADC_PIN PC2
#define ADC1_DMA_OPT 1
#define ADC1_DMA_STREAM DMA2_Stream4 //# ADC 1: DMA2 Stream 4 Channel 0
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
Expand Down

0 comments on commit 68ddb62

Please sign in to comment.