File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 546
546
#define ADC_DMA_STREAM_IRQHandler DMA2_Stream0_IRQHandler
547
547
548
548
// VBat divider is /4 on F42x and F43x devices
549
- #if defined(RADIO_TX16S ) || defined(RADIO_T15 ) || defined(RADIO_F16 ) || defined(RADIO_V16 )
549
+ #if defined(RADIO_TX16S ) || defined(RADIO_T15 ) || defined(RADIO_F16 ) || defined(RADIO_V16 ) || defined( RADIO_T18 )
550
550
#define ADC_VREF_PREC2 330
551
- #elif defined(RADIO_T16 ) || defined( RADIO_T18 )
551
+ #elif defined(RADIO_T16 )
552
552
#define ADC_VREF_PREC2 300
553
553
#else
554
554
#define ADC_VREF_PREC2 250
Original file line number Diff line number Diff line change 1519
1519
#define ADC_CHANNEL_POT1 LL_ADC_CHANNEL_8 // ADC12_IN8
1520
1520
#define ADC_CHANNEL_POT2 LL_ADC_CHANNEL_9 // ADC12_IN9
1521
1521
#define ADC_CHANNEL_BATT LL_ADC_CHANNEL_10
1522
- #define ADC_VREF_PREC2 330
1522
+ #define ADC_VREF_PREC2 300
1523
1523
#elif defined(RADIO_TPROS )
1524
1524
#define HARDWARE_POT1
1525
1525
#define HARDWARE_POT2
1582
1582
#define ADC_CHANNEL_POT1 LL_ADC_CHANNEL_6
1583
1583
#define ADC_CHANNEL_POT2 LL_ADC_CHANNEL_8
1584
1584
#define ADC_CHANNEL_BATT LL_ADC_CHANNEL_10
1585
- #define ADC_VREF_PREC2 330
1585
+ #define ADC_VREF_PREC2 300
1586
1586
#elif defined(RADIO_BUMBLEBEE )
1587
1587
#define ADC_MAIN ADC3
1588
1588
#define ADC_DMA DMA2
1645
1645
#define ADC_EXT ADC1
1646
1646
#define ADC_EXT_CHANNELS { ADC_CHANNEL_RTC_BATT }
1647
1647
#define ADC_EXT_SAMPTIME LL_ADC_SAMPLINGTIME_56CYCLES
1648
- #if defined(RADIO_T20V2 )
1649
1648
#define ADC_VREF_PREC2 300
1650
- #else
1651
- #define ADC_VREF_PREC2 330
1652
- #endif
1653
1649
#elif defined(RADIO_MT12 )
1654
1650
#define ADC_GPIO_PIN_STICK_TH LL_GPIO_PIN_0 // PA.00
1655
1651
#define ADC_GPIO_PIN_STICK_ST LL_GPIO_PIN_1 // PA.01
You can’t perform that action at this time.
0 commit comments