48 #include "mxc_config.h" 49 #include "htmr_regs.h" int HTMR_GetLongCount(mxc_htmr_regs_t *htmr)
Gets value in long interval register.
Structure type to access the HTMR Registers.
Definition: htmr_regs.h:88
int HTMR_ClearFlags(mxc_htmr_regs_t *htmr, int flags)
Clear Interrupt flag.
int HTMR_SetShortIntAlarm(mxc_htmr_regs_t *htmr, uint32_t rssa)
Set Short Interval alarm value and enable interrupt,.
int HTMR_Disable(mxc_htmr_regs_t *htmr)
Disable/Stop the High Speed Timer.
int HTMR_GetShortCount(mxc_htmr_regs_t *htmr)
Gets value in short interval register.
int HTMR_DisableShortIntInterrupt(mxc_htmr_regs_t *htmr)
Disable Short Interval's Alarm Interrupt.
int HTMR_DisableLongIntInterrupt(mxc_htmr_regs_t *htmr)
Disable Long Interval Counter's Alarm Interrupt.
int HTMR_EnableLongIntInterrupt(mxc_htmr_regs_t *htmr)
Enables Long Interval Counter's Alarm Interrupt.
int HTMR_SetLongIntAlarm(mxc_htmr_regs_t *htmr, uint32_t ras)
Set Long Interval alarm value and enable Interrupt.
int HTMR_GetFlags(mxc_htmr_regs_t *htmr)
Gets Interrupt flags.
int HTMR_EnableShortIntInterrupt(mxc_htmr_regs_t *htmr)
Enables Short Interval Counter's Alarm Interrupt.
int HTMR_Enable(mxc_htmr_regs_t *htmr)
Enable/Start the High Speed Timer.
int HTMR_CheckBusy(mxc_htmr_regs_t *htmr)
Check if BUSY bit is 0.
int HTMR_Init(mxc_htmr_regs_t *htmr, uint32_t sec, uint8_t ssec, sys_cfg_htmr_t *sys_cfg)
Initialize the sec and ssec registers and enable HTMR.