Move RFFC5072 setup before enabling RF power.

This commit is contained in:
Martin Ling
2022-09-19 13:02:29 +01:00
parent 5d78302d97
commit 44511c6c3b
2 changed files with 8 additions and 0 deletions

View File

@ -339,7 +339,10 @@ void rf_path_init(rf_path_t* const rf_path)
max2837_setup(&max2837);
max2837_start(&max2837);
// On HackRF One, the mixer is now set up earlier in boot.
#ifndef HACKRF_ONE
mixer_setup(&mixer);
#endif
switchctrl_set(rf_path, switchctrl);
}

View File

@ -229,6 +229,11 @@ int main(void)
detect_hardware_platform();
pin_setup();
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)
enable_rf_power();
#endif