 |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
45 #include "mxc_device.h"
46 #include "htmr_regs.h"
60 #define IBRO_FREQ HIRC8_FREQ
int MXC_HTMR_DisableInt(mxc_htmr_regs_t *htmr, uint32_t mask)
Disable Interurpts.
int MXC_HTMR_Stop(mxc_htmr_regs_t *htmr)
Disable/Stop the High Speed Timer.
int MXC_HTMR_SetLongAlarm(mxc_htmr_regs_t *htmr, uint32_t interval)
Set Long Interval alarm value and enable Interrupt.
@ MXC_HTMR_INT_FL_READY
Timer ready interrupt flag.
Definition: htmr.h:77
Definition: htmr_regs.h:88
mxc_htmr_int_fl_t
Bitmasks for each of the HTimer's interrupt flags.
Definition: htmr.h:74
#define MXC_F_HTMR_CTRL_ALARM_TOD_FL
Definition: htmr_regs.h:182
#define MXC_F_HTMR_CTRL_ALARM_SS_FL
Definition: htmr_regs.h:185
int MXC_HTMR_Init(mxc_htmr_regs_t *htmr, uint32_t longInterval, uint8_t shortInterval)
Initialize the longInterval and shortInterval registers and enable MXC_HTMR.
int MXC_HTMR_GetLongCount(mxc_htmr_regs_t *htmr)
Get value in long interval register.
int MXC_HTMR_GetFlags(mxc_htmr_regs_t *htmr)
Get interrupt flags.
#define MXC_F_HTMR_CTRL_READY_INT_EN
Definition: htmr_regs.h:179
mxc_htmr_int_en_t
Bitmasks for each of the HTimer's interrupt enables.
Definition: htmr.h:65
#define MXC_F_HTMR_CTRL_ALARM_TOD_EN
Definition: htmr_regs.h:167
@ MXC_HTMR_INT_FL_SHORT
Short-interval alarm interrupt flag.
Definition: htmr.h:76
int MXC_HTMR_Start(mxc_htmr_regs_t *htmr)
Enable/Start the High Speed Timer.
int MXC_HTMR_CheckBusy(mxc_htmr_regs_t *htmr)
Check if BUSY bit is 0.
@ MXC_HTMR_INT_EN_SHORT
Short-interval alarm interrupt enable.
Definition: htmr.h:67
int MXC_HTMR_EnableInt(mxc_htmr_regs_t *htmr, uint32_t mask)
Enable Interurpts.
#define MXC_F_HTMR_CTRL_READY
Definition: htmr_regs.h:176
int MXC_HTMR_ClearFlags(mxc_htmr_regs_t *htmr, int flags)
Clear interrupt flags.
int MXC_HTMR_SetShortAlarm(mxc_htmr_regs_t *htmr, uint32_t interval)
Set Short Interval alarm value and enable interrupt,.
@ MXC_HTMR_INT_EN_READY
Timer ready interrupt enable.
Definition: htmr.h:68
@ MXC_HTMR_INT_EN_LONG
Long-interval alarm interrupt enable.
Definition: htmr.h:66
@ MXC_HTMR_INT_FL_LONG
Long-interval alarm interrupt flag.
Definition: htmr.h:75
int MXC_HTMR_GetShortCount(mxc_htmr_regs_t *htmr)
Get value in short interval register.
#define MXC_F_HTMR_CTRL_ALARM_SS_EN
Definition: htmr_regs.h:170