 |
MAX32675 Peripheral Driver API
Peripheral Driver API for the MAX32675
|
44 #pragma diag_suppress 66 // enumeration value is out of �int� range
49 #include "mxc_device.h"
105 MXC_WDT_COMPATIBILITY = 0,
106 MXC_WDT_WINDOWED = 1,
@ MXC_WDT_PERIOD_2_18
Period 2^18.
Definition: wdt.h:80
#define MXC_F_WDT_CTRL_RST_EARLY
Definition: wdt_regs.h:279
void MXC_WDT_Disable(mxc_wdt_regs_t *wdt)
Disable the watchdog timer.
#define MXC_F_WDT_CTRL_INT_EARLY
Definition: wdt_regs.h:197
@ MXC_WDT_PERIOD_2_30
Period 2^30.
Definition: wdt.h:68
@ MXC_WDT_PERIOD_2_25
Period 2^25.
Definition: wdt.h:73
mxc_wdt_rst_t
Watchdog reset flag enumeration.
Definition: wdt.h:96
void MXC_WDT_SetIntPeriod(mxc_wdt_regs_t *wdt, mxc_wdt_cfg_t *cfg)
Set the period of the watchdog interrupt.
void MXC_WDT_EnableReset(mxc_wdt_regs_t *wdt)
Enable the watchdog reset.
mxc_wdt_period_t
Watchdog upper limit period enumeration. Used to configure the period of the watchdog interrupt.
Definition: wdt.h:66
mxc_wdt_int_t
Watchdog interrupt flag enumeration.
Definition: wdt.h:88
mxc_wdt_period_t upperResetPeriod
Reset upper limit.
Definition: wdt.h:114
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW21
Definition: wdt_regs.h:137
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW20
Definition: wdt_regs.h:139
@ MXC_WDT_PERIOD_2_16
Period 2^16.
Definition: wdt.h:82
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW30
Definition: wdt_regs.h:119
@ MXC_WDT_PERIOD_2_22
Period 2^22.
Definition: wdt.h:76
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW18
Definition: wdt_regs.h:143
void MXC_WDT_ClearResetFlag(mxc_wdt_regs_t *wdt)
Clears the reset flag.
mxc_wdt_mode_t mode
WDT mode.
Definition: wdt.h:113
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW22
Definition: wdt_regs.h:135
int MXC_WDT_GetResetFlag(mxc_wdt_regs_t *wdt)
Get the status of the reset flag.
void MXC_WDT_EnableInt(mxc_wdt_regs_t *wdt)
Enable the watchdog interrupt.
mxc_wdt_mode_t
Watchdog mode enumeration.
Definition: wdt.h:104
void MXC_WDT_Enable(mxc_wdt_regs_t *wdt)
Enable the watchdog timer.
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW24
Definition: wdt_regs.h:131
@ MXC_WDT_PERIOD_2_21
Period 2^21.
Definition: wdt.h:77
@ MXC_WDT_PERIOD_2_31
Period 2^31.
Definition: wdt.h:67
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW29
Definition: wdt_regs.h:121
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW27
Definition: wdt_regs.h:125
@ MXC_WDT_PERIOD_2_29
Period 2^29.
Definition: wdt.h:69
@ MXC_WDT_PERIOD_2_24
Period 2^24.
Definition: wdt.h:74
mxc_wdt_period_t lowerIntPeriod
Interrupt lower limit.
Definition: wdt.h:117
@ MXC_WDT_PERIOD_2_28
Period 2^28.
Definition: wdt.h:70
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW28
Definition: wdt_regs.h:123
Definition: wdt_regs.h:88
mxc_wdt_period_t lowerResetPeriod
Reset lower limit.
Definition: wdt.h:115
@ MXC_WDT_PERIOD_2_20
Period 2^20.
Definition: wdt.h:78
@ MXC_WDT_PERIOD_2_17
Period 2^17.
Definition: wdt.h:81
void MXC_WDT_SetResetPeriod(mxc_wdt_regs_t *wdt, mxc_wdt_cfg_t *cfg)
Set the period of the watchdog reset.
#define MXC_F_WDT_CTRL_INT_LATE
Definition: wdt_regs.h:188
void MXC_WDT_ResetTimer(mxc_wdt_regs_t *wdt)
Reset the watchdog timer.
int MXC_WDT_Shutdown(mxc_wdt_regs_t *wdt)
Shutdown the Watchdog Timer.
int MXC_WDT_GetIntFlag(mxc_wdt_regs_t *wdt)
Get the status of the interrupt flag.
#define MXC_F_WDT_CTRL_RST_LATE
Definition: wdt_regs.h:282
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW31
Definition: wdt_regs.h:117
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW25
Definition: wdt_regs.h:129
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW17
Definition: wdt_regs.h:145
void MXC_WDT_DisableInt(mxc_wdt_regs_t *wdt)
Disable the watchdog interrupt.
int MXC_WDT_Init(mxc_wdt_regs_t *wdt, mxc_wdt_cfg_t *cfg)
Initialize the Watchdog Timer.
@ MXC_WDT_PERIOD_2_27
Period 2^27.
Definition: wdt.h:71
@ MXC_WDT_PERIOD_2_19
Period 2^19.
Definition: wdt.h:79
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW23
Definition: wdt_regs.h:133
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW19
Definition: wdt_regs.h:141
@ MXC_WDT_PERIOD_2_26
Period 2^26.
Definition: wdt.h:72
@ MXC_WDT_PERIOD_2_23
Period 2^23.
Definition: wdt.h:75
mxc_wdt_period_t upperIntPeriod
Interrupt upper limit.
Definition: wdt.h:116
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW16
Definition: wdt_regs.h:147
#define MXC_S_WDT_CTRL_INT_LATE_VAL_WDT2POW26
Definition: wdt_regs.h:127
Timer Configuration.
Definition: wdt.h:112
void MXC_WDT_DisableReset(mxc_wdt_regs_t *wdt)
Disable the watchdog reset.
void MXC_WDT_ClearIntFlag(mxc_wdt_regs_t *wdt)
Clears the interrupt flag.