Go to the source code of this file.
Data Structures | |
| struct | wdg_control_struct |
| WDG Control configuration structure. More... | |
Macros | |
| #define | WDG_WRITE_ENABLE_MAGIC_NUM (0x5AA5UL) |
| #define | WDG_RESTART_MAGIC_NUM (0xCAFEUL) |
| #define | WDG_EXT_CLK_FREQ (32768UL) |
Typedefs | |
| typedef enum reset_interval_enum | reset_interval_t |
| WDG Reset Interval definitions. More... | |
| typedef enum interrupt_interval_enum | interrupt_interval_t |
| WDG Interrupt interval definitions. More... | |
| typedef enum wdg_clksrc_enum | wdg_clksrc_t |
| WDG clock source definitions. More... | |
| typedef struct wdg_control_struct | wdg_control_t |
| WDG Control configuration structure. More... | |
Functions | |
| static void | wdg_write_enable (WDG_Type *base) |
| WDG write enable function. More... | |
| static void | wdg_enable (WDG_Type *base) |
| WDG Enable function. More... | |
| static void | wdg_disable (WDG_Type *base) |
| WDG Disable function. More... | |
| static void | wdg_reset_enable (WDG_Type *base) |
| WDG reset enable function. More... | |
| static void | wdg_reset_disable (WDG_Type *base) |
| WDG reset disable function. More... | |
| static void | wdg_interrupt_enable (WDG_Type *base) |
| WDG interrupt enable function. More... | |
| static void | wdg_interrupt_disable (WDG_Type *base) |
| WDG interrupt disable function. More... | |
| static void | wdg_clksrc_select (WDG_Type *base, wdg_clksrc_t clksrc) |
| WDG Clock Source selection function. More... | |
| static void | wdg_restart (WDG_Type *base) |
| WDG restart function. More... | |
| static uint32_t | wdg_get_status (WDG_Type *base) |
| WDG Get Status function. More... | |
| static void | wdg_clear_status (WDG_Type *base, uint32_t status_mask) |
| WDG clear status function. More... | |
| hpm_stat_t | wdg_init (WDG_Type *base, wdg_control_t *wdg_ctrl) |
| WDG initialization function. More... | |
| reset_interval_t | wdg_convert_reset_interval_from_us (const uint32_t src_freq, const uint32_t reset_us) |
| Convert the Reset interval value based on the WDG source clock frequency and the expected reset interval in terms of microseconds. More... | |
| uint64_t | wdg_convert_interrupt_interval_to_us (const uint32_t src_freq, interrupt_interval_t interval) |
| Convert the interrupt interval value based on the WDG source clock frequency and the expected interrupt interval in terms of microseconds. More... | |
| uint32_t | wdg_convert_reset_interval_to_us (const uint32_t src_freq, reset_interval_t interval) |
| Convert the Reset interval value based on the WDG source clock frequency and the expected reset interval in terms of microseconds. More... | |
| interrupt_interval_t | wdg_convert_interrupt_interval_from_us (const uint32_t src_freq, uint32_t interval_us) |
| Convert the interrupt interval value based on the WDG source clock frequency and the expected interrupt interval in terms of microseconds. More... | |
| uint64_t | wdg_get_interrupt_interval_in_us (WDG_Type *base, const uint32_t src_freq) |
| Get Actual WDG Interrupt Interval in terms of microseconds. More... | |
| uint64_t | wdg_get_total_reset_interval_in_us (WDG_Type *base, const uint32_t src_freq) |
| Get Actual WDG Reset Interval in terms of microseconds. More... | |