Increase SetFrequency precision - int->double
This commit is contained in:
parent
2d00e1c63a
commit
78c51aa372
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
if(ModulateFromMasterPLL)
|
||||||
{
|
{
|
||||||
|
@ -160,6 +160,7 @@ int clkgpio::SetFrequency(int Frequency)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t clkgpio::GetMasterFrac(int Frequency)
|
uint32_t clkgpio::GetMasterFrac(int Frequency)
|
||||||
{
|
{
|
||||||
if(ModulateFromMasterPLL)
|
if(ModulateFromMasterPLL)
|
||||||
|
|
|
@ -156,7 +156,7 @@ class clkgpio:public gpio
|
||||||
int SetPllNumber(int PllNo,int MashType);
|
int SetPllNumber(int PllNo,int MashType);
|
||||||
uint64_t GetPllFrequency(int PllNo);
|
uint64_t GetPllFrequency(int PllNo);
|
||||||
void print_clock_tree(void);
|
void print_clock_tree(void);
|
||||||
int SetFrequency(int Frequency);
|
int SetFrequency(double Frequency);
|
||||||
int SetClkDivFrac(uint32_t Div,uint32_t Frac);
|
int SetClkDivFrac(uint32_t Div,uint32_t Frac);
|
||||||
void SetPhase(bool inversed);
|
void SetPhase(bool inversed);
|
||||||
void SetAdvancedPllMode(bool Advanced);
|
void SetAdvancedPllMode(bool Advanced);
|
||||||
|
|
Loading…
Reference in a new issue