arch_xt_rtc.cpp File Reference

yasimavr: arch_xt_rtc.cpp File Reference
yasimavr
Loading...
Searching...
No Matches
arch_xt_rtc.cpp File Reference
#include "arch_xt_rtc.h"
#include "arch_xt_io.h"
#include "arch_xt_io_utils.h"
#include "core/sim_device.h"
#include "core/sim_sleep.h"

Classes

class  ArchXT_RTC::TimerHook
 

Macros

#define REG_ADDR(reg)    (m_config.reg_base + offsetof(RTC_t, reg))
 
#define REG_OFS(reg)    offsetof(RTC_t, reg)
 
#define PRESCALER_MAX   32678
 

Typedefs

typedef ArchXT_RTCConfig CFG
 

Enumerations

enum  RTC_Mode { RTC_Disabled = 0x00 , RTC_Enabled = 0x01 , PIT_Enabled = 0x02 }
 

Macro Definition Documentation

◆ PRESCALER_MAX

#define PRESCALER_MAX   32678

◆ REG_ADDR

#define REG_ADDR (   reg)     (m_config.reg_base + offsetof(RTC_t, reg))

◆ REG_OFS

#define REG_OFS (   reg)     offsetof(RTC_t, reg)

Typedef Documentation

◆ CFG

Enumeration Type Documentation

◆ RTC_Mode

enum RTC_Mode
Enumerator
RTC_Disabled 
RTC_Enabled 
PIT_Enabled