Contains all macro definitions and function prototypes support for wdt firmware library on A31G11x. More...
Go to the source code of this file.
Data Structures | |
struct | WDT_CFG_Type |
Enumerations | |
enum | { WDT_DIV_4 = 0, WDT_DIV_16, WDT_DIV_64, WDT_DIV_256 } |
enum | WDT_INT_Type { WDT_INTCFG_UNFIEN = 0, WDT_INTCFG_WINMIEN } |
Functions | |
HAL_Status_Type | HAL_WDT_Init (WDT_CFG_Type *WDT_Config) |
Initialize the WDT peripheral with the specified parameters. More... | |
HAL_Status_Type | HAL_WDT_DeInit (void) |
Deinitialize WDT. More... | |
HAL_Status_Type | HAL_WDT_ConfigInterrupt (WDT_INT_Type WDT_IntCfg, FunctionalState NewState) |
Configure the peripheral interrupt. More... | |
HAL_Status_Type | HAL_WDT_ReloadTimeCounter (void) |
Reload WDT counter. More... | |
HAL_Status_Type | HAL_WDT_Start (FunctionalState ctrl) |
Enable WDT activity. More... | |
HAL_Status_Type | HAL_WDT_ClearStatus (uint32_t clrbit) |
Clear the timer status register of WDT. More... | |
uint32_t | HAL_WDT_GetStatus (void) |
Get the timer status register of WDT. More... | |
uint32_t | HAL_WDT_GetCurrentCount (void) |
Get the current value of WDT. More... | |
Contains all macro definitions and function prototypes support for wdt firmware library on A31G11x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31G11x_hal_wdt.h.
anonymous enum |
Enumerator | |
---|---|
WDT_DIV_4 | |
WDT_DIV_16 | |
WDT_DIV_64 | |
WDT_DIV_256 |
Definition at line 70 of file A31G11x_hal_wdt.h.
enum WDT_INT_Type |
Enumerator | |
---|---|
WDT_INTCFG_UNFIEN | UNFIEN Interrupt enable |
WDT_INTCFG_WINMIEN | WINMIEN Interrupt enable |
Definition at line 78 of file A31G11x_hal_wdt.h.
HAL_Status_Type HAL_WDT_ClearStatus | ( | uint32_t | clrbit | ) |
Clear the timer status register of WDT.
[in] | clrbit |
|
Definition at line 217 of file A31G11x_hal_wdt.c.
References HAL_OK.
HAL_Status_Type HAL_WDT_ConfigInterrupt | ( | WDT_INT_Type | WDT_IntCfg, |
FunctionalState | NewState | ||
) |
Configure the peripheral interrupt.
[in] | WDT_IntCfg | Specifies the interrupt flag
|
[in] | NewState | Next State of Interrupt Operation
|
Definition at line 113 of file A31G11x_hal_wdt.c.
References ENABLE, HAL_OK, WDT_INTCFG_UNFIEN, and WDT_INTCFG_WINMIEN.
HAL_Status_Type HAL_WDT_DeInit | ( | void | ) |
Deinitialize WDT.
None |
Definition at line 90 of file A31G11x_hal_wdt.c.
References HAL_OK.
uint32_t HAL_WDT_GetCurrentCount | ( | void | ) |
Get the current value of WDT.
None |
Definition at line 239 of file A31G11x_hal_wdt.c.
uint32_t HAL_WDT_GetStatus | ( | void | ) |
Get the timer status register of WDT.
None |
Definition at line 229 of file A31G11x_hal_wdt.c.
HAL_Status_Type HAL_WDT_Init | ( | WDT_CFG_Type * | WDT_Config | ) |
Initialize the WDT peripheral with the specified parameters.
[in] | WDT_Config | Pointer to a WDT_CFG_Type structure that contains the configuration information for the specified peripheral. |
Definition at line 55 of file A31G11x_hal_wdt.c.
References ENABLE, HAL_ERROR, HAL_OK, HAL_SCU_Peripheral_EnableClock2(), WDT_CFG_Type::wdtClkDiv, WDT_CFG_Type::wdtResetEn, WDT_CFG_Type::wdtTmrConst, and WDT_CFG_Type::wdtWTmrConst.
HAL_Status_Type HAL_WDT_ReloadTimeCounter | ( | void | ) |
Reload WDT counter.
None |
Definition at line 179 of file A31G11x_hal_wdt.c.
References HAL_OK.
HAL_Status_Type HAL_WDT_Start | ( | FunctionalState | ctrl | ) |
Enable WDT activity.
[in] | ctrl |
|
Definition at line 193 of file A31G11x_hal_wdt.c.