79 uint16_t regValue = wdog->
WDCR;
131 uint16_t regValue = wdog->
WDCR;
222 uint16_t regValue = wdog->
WDCR;
229 regValue |= preScaler;
WDOG_Handle WDOG_init(void *pMemory, const size_t numBytes)
Initializes the watchdog (WDOG) object handle.
#define DISABLE_PROTECTED_REGISTER_WRITE_MODE
Define to disable protected register writes.
Defines the watchdog (WDOG) object.
void WDOG_enable(WDOG_Handle wdogHandle)
Enables the watchdog (WDOG) timer.
#define WDOG_SCSR_WDINTS_BITS
Defines the location of the WDINTS bits in the SCSR register.
struct _WDOG_Obj_ * WDOG_Handle
Defines the watchdog (WDOG) handle.
#define WDOG_WDCR_WDPS_BITS
Defines the location of the WDPS bits in the WDCR register.
void WDOG_setCount(WDOG_Handle wdogHandle, const uint_least8_t count)
Sets the watchdog (WDOG) counter.
#define ENABLE_PROTECTED_REGISTER_WRITE_MODE
Define to allow protected register writes.
void WDOG_disableInt(WDOG_Handle wdogHandle)
Disables the watchdog (WDOG) timer interrupt.
#define WDOG_WDCR_WRITE_ENABLE
Defines the watchdog write enable mode.
#define WDOG_WDCR_WDDIS_BITS
Defines the location of the WDDIS bits in the WDCR register.
volatile uint16_t WDCR
Watchdog Control Register.
void WDOG_setPreScaler(WDOG_Handle wdogHandle, const WDOG_PreScaler_e preScaler)
Sets the watchdog (WDOG) timer clock prescaler.
void WDOG_enableInt(WDOG_Handle wdogHandle)
Enables the watchdog (WDOG) timer interrupt.
volatile uint16_t WDCNTR
Watchdog Counter Register.
#define WDOG_SCSR_WDOVERRIDE_BITS
Defines the location of the WDOVERRIDE bits in the SCSR register.
volatile uint16_t SCSR
System Control & Status Register.
Contains public interface to various functions related to the watchdog (WDOG) timer object...
void WDOG_clearCounter(WDOG_Handle wdogHandle)
Clears the watchdog (WDOG) counter.
WDOG_IntStatus_e WDOG_getIntStatus(WDOG_Handle wdogHandle)
Gets the watchdog (WDOG) interrupt status.
void WDOG_enableOverRide(WDOG_Handle wdogHandle)
Enables the watchdog (WDOG) timer override.
void WDOG_disable(WDOG_Handle wdogHandle)
Disables the watchdog (WDOG) timer.
volatile uint16_t WDKEY
Watchdog Reset Key Register.
#define WDOG_SCSR_WDENINT_BITS
Defines the location of the WDENINT bits in the SCSR register.
WDOG_PreScaler_e
Enumeration to define the watchdog (WDOG) timer clock prescaler, which sets the clock frequency...
void WDOG_disableOverRide(WDOG_Handle wdogHandle)
Disables the timer override.
WDOG_IntStatus_e
Enumeration to define the watchdog (WDOG) interrupt status.