wrap clkin init in r9 board check (#1307)
This commit is contained in:
@ -811,10 +811,6 @@ void cpu_clock_init(void)
|
|||||||
// CCU2_CLK_APLL_CFG = 0;
|
// CCU2_CLK_APLL_CFG = 0;
|
||||||
// CCU2_CLK_SDIO_CFG = 0;
|
// CCU2_CLK_SDIO_CFG = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (detected_platform() == BOARD_ID_HACKRF1_R9) {
|
|
||||||
clkin_detect_init();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clock_source_t activate_best_clock_source(void)
|
clock_source_t activate_best_clock_source(void)
|
||||||
|
@ -288,7 +288,11 @@ int main(void)
|
|||||||
}
|
}
|
||||||
operacake_init(operacake_allow_gpio);
|
operacake_init(operacake_allow_gpio);
|
||||||
|
|
||||||
clkin_detect_init();
|
// 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) {
|
while (true) {
|
||||||
transceiver_request_t request;
|
transceiver_request_t request;
|
||||||
|
Reference in New Issue
Block a user