Elite 1.4-re try compile gptimer
This commit is contained in:
+6
@@ -32,6 +32,12 @@ static void headstage_gptimer_callback(GPTimerCC26XX_Handle handle, GPTimerCC26X
|
||||
GPTimerCC26XX_registerInterrupt(gptimer_handle, headstage_gptimer_callback, GPT_INT_TIMEOUT); \
|
||||
} while (0)
|
||||
|
||||
Types_FreqHz freq;
|
||||
BIOS_getCpuFreq(&freq);
|
||||
GPTimerCC26XX_Value loadVal = freq.lo / 1000 - 1; //47999
|
||||
GPTimerCC26XX_setLoadValue(hTimer, loadVal);
|
||||
GPTimerCC26XX_registerInterrupt(hTimer, timerCallback, GPT_INT_TIMEOUT);
|
||||
|
||||
#define headstage_gptimer_set_frequency(frequency) \
|
||||
do { \
|
||||
uint32_t _frequency = (uint32_t)(frequency); \
|
||||
|
||||
Reference in New Issue
Block a user