fix: 修改spi时钟频率和时钟源,修改跳频控制时钟源,修改跳频逻辑
This commit is contained in:
@@ -923,6 +923,7 @@ int32_t Hardware_Init(void)
|
||||
static int hop_cnt = 0;
|
||||
static int next_pll_index = 2;
|
||||
static double curr_freq;
|
||||
static double hop_freq = MIN_FREQ + FREQ_SEP;
|
||||
static double next_freq = MIN_FREQ;
|
||||
|
||||
|
||||
@@ -943,7 +944,11 @@ int32_t Hardware_Init(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
next_freq = (curr_freq + FREQ_SEP > MAX_FREQ) ? MIN_FREQ : curr_freq + FREQ_SEP;
|
||||
hop_freq += FREQ_SEP;
|
||||
if( hop_freq > MAX_FREQ){
|
||||
hop_freq = MIN_FREQ + FREQ_SEP;
|
||||
}
|
||||
next_freq = hop_freq;
|
||||
}
|
||||
|
||||
if (next_pll_index == 2)
|
||||
|
||||
Reference in New Issue
Block a user