#include <hwwado.h>
Public Member Functions | |
HWWado (AvrDevice *) | |
virtual unsigned int | CpuCycle () |
void | SetWdtcr (unsigned char val) |
unsigned char | GetWdtcr () |
void | Wdr () |
void | Reset () |
Public Attributes | |
IOReg< HWWado > | wdtcr_reg |
Protected Attributes | |
unsigned char | wdtcr |
unsigned char | cntWde |
SystemClockOffset | timeOutAt |
AvrDevice * | core |
Watchdog (WDT) peripheral. Interrupts are not implemented.
Definition at line 38 of file hwwado.h.
HWWado::HWWado | ( | AvrDevice * | c | ) |
Definition at line 68 of file hwwado.cpp.
References AvrDevice::AddToCycleList(), core, and Reset().
unsigned int HWWado::CpuCycle | ( | void | ) | [virtual] |
Called for each AVR cycle when this hardware has registered itself as a receiver for AVR clocks. Returns nonzero if instructions should not be executed (e.g. a Flash write is in progress).
Reimplemented from Hardware.
Definition at line 52 of file hwwado.cpp.
References cntWde, core, SystemClock::GetCurrentTime(), SystemClock::Instance(), AvrDevice::Reset(), timeOutAt, WDE, wdtcr, and WDTOE.
unsigned char HWWado::GetWdtcr | ( | ) | [inline] |
void HWWado::Reset | ( | void | ) | [virtual] |
void HWWado::SetWdtcr | ( | unsigned char | val | ) |
void HWWado::Wdr | ( | ) |
Definition at line 84 of file hwwado.cpp.
References SystemClock::GetCurrentTime(), SystemClock::Instance(), timeOutAt, and wdtcr.
Referenced by avr_op_WDR::operator()().
unsigned char HWWado::cntWde [protected] |
Definition at line 41 of file hwwado.h.
Referenced by CpuCycle(), and SetWdtcr().
AvrDevice* HWWado::core [protected] |
Definition at line 43 of file hwwado.h.
Referenced by CpuCycle(), and HWWado().
SystemClockOffset HWWado::timeOutAt [protected] |
Definition at line 42 of file hwwado.h.
Referenced by CpuCycle(), Reset(), and Wdr().
unsigned char HWWado::wdtcr [protected] |
Definition at line 40 of file hwwado.h.
Referenced by CpuCycle(), GetWdtcr(), Reset(), SetWdtcr(), and Wdr().
Definition at line 54 of file hwwado.h.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), AvrDevice_at90s4433::AvrDevice_at90s4433(), AvrDevice_at90s8515::AvrDevice_at90s8515(), AvrDevice_atmega16_32::AvrDevice_atmega16_32(), and AvrDevice_atmega8::AvrDevice_atmega8().