MG32F10x Standard Peripherals Firmware Library

宏定义 | 函数
mg32f10x_wwdg.c 文件参考

This file provides all the WWDG firmware functions. 更多...

`#include "mg32f10x_wwdg.h"`
`#include "mg32f10x_rcc.h"`

## 宏定义
#define | WWDG_OFFSET (WWDG_BASE - PERIPH_BASE)
#define | CFR_OFFSET (WWDG_OFFSET + 0x04)
#define | EWI_BitNumber 0x09
#define | CFR_EWI_BB (PERIPH_BB_BASE + (CFR_OFFSET * 32) + (EWI_BitNumber * 4))
#define | CR_WDGA_Set ((uint32_t)0x00000080)
#define | CFR_WDGTB_Mask ((uint32_t)0xFFFFFE7F)
#define | CFR_W_Mask ((uint32_t)0xFFFFFF80)
#define | BIT_Mask ((uint8_t)0x7F)

## 函数
void | WWDG_DeInit (void)
| Deinitializes the WWDG peripheral registers to their default reset values. 更多...
void | WWDG_SetPrescaler (uint32_t WWDG_Prescaler)
| Sets the WWDG Prescaler. 更多...
void | WWDG_SetWindowValue (uint8_t WindowValue)
| Sets the WWDG window value. 更多...
void | WWDG_EnableIT (void)
| Enables the WWDG Early Wakeup interrupt(EWI). 更多...
void | WWDG_SetCounter (uint8_t Counter)
| Sets the WWDG counter value. 更多...
void | WWDG_Enable (uint8_t Counter)
| Enables WWDG and load the counter value. 更多...
FlagStatus | WWDG_GetFlagStatus (void)
| Checks whether the Early Wakeup interrupt flag is set or not. 更多...
void | WWDG_ClearFlag (void)
| Clears Early Wakeup interrupt flag. 更多...

## 详细描述

This file provides all the WWDG firmware functions.

作者
  megawin Application Team

版本
  V0.1.10

日期
  05-January-2023