You've already forked TEF6686_ESP32
Cleanup file
This commit is contained in:
196
src/constants.h
196
src/constants.h
@@ -8,106 +8,106 @@
|
||||
typeof (Y) y_ = (Y);\
|
||||
(x_ < y_) ? x_ : y_; })
|
||||
|
||||
#define TIMER_OFFSET_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_BW_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_SNR_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_BAT_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_SCREENSAVER_BASE 1000000
|
||||
#define TIMER_500_TICK 500
|
||||
#define TIMER_OFFSET_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_BW_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_SNR_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_BAT_TIMER (TIMER_500_TICK)
|
||||
#define TIMER_SCREENSAVER_BASE 1000000
|
||||
#define TIMER_500_TICK 500
|
||||
|
||||
#define BAT_LEVEL_EMPTY 1600
|
||||
#define BAT_LEVEL_WARN 1700
|
||||
#define BAT_LEVEL_FULL 2270
|
||||
#define BAT_LEVEL_STAGE 4
|
||||
#define BATTERY_WARN_VALUE 3.68
|
||||
#define BATTERY_LOW_VALUE 3.0
|
||||
#define BATTERY_FULL_VALUE 4.2
|
||||
#define BAT_LEVEL_EMPTY 1600
|
||||
#define BAT_LEVEL_WARN 1700
|
||||
#define BAT_LEVEL_FULL 2270
|
||||
#define BAT_LEVEL_STAGE 4
|
||||
#define BATTERY_WARN_VALUE 3.68
|
||||
#define BATTERY_LOW_VALUE 3.0
|
||||
#define BATTERY_FULL_VALUE 4.2
|
||||
|
||||
#define XTAL_0V_ADC 0
|
||||
#define XTAL_1V_ADC 1050
|
||||
#define XTAL_2V_ADC 2250
|
||||
#define XTAL_ADC_TOL 300
|
||||
#define XTAL_0V_ADC 0
|
||||
#define XTAL_1V_ADC 1050
|
||||
#define XTAL_2V_ADC 2250
|
||||
#define XTAL_ADC_TOL 300
|
||||
|
||||
#define LANGUAGE_CHS 14
|
||||
#define LANGUAGE_CHS 14
|
||||
|
||||
#define FREQ_MW_STEP_9K 9
|
||||
#define FREQ_MW_STEP_10K 10
|
||||
#define FREQ_SW_STEP_5K 5
|
||||
#define FREQ_OIRT_STEP_30K 3
|
||||
#define FREQ_FM_STEP_50K 5
|
||||
#define FREQ_FM_STEP_100K 10
|
||||
#define FREQ_FM_STEP_200K 20
|
||||
#define FREQ_MW_STEP_9K 9
|
||||
#define FREQ_MW_STEP_10K 10
|
||||
#define FREQ_SW_STEP_5K 5
|
||||
#define FREQ_OIRT_STEP_30K 3
|
||||
#define FREQ_FM_STEP_50K 5
|
||||
#define FREQ_FM_STEP_100K 10
|
||||
#define FREQ_FM_STEP_200K 20
|
||||
|
||||
#define FREQ_LW_LOW_EDGE_MIN 144
|
||||
#define FREQ_LW_HIGH_EDGE_MAX 519
|
||||
#define FREQ_MW_LOW_EDGE_MIN_9K 522
|
||||
#define FREQ_MW_LOW_EDGE_MIN_10K 520
|
||||
#define FREQ_MW_HIGH_EDGE_MAX_9K 1791
|
||||
#define FREQ_MW_HIGH_EDGE_MAX_10K 1720
|
||||
#define FREQ_SW_LOW_EDGE_MIN 1700
|
||||
#define FREQ_SW_LOW_EDGE_MAX (FREQ_SW_160M_START)
|
||||
#define FREQ_SW_HIGH_EDGE_MIN (FREQ_SW_11M_END)
|
||||
#define FREQ_SW_HIGH_EDGE_MAX (FREQ_SW_END)
|
||||
#define FREQ_FM_START 65000
|
||||
#define FREQ_FM_END 108000
|
||||
#define FREQ_FM_OIRT_START 6500 // use values of 1/10 * kHz
|
||||
#define FREQ_FM_OIRT_END 7400 // use values of 1/10 * kHz
|
||||
#define FREQ_LW_LOW_EDGE_MIN 144
|
||||
#define FREQ_LW_HIGH_EDGE_MAX 519
|
||||
#define FREQ_MW_LOW_EDGE_MIN_9K 522
|
||||
#define FREQ_MW_LOW_EDGE_MIN_10K 520
|
||||
#define FREQ_MW_HIGH_EDGE_MAX_9K 1791
|
||||
#define FREQ_MW_HIGH_EDGE_MAX_10K 1720
|
||||
#define FREQ_SW_LOW_EDGE_MIN 1700
|
||||
#define FREQ_SW_LOW_EDGE_MAX (FREQ_SW_160M_START)
|
||||
#define FREQ_SW_HIGH_EDGE_MIN (FREQ_SW_11M_END)
|
||||
#define FREQ_SW_HIGH_EDGE_MAX (FREQ_SW_END)
|
||||
#define FREQ_FM_START 65000
|
||||
#define FREQ_FM_END 108000
|
||||
#define FREQ_FM_OIRT_START 6500 // use values of 1/10 * kHz
|
||||
#define FREQ_FM_OIRT_END 7400 // use values of 1/10 * kHz
|
||||
|
||||
#define FM_DEEMPHASIS_50 50
|
||||
#define FM_DEEMPHASIS_75 75
|
||||
#define REGION_EU 0
|
||||
#define REGION_US 1
|
||||
#define FM_DEEMPHASIS_50 50
|
||||
#define FM_DEEMPHASIS_75 75
|
||||
#define REGION_EU 0
|
||||
#define REGION_US 1
|
||||
|
||||
// according to https://www.short-wave.info/index.php?feature=frequencies
|
||||
#define FREQ_SW_START 1800
|
||||
#define FREQ_SW_END 27000
|
||||
#define FREQ_SW_160M_START 1800
|
||||
#define FREQ_SW_160M_END 2000
|
||||
#define FREQ_SW_120M_START 2300
|
||||
#define FREQ_SW_120M_END 2495
|
||||
#define FREQ_SW_90M_START 3200
|
||||
#define FREQ_SW_90M_END 3400
|
||||
#define FREQ_SW_75M_START 3900
|
||||
#define FREQ_SW_75M_END 4000
|
||||
#define FREQ_SW_60M_START 4750
|
||||
#define FREQ_SW_60M_END 4995
|
||||
#define FREQ_SW_49M_START 5900
|
||||
#define FREQ_SW_49M_END 6200
|
||||
#define FREQ_SW_41M_START 7200
|
||||
#define FREQ_SW_41M_END 7450
|
||||
#define FREQ_SW_31M_START 9400
|
||||
#define FREQ_SW_31M_END 9900
|
||||
#define FREQ_SW_25M_START 11600
|
||||
#define FREQ_SW_25M_END 12100
|
||||
#define FREQ_SW_22M_START 13570
|
||||
#define FREQ_SW_22M_END 13870
|
||||
#define FREQ_SW_19M_START 15100
|
||||
#define FREQ_SW_19M_END 15800
|
||||
#define FREQ_SW_16M_START 17480
|
||||
#define FREQ_SW_16M_END 17900
|
||||
#define FREQ_SW_15M_START 18900
|
||||
#define FREQ_SW_15M_END 19020
|
||||
#define FREQ_SW_13M_START 21450
|
||||
#define FREQ_SW_13M_END 21850
|
||||
#define FREQ_SW_11M_START 25670
|
||||
#define FREQ_SW_11M_END 26100
|
||||
#define FREQ_SW_START 1800
|
||||
#define FREQ_SW_END 27000
|
||||
#define FREQ_SW_160M_START 1800
|
||||
#define FREQ_SW_160M_END 2000
|
||||
#define FREQ_SW_120M_START 2300
|
||||
#define FREQ_SW_120M_END 2495
|
||||
#define FREQ_SW_90M_START 3200
|
||||
#define FREQ_SW_90M_END 3400
|
||||
#define FREQ_SW_75M_START 3900
|
||||
#define FREQ_SW_75M_END 4000
|
||||
#define FREQ_SW_60M_START 4750
|
||||
#define FREQ_SW_60M_END 4995
|
||||
#define FREQ_SW_49M_START 5900
|
||||
#define FREQ_SW_49M_END 6200
|
||||
#define FREQ_SW_41M_START 7200
|
||||
#define FREQ_SW_41M_END 7450
|
||||
#define FREQ_SW_31M_START 9400
|
||||
#define FREQ_SW_31M_END 9900
|
||||
#define FREQ_SW_25M_START 11600
|
||||
#define FREQ_SW_25M_END 12100
|
||||
#define FREQ_SW_22M_START 13570
|
||||
#define FREQ_SW_22M_END 13870
|
||||
#define FREQ_SW_19M_START 15100
|
||||
#define FREQ_SW_19M_END 15800
|
||||
#define FREQ_SW_16M_START 17480
|
||||
#define FREQ_SW_16M_END 17900
|
||||
#define FREQ_SW_15M_START 18900
|
||||
#define FREQ_SW_15M_END 19020
|
||||
#define FREQ_SW_13M_START 21450
|
||||
#define FREQ_SW_13M_END 21850
|
||||
#define FREQ_SW_11M_START 25670
|
||||
#define FREQ_SW_11M_END 26100
|
||||
|
||||
#define SW_MI_BAND_GAP 0
|
||||
#define SW_MI_BAND_11M 11
|
||||
#define SW_MI_BAND_13M 13
|
||||
#define SW_MI_BAND_15M 15
|
||||
#define SW_MI_BAND_16M 16
|
||||
#define SW_MI_BAND_19M 19
|
||||
#define SW_MI_BAND_22M 22
|
||||
#define SW_MI_BAND_25M 25
|
||||
#define SW_MI_BAND_31M 31
|
||||
#define SW_MI_BAND_41M 41
|
||||
#define SW_MI_BAND_49M 49
|
||||
#define SW_MI_BAND_60M 60
|
||||
#define SW_MI_BAND_75M 75
|
||||
#define SW_MI_BAND_90M 90
|
||||
#define SW_MI_BAND_120M 120
|
||||
#define SW_MI_BAND_160M 160
|
||||
#define SW_MI_BAND_GAP 0
|
||||
#define SW_MI_BAND_11M 11
|
||||
#define SW_MI_BAND_13M 13
|
||||
#define SW_MI_BAND_15M 15
|
||||
#define SW_MI_BAND_16M 16
|
||||
#define SW_MI_BAND_19M 19
|
||||
#define SW_MI_BAND_22M 22
|
||||
#define SW_MI_BAND_25M 25
|
||||
#define SW_MI_BAND_31M 31
|
||||
#define SW_MI_BAND_41M 41
|
||||
#define SW_MI_BAND_49M 49
|
||||
#define SW_MI_BAND_60M 60
|
||||
#define SW_MI_BAND_75M 75
|
||||
#define SW_MI_BAND_90M 90
|
||||
#define SW_MI_BAND_120M 120
|
||||
#define SW_MI_BAND_160M 160
|
||||
|
||||
//MAIN COLORS /* RGB 565 CODES */
|
||||
#define Black 0x0000 /* 0, 0, 0 */
|
||||
@@ -278,16 +278,16 @@
|
||||
#define EE_BYTE_FMSCANSENS 123
|
||||
#define EE_BYTE_FREQFONT 124
|
||||
#define EE_BYTE_SKIN 125
|
||||
#define EE_BYTE_XDRGTKMUTE 126
|
||||
#define EE_BYTE_FMAGC 127
|
||||
#define EE_BYTE_AMAGC 128
|
||||
#define EE_BYTE_FMSI 129
|
||||
#define EE_BYTE_XDRGTKMUTE 126
|
||||
#define EE_BYTE_FMAGC 127
|
||||
#define EE_BYTE_AMAGC 128
|
||||
#define EE_BYTE_FMSI 129
|
||||
#define EE_PRESETS_BAND_START 130
|
||||
#define EE_PRESET_BW_START 230
|
||||
#define EE_PRESET_MS_START 330
|
||||
#define EE_PRESETS_FREQUENCY_START 430
|
||||
#define EE_PRESETS_RDSPI_START 826
|
||||
#define EE_PRESETS_RDSPS_START 1321
|
||||
#define EE_PRESETS_FREQUENCY_START 430
|
||||
#define EE_PRESETS_RDSPI_START 826 // 5 bytes
|
||||
#define EE_PRESETS_RDSPS_START 1321 // 9 bytes
|
||||
#define EE_PRESETS_FREQUENCY 0
|
||||
|
||||
// End of EEPROM index defines
|
||||
|
||||
Reference in New Issue
Block a user