wrap clkin init in r9 board check (#1307)

This commit is contained in:
Jacob Graves
2023-04-19 11:32:32 -06:00
committed by GitHub
parent 464a6019b7
commit 189b5bf693
2 changed files with 6 additions and 6 deletions

View File

@ -811,10 +811,6 @@ void cpu_clock_init(void)
// CCU2_CLK_APLL_CFG = 0;
// CCU2_CLK_SDIO_CFG = 0;
#endif
if (detected_platform() == BOARD_ID_HACKRF1_R9) {
clkin_detect_init();
}
}
clock_source_t activate_best_clock_source(void)

View File

@ -288,7 +288,11 @@ int main(void)
}
operacake_init(operacake_allow_gpio);
// FIXME: clock detection on r9 only works when calling init twice
if (detected_platform() == BOARD_ID_HACKRF1_R9) {
clkin_detect_init();
clkin_detect_init();
}
while (true) {
transceiver_request_t request;