bsp/leon3: Use LEON3_GPTIMER_BASE

This commit is contained in:
Sebastian Huber
2021-08-10 09:32:47 +02:00
parent f6b7279687
commit dc16709697

View File

@@ -131,10 +131,14 @@ static void leon3_counter_initialize(void)
gpt = LEON3_Timer_Regs;
#if defined(LEON3_GPTIMER_BASE)
leon3_counter_use_gptimer(counter, gpt);
#else
if (gpt != NULL) {
/* Fall back to the first GPTIMER if available */
leon3_counter_use_gptimer(counter, gpt);
}
#endif
#endif /* LEON3_HAS_ASR_22_23_UP_COUNTER */
}