void time_Init()
{
LGPTimerLPF3_Handle lgptHandle;
LGPTimerLPF3_Params params;
uint32_t counterTarget;
// Initialize parameters and assign callback function to be used
LGPTimerLPF3_Params_init(¶ms);
params.hwiCallbackFxn = timerCallback;
params.prescalerDiv = 0;
// Open driver
lgptHandle = LGPTimerLPF3_open(0, ¶ms);
// Set counter target
counterTarget = 48000000 - 1; // 1 s with a system clock of 48 MHz
LGPTimerLPF3_setInitialCounterTarget(lgptHandle, counterTarget, true);
// Enable counter target interrupt
LGPTimerLPF3_enableInterrupt(lgptHandle, LGPTimerLPF3_INT_TGT);
// Start counter in count-up-periodic mode
LGPTimerLPF3_start(lgptHandle, LGPTimerLPF3_CTL_MODE_UP_PER);
}
我想要实现1s计一次数,但是用上面的方式却还是1ms是为什么