Move RFFC5072 setup before enabling RF power.
This commit is contained in:
@ -339,7 +339,10 @@ void rf_path_init(rf_path_t* const rf_path)
|
|||||||
max2837_setup(&max2837);
|
max2837_setup(&max2837);
|
||||||
max2837_start(&max2837);
|
max2837_start(&max2837);
|
||||||
|
|
||||||
|
// On HackRF One, the mixer is now set up earlier in boot.
|
||||||
|
#ifndef HACKRF_ONE
|
||||||
mixer_setup(&mixer);
|
mixer_setup(&mixer);
|
||||||
|
#endif
|
||||||
switchctrl_set(rf_path, switchctrl);
|
switchctrl_set(rf_path, switchctrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -229,6 +229,11 @@ int main(void)
|
|||||||
detect_hardware_platform();
|
detect_hardware_platform();
|
||||||
pin_setup();
|
pin_setup();
|
||||||
enable_1v8_power();
|
enable_1v8_power();
|
||||||
|
#ifdef HACKRF_ONE
|
||||||
|
// Set up mixer before enabling RF power, because its
|
||||||
|
// GPO is used to control the antenna bias tee.
|
||||||
|
mixer_setup(&mixer);
|
||||||
|
#endif
|
||||||
#if (defined HACKRF_ONE || defined RAD1O)
|
#if (defined HACKRF_ONE || defined RAD1O)
|
||||||
enable_rf_power();
|
enable_rf_power();
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user