85 uint32_t LDVal, CNTVal;
89 return (LDVal - CNTVal);
97 PIT_PDD_EnableInterrupt(PIT_BASE_PTR,timer);
101 PIT_PDD_DisableInterrupt(PIT_BASE_PTR,timer);
109 PIT_PDD_ClearInterruptFlag(PIT_BASE_PTR,timer);
void pit_hal_configure_interrupt(uint32_t timer, bool enable)
Enable or disable timer interrupt.
void pit_hal_timer_stop(uint32_t timer)
Stop timer counting.
fnTUDisable_t fnTULDDDisable
void pit_hal_configure_timer_run_in_debug(bool timerRun)
Configure timers to continue to run or stop in debug mode.
void pit_hal_set_timer_period_count(uint32_t timer, uint32_t count)
Set timer period in units of count.
fnTUResetCounter_t fnTULDDResetCounter
uint32_t pit_hal_read_timer_count(uint32_t timer)
Read current timer counting value.
bool pit_hal_is_timeout_occurred(uint32_t timer)
Read current timer timeout flag.
fnTUGetCounterValue_t fnTULDDGetCounter
void pit_hal_clear_interrupt_flag(uint32_t timer)
Clear timer interrupt flag.
fnTUSetPeriodTicks_t fnTULDDSetPeriod
void pit_hal_timer_start(uint32_t timer)
Start timer counting.
void pit_hal_timer_reset(uint32_t timer)
Start timer counting.
void pit_hal_enable(void)
Enable PIT module.
fnTUEnable_t fnTULDDEnable
const TU_instance_PEx_t TU_instance_tbl[]
uint32_t pit_hal_read_timer_period_count(uint32_t timer)
Return current timer period in units of count.
fnTUGetPeriodTicks_t fnTULDDGetPeriod
void pit_hal_disable(void)
Disable PIT module.