Increase SetFrequency precision - int->double

This commit is contained in:
F5OEO 2018-03-19 12:01:44 +00:00
parent 2d00e1c63a
commit 78c51aa372
2 changed files with 3 additions and 2 deletions

View file

@ -132,7 +132,7 @@ int clkgpio::SetMasterMultFrac(uint32_t Mult,uint32_t Frac)
}
int clkgpio::SetFrequency(int Frequency)
int clkgpio::SetFrequency(double Frequency)
{
if(ModulateFromMasterPLL)
{
@ -160,6 +160,7 @@ int clkgpio::SetFrequency(int Frequency)
}
uint32_t clkgpio::GetMasterFrac(int Frequency)
{
if(ModulateFromMasterPLL)

View file

@ -156,7 +156,7 @@ class clkgpio:public gpio
int SetPllNumber(int PllNo,int MashType);
uint64_t GetPllFrequency(int PllNo);
void print_clock_tree(void);
int SetFrequency(int Frequency);
int SetFrequency(double Frequency);
int SetClkDivFrac(uint32_t Div,uint32_t Frac);
void SetPhase(bool inversed);
void SetAdvancedPllMode(bool Advanced);