Use PPB correction to adjust clock generator XTAL PLLA frequency.

Addresses issue #40.
This commit is contained in:
Jared Boone 2015-08-24 12:10:39 -07:00
parent fe7dcdc613
commit 8f326e2d8e
3 changed files with 4 additions and 5 deletions

View file

@ -21,6 +21,7 @@
#include "portapack.hpp"
#include "portapack_hal.hpp"
#include "portapack_persistent_memory.hpp"
#include "hackrf_hal.hpp"
#include "hackrf_gpio.hpp"
@ -127,6 +128,7 @@ void init() {
led_tx.setup();
clock_manager.init();
clock_manager.set_reference_ppb(persistent_memory::correction_ppb());
clock_manager.run_at_full_speed();
clock_manager.start_audio_pll();