RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Files | Data Structures | Macros | Functions
Shared_tod_abeoz9_rtc

RTC driver for the Abracon EOZ9 series. More...

Files

file  abeoz9-rtc.h
 This file provides the interfaces of Shared_tod_abeoz9_rtc.
 
file  abeoz9.c
 This file provides the interfaces of Shared_tod_abeoz9_rtc.
 

Data Structures

struct  abeoz9_rtc
 

Macros

#define ABEOZ9_RTC_INITIALIZER(i2c_path, i2c_address)
 
#define ABEOZ9_RTC_TBL_ENTRY(dev_name, abeoz9_rtc_ctx)    I2C_RTC_TBL_ENTRY(dev_name, abeoz9_rtc_ctx)
 

Functions

int abeoz9_rtc_hw_init (struct i2c_rtc_base *base)
 

Detailed Description

RTC driver for the Abracon EOZ9 series.

To use this driver, use the following initialization:

Define a context for the RTC somewhere:

static struct abeoz9_rtc rtc_ctx = ABEOZ9_RTC_INITIALIZER("/dev/i2c-1", 0x56);

Then you can use the following for the RTC_Table:

ABEOZ9_RTC_TBL_ENTRY("/dev/rtc", &rtc_ctx)

Macro Definition Documentation

◆ ABEOZ9_RTC_INITIALIZER

#define ABEOZ9_RTC_INITIALIZER (   i2c_path,
  i2c_address 
)
Value:
{ \
.base = I2C_RTC_INITIALIZER( \
i2c_path, \
i2c_address, \
8, \
I2C_RTC_ORDER_sec_min_hour_day_wkday_month_year, \
"abeoz9", \
}
int abeoz9_rtc_hw_init(struct i2c_rtc_base *base)
Definition: abeoz9.c:98

Function Documentation

◆ abeoz9_rtc_hw_init()

int abeoz9_rtc_hw_init ( struct i2c_rtc_base base)

Hardware init. Used internally.