increased maximum tuning frequency from 6800 MHz to 7250 MHz

This commit is contained in:
Michael Ossmann
2014-03-03 14:07:48 -07:00
parent fbe4c481f2
commit d051c42e3a
2 changed files with 4 additions and 4 deletions

View File

@ -36,13 +36,13 @@
#define MAX_BYPASS_FREQ_MHZ (2750) #define MAX_BYPASS_FREQ_MHZ (2750)
#define MIN_HP_FREQ_MHZ (2750) #define MIN_HP_FREQ_MHZ (2750)
#define MAX_HP_FREQ_MHZ (6800) #define MAX_HP_FREQ_MHZ (7250)
static uint32_t max2837_freq_nominal_hz=2560000000; static uint32_t max2837_freq_nominal_hz=2560000000;
uint64_t freq_cache = 100000000; uint64_t freq_cache = 100000000;
/* /*
* Set freq/tuning between 5MHz to 6800 MHz (less than 16bits really used) * Set freq/tuning between 0MHz to 7250 MHz (less than 16bits really used)
* hz between 0 to 999999 Hz (not checked) * hz between 0 to 999999 Hz (not checked)
* return false on error or true if success. * return false on error or true if success.
*/ */
@ -84,7 +84,7 @@ bool set_freq(const uint64_t freq)
MAX2837_freq_hz = (freq_mhz * FREQ_ONE_MHZ) + freq_hz; MAX2837_freq_hz = (freq_mhz * FREQ_ONE_MHZ) + freq_hz;
/* RFFC5071_freq_mhz <= not used in Bypass mode */ /* RFFC5071_freq_mhz <= not used in Bypass mode */
max2837_set_frequency(MAX2837_freq_hz); max2837_set_frequency(MAX2837_freq_hz);
}else if( (freq_mhz >= MIN_HP_FREQ_MHZ) && (freq_mhz < MAX_HP_FREQ_MHZ) ) }else if( (freq_mhz >= MIN_HP_FREQ_MHZ) && (freq_mhz <= MAX_HP_FREQ_MHZ) )
{ {
rf_path_set_filter(RF_PATH_FILTER_HIGH_PASS); rf_path_set_filter(RF_PATH_FILTER_HIGH_PASS);
RFFC5071_freq_mhz = freq_mhz - (max2837_freq_nominal_hz / FREQ_ONE_MHZ); RFFC5071_freq_mhz = freq_mhz - (max2837_freq_nominal_hz / FREQ_ONE_MHZ);

View File

@ -85,7 +85,7 @@ int gettimeofday(struct timeval *tv, void* ignored)
#define DEFAULT_FREQ_HZ (900000000ull) /* 900MHz */ #define DEFAULT_FREQ_HZ (900000000ull) /* 900MHz */
#define FREQ_MIN_HZ (0ull) /* 0 Hz */ #define FREQ_MIN_HZ (0ull) /* 0 Hz */
#define FREQ_MAX_HZ (6800000000ull) /* 6800MHz */ #define FREQ_MAX_HZ (7250000000ull) /* 7250MHz */
#define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */ #define DEFAULT_SAMPLE_RATE_HZ (10000000) /* 10MHz default sample rate */