Included Files
- #include <nut/include/sys/event.h>
- #include <nut/include/sys/timer.h>
- #include <nut/include/time.h>
- #include <nut/include/dev/i2cbus.h>
- #include <nut/include/dev/i2c_pcf85xx.h>
Preprocessor definitions
#define I2C_SLA_RTC 0x51
NUTRTC rtcI2cPcf85xx
Local Variables
rtc_status
static uint32_t rtc_status
i2cPcf85xx
static NUTI2C_SLAVE i2cPcf85xx
static int I2cPcfClearStatus ( NUTRTC* rtc, uint32_t sflgs )
static int I2cPcfGetAlarm ( NUTRTC* rtc, int idx, struct _tm* tm, int* aflgs )
static int I2cPcfGetClock ( NUTRTC* rtc, struct _tm* tm )
static int I2cPcfGetStatus ( NUTRTC* rtc, uint32_t* sflgs )
static int I2cPcfInit ( NUTRTC* rtc )
static int I2cPcfSetAlarm ( NUTRTC* rtc, int idx, const struct _tm* tm, int aflgs )
static int I2cPcfSetClock ( NUTRTC* rtc, const struct _tm* tm )