This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: 如何使用LGPtimer定时1s

Part Number: CC2340R5
void time_Init()
{
    LGPTimerLPF3_Handle lgptHandle;
    LGPTimerLPF3_Params params;
    uint32_t counterTarget;
    // Initialize parameters and assign callback function to be used
    LGPTimerLPF3_Params_init(&params);
    params.hwiCallbackFxn = timerCallback;
    params.prescalerDiv = 0;
    // Open driver
    lgptHandle = LGPTimerLPF3_open(0, &params);
    // 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是为什么