RTEMS 6.1-rc5
|
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) |
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)
#define ABEOZ9_RTC_INITIALIZER | ( | i2c_path, | |
i2c_address | |||
) |
int abeoz9_rtc_hw_init | ( | struct i2c_rtc_base * | base | ) |
Hardware init. Used internally.