RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions

This file provides the interfaces of Shared_tod_mcp7940m_rtc. More...

#include <libchip/mcp7940m-rtc.h>

Macros

#define REG_MCP7940M_RTCSEC   0x00u
 
#define REG_MCP7940M_RTCMIN   0x01u
 
#define REG_MCP7940M_RTCHOUR   0x02u
 
#define REG_MCP7940M_RTCWKDAY   0x03u
 
#define REG_MCP7940M_RTCDATE   0x04u
 
#define REG_MCP7940M_RTCMTH   0x05u
 
#define REG_MCP7940M_RTCYEAR   0x06u
 
#define MCP7940M_RTCSEC_ST   (0x01u << 7)
 
#define MCP7940M_RTCMTH_LPYR   (0x01u << 5)
 
#define REG_MCP7940M_CONTROL   0x07
 
#define MCP7940M_CONTROL_OUT   (0x1u << 7)
 
#define MCP7940M_CONTROL_SQWEN   (0x1u << 6)
 
#define MCP7940M_CONTROL_ALM1EN   (0x1u << 5)
 
#define MCP7940M_CONTROL_ALM0EN   (0x1u << 4)
 
#define MCP7940M_CONTROL_EXTOSC   (0x1u << 3)
 
#define MCP7940M_CONTROL_CRSTRIM   (0x1u << 2)
 
#define MCP7940M_CONTROL_SQWFS1   (0x1u << 1)
 
#define MCP7940M_CONTROL_SQWFS0   (0x1u << 0)
 

Functions

int mcp7940m_hw_init (struct i2c_rtc_base *base)
 

Detailed Description

This file provides the interfaces of Shared_tod_mcp7940m_rtc.