From aa02b85060c636955e02d32759f82013900181eb Mon Sep 17 00:00:00 2001 From: F5OEO Date: Tue, 27 Nov 2018 14:00:30 +0000 Subject: [PATCH] Set minimum frequency of PLL 200MHZ instead of 600MHZ. Minimum frequency possible is now 200/4095=49khz --- src/gpio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpio.cpp b/src/gpio.cpp index 10c80fa..8e495ff 100644 --- a/src/gpio.cpp +++ b/src/gpio.cpp @@ -205,7 +205,8 @@ int clkgpio::ComputeBestLO(uint64_t Frequency, int Bandwidth) // // There may be improvements possible to this algorithm. // Constants taken https://github.com/raspberrypi/linux/blob/ffd7bf4085b09447e5db96edd74e524f118ca3fe/drivers/clk/bcm/clk-bcm2835.c#L1763 - #define MIN_PLL_RATE 400e6 + //MIN RATE is NORMALLY 600MHZ + #define MIN_PLL_RATE 200e6 #define MIN_PLL_RATE_USE_PDIV 1700e6 #define MAX_PLL_RATE 4e9 #define XTAL_RATE 19.2e6