Header file containing functions prototypes of WDT LL library. More...
#include "gr55xx.h"
Go to the source code of this file.
Macros | |
#define | LL_WDT_LOCK_WR_ACCESS_ENABLE 0x1ACCE551 |
WDT LOCK Write Access Enable More... | |
#define | LL_WDT_LOCK_WR_ACCESS_DISABLE (~0x1ACCE551) |
WDT LOCK Write Access Disable. More... | |
#define | LL_WDT_WriteReg(__instance__, __REG__, __VALUE__) WRITE_REG(__instance__->__REG__, (__VALUE__)) |
Write a value in WDT register. More... | |
#define | LL_WDT_ReadReg(__instance__, __REG__) READ_REG(__instance__->__REG__) |
Read a value in WDT register. More... | |
Functions | |
__STATIC_INLINE void | ll_wdt_enable_write_access (wdt_regs_t *WDTx) |
Enable write access to WDT_LOAD, WDT_CTRL and WDT_INTCLR registers. More... | |
__STATIC_INLINE void | ll_wdt_disable_write_access (wdt_regs_t *WDTx) |
Disable write access to WDT_LOAD, WDT_CTRL and WDT_INTCLR registers. More... | |
__STATIC_INLINE void | ll_wdt_enable (wdt_regs_t *WDTx) |
Enable watchdog counter and interrupt event. More... | |
__STATIC_INLINE void | ll_wdt_disable (wdt_regs_t *WDTx) |
Disable watchdog counter and interrupt event. More... | |
__STATIC_INLINE uint32_t | ll_wdt_is_enabled (wdt_regs_t *WDTx) |
Check if the WDT peripheral is enabled or disabled. More... | |
__STATIC_INLINE void | ll_wdt_enable_reset (wdt_regs_t *WDTx) |
Enable reset output. More... | |
__STATIC_INLINE void | ll_wdt_disable_reset (wdt_regs_t *WDTx) |
Disable reset output. More... | |
__STATIC_INLINE uint32_t | ll_wdt_is_enabled_reset (wdt_regs_t *WDTx) |
Check if the WDT reset is enabled or disabled. More... | |
__STATIC_INLINE void | ll_wdt_set_counter_load (wdt_regs_t *WDTx, uint32_t counter) |
Specify the WDT down-counter reload value. More... | |
__STATIC_INLINE uint32_t | ll_wdt_get_counter_load (wdt_regs_t *WDTx) |
Get the specified WDT down-counter reload value. More... | |
__STATIC_INLINE uint32_t | ll_wdt_get_counter_value (wdt_regs_t *WDTx) |
Get current value of the specified WDT decrementing down-counter. More... | |
__STATIC_INLINE void | ll_wdt_reload_counter (wdt_regs_t *WDTx) |
Reloads WDT counter with value defined in the reload register. More... | |
__STATIC_INLINE uint32_t | ll_wdt_is_active_flag_it (wdt_regs_t *WDTx) |
Indicate if the WDT Interrupt Flag is set or not. More... | |
__STATIC_INLINE void | ll_wdt_clear_flag_it (wdt_regs_t *WDTx) |
Clear Interrupt Status flag. More... | |
Header file containing functions prototypes of WDT LL library.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file gr55xx_ll_wdt.h.